body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #f4f5f7;
    color: #172B4D;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #fff;
    border-bottom: 1px solid #dfe1e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#board-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.primary-action {
    background-color: #ff8b00;
    color: #172B4D;
    border: none;
    border-radius: 4px;
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.primary-action:hover {
    background-color: #ff9f1c;
    box-shadow: 0 3px 6px rgba(255, 139, 0, 0.3);
}

.primary-action:focus-visible {
    outline: 2px solid #0052cc;
    outline-offset: 2px;
}

.refresh-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#refresh-btn {
    background-color: #0052cc;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

#refresh-btn:hover {
    background-color: #0065ff;
}

#refresh-btn[disabled] {
    background-color: #0a4fad;
    cursor: progress;
    opacity: 0.8;
}

#last-refresh {
    font-size: 0.85rem;
    color: #6b778c;
}

#board-container {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    overflow-x: auto;
}

.column {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: #f4f5f7;
    border-radius: 5px;
    padding: 1rem;
    border: 1px solid #dfe1e6;
}

.column h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0052cc;
}

.card {
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(9,30,66,.25);
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(9,30,66,.25);
}

.card.flagged {
    background-color: #ffeceb;
    border: 1px solid #f86d61;
    box-shadow: 0 1px 2px rgba(249,107,97,0.4);
}

.card.flagged:hover {
    box-shadow: 0 4px 10px rgba(249,107,97,0.35);
}

.card p {
    margin: 0;
}

.card p:first-child {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#issue-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

#issue-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
}

#issue-comments {
    margin-bottom: 2rem;
}

.comment {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dfe1e6;
    background-color: #f9fafc;
    box-shadow: 0 1px 2px rgba(9,30,66,0.08);
    font-size: 0.95rem;
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.comment-date {
    color: #6b778c;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: #172B4D;
}

.comment-body p {
    margin-top: 0;
    font-size: 0.95rem;
}

#comment-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

#comment-form button {
    background-color: #0052cc;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

#comment-form button:hover {
    background-color: #0065ff;
}
#issue-description img,
.comment-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0.5rem 0;
    box-shadow: 0 1px 4px rgba(9,30,66,0.15);
}

#issue-description iframe,
.comment-body iframe {
    max-width: 100%;
}
