/* ==========================================================================
   Trello Local — Modern, szemkímélő sötét témájú (Dark Mode) CSS3
   ========================================================================== */

:root {
    color-scheme: dark;

    /* Szemkímélő sötét paletta */
    --bg-base: #0d1117;
    --bg-surface: #161b22;
    --bg-elevated: #1c222b;
    --bg-hover: #212834;
    --bg-active: #263040;
    --bg-input: #090d12;

    --border-subtle: #262c36;
    --border-default: #30363d;
    --border-focus: #58a6ff;

    --text-primary: #e6edf3;
    --text-secondary: #9ca7b4;
    --text-muted: #6e7681;

    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.14);
    --accent-border: rgba(59, 130, 246, 0.35);

    --mention-bg: rgba(245, 158, 11, 0.18);
    --mention-text: #fbbf24;
    --mention-border: rgba(245, 158, 11, 0.45);

    --success: #2ea043;
    --success-soft: rgba(46, 160, 67, 0.16);
    --warning: #d29922;
    --warning-soft: rgba(210, 153, 34, 0.16);
    --danger: #f85149;
    --danger-soft: rgba(248, 81, 73, 0.16);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.65);

    --sidebar-width: 295px;
    --topbar-height: 64px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Egyedi, diszkrét sötét görgetősáv */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #2b323c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d4754;
}

a {
    color: #58a6ff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

button, input {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

[hidden] {
    display: none !important;
}

/* ==========================================================================
   1. Bejelentkező oldal (Login)
   ========================================================================== */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at 50% 0%, #172235 0%, var(--bg-base) 65%);
}

.login-container {
    width: 100%;
    max-width: 410px;
}

.login-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    color: var(--accent-primary);
}

.login-logo h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.login-logo p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    margin-bottom: 18px;
    background-color: var(--danger-soft);
    border: 1px solid rgba(248, 81, 73, 0.4);
    border-radius: var(--radius-sm);
    color: #ffa198;
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.login-form input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.98rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.18);
}

.login-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   2. Gombok és Jelvények (Buttons & Badges)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, opacity 0.15s, transform 0.1s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #ffffff;
}
.btn-primary:hover:not(:disabled) {
    background-color: var(--accent-primary-hover);
}

.btn-secondary {
    background-color: var(--bg-elevated);
    border-color: var(--border-default);
    color: var(--text-primary);
}
.btn-secondary:hover:not(:disabled) {
    background-color: var(--bg-hover);
    border-color: #48515c;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.82rem;
    gap: 6px;
}

.btn-block {
    width: 100%;
    padding: 11px 16px;
}

.btn-link {
    background: none;
    border: none;
    color: #58a6ff;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 4px;
}
.btn-link:hover {
    text-decoration: underline;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    background-color: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.badge-accent {
    background-color: var(--accent-primary);
    color: #ffffff;
    border-color: transparent;
}

.badge-mine {
    background-color: var(--success-soft);
    color: #56d364;
    border-color: rgba(46, 160, 67, 0.35);
}

.badge-due {
    gap: 4px;
    background-color: var(--warning-soft);
    color: #e3b341;
    border-color: rgba(210, 153, 34, 0.35);
}

.badge-due.overdue {
    background-color: var(--danger-soft);
    color: #ff7b72;
    border-color: rgba(248, 81, 73, 0.4);
}

.badge-due.completed {
    background-color: var(--success-soft);
    color: #56d364;
    border-color: rgba(46, 160, 67, 0.35);
}

/* ==========================================================================
   3. Alkalmazás Elrendezés (App Shell & Sidebar)
   ========================================================================== */

.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-height);
    padding: 0 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-user {
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.brand-user small {
    color: var(--text-muted);
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.sidebar-section {
    padding: 16px 12px 8px;
}

.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    margin-bottom: 8px;
}

.sidebar-section-title {
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0 8px;
    margin-bottom: 8px;
}

.sidebar-section-header .sidebar-section-title {
    padding: 0;
    margin-bottom: 0;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.12s, color 0.12s;
}

.nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--accent-soft);
    border-color: var(--accent-border);
    color: #79c0ff;
    font-weight: 600;
}

.nav-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nav-item-left span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Táblák lista a bal sávban */
.sidebar-boards-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 8px;
}

.board-search-wrap {
    padding: 0 4px 8px;
}

.board-search-wrap input {
    width: 100%;
    padding: 7px 10px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.83rem;
}

.board-search-wrap input:focus {
    outline: none;
    border-color: var(--border-focus);
}

.board-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: 2px;
}

.board-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.86rem;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.12s, color 0.12s;
}

.board-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.board-item.active {
    background-color: var(--bg-active);
    border-color: var(--border-default);
    color: var(--text-primary);
    font-weight: 600;
}

.board-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.board-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: var(--accent-primary);
}

.board-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-item-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 6px;
}

.board-count {
    font-size: 0.74rem;
    color: var(--text-muted);
    padding: 1px 6px;
    background-color: var(--bg-base);
    border-radius: 999px;
}

.board-unread-dot {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--accent-primary);
    padding: 1px 6px;
    border-radius: 999px;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.84rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background-color 0.15s;
}

.logout-btn:hover {
    color: #ff7b72;
    background-color: var(--danger-soft);
    text-decoration: none;
}

/* ==========================================================================
   4. Felső sáv (Topbar) és Szinkronizálás
   ========================================================================== */

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.topbar {
    height: var(--topbar-height);
    flex-shrink: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 540px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: 6px;
    color: var(--text-secondary);
    cursor: pointer;
}

.search-box {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 8px 34px 8px 36px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.search-shortcut {
    position: absolute;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    padding: 1px 6px;
    pointer-events: none;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background-color: var(--bg-base);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.sync-dot.syncing {
    background-color: var(--warning);
    box-shadow: 0 0 8px var(--warning);
    animation: pulse 1s infinite;
}

.sync-meta {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sync-meta strong {
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.sync-icon.spinning {
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Állapot sáv */
.status-banner {
    padding: 10px 24px;
    font-size: 0.86rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.status-banner.info {
    background-color: var(--accent-soft);
    color: #93c5fd;
}

.status-banner.success {
    background-color: var(--success-soft);
    color: #7ee787;
}

.status-banner.error {
    background-color: var(--danger-soft);
    color: #ffa198;
}

/* ==========================================================================
   5. Tartalmi Fejléc és Alszűrők (Content Header & Subfilters)
   ========================================================================== */

.content-header {
    padding: 20px 24px 12px;
    border-bottom: 1px solid var(--border-subtle);
    background-color: var(--bg-base);
    flex-shrink: 0;
}

.content-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.content-title-row h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-subtitle {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.content-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.subfilter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.12s;
}

.chip:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.chip.active {
    background-color: var(--accent-soft);
    border-color: var(--accent-border);
    color: #79c0ff;
    font-weight: 600;
}

.chip-count {
    font-size: 0.74rem;
    padding: 0 6px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   6. Fő Lista: Értesítések és Kártyák (Feed & Cards Grid)
   ========================================================================== */

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 40px;
}

/* Értesítés folyam (Notification Feed) */
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 980px;
}

.notif-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: background-color 0.14s, border-color 0.14s, transform 0.1s;
    cursor: pointer;
    position: relative;
}

.notif-card:hover {
    background-color: var(--bg-elevated);
    border-color: var(--border-default);
}

.notif-card.unread {
    background-color: #17202e;
    border-color: rgba(59, 130, 246, 0.4);
    border-left: 4px solid var(--accent-primary);
}

.notif-card.is-mention {
    border-left: 4px solid #f59e0b;
}

.notif-left {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
    flex: 1;
}

.notif-avatar {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background-color: var(--bg-active);
    border: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #79c0ff;
    flex-shrink: 0;
}

.notif-card.is-mention .notif-avatar {
    background-color: var(--mention-bg);
    border-color: var(--mention-border);
    color: var(--mention-text);
}

.notif-content {
    min-width: 0;
    flex: 1;
}

.notif-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 0.8rem;
}

.notif-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.74rem;
    background-color: var(--bg-elevated);
    color: var(--text-secondary);
}

.notif-type-badge.type-mention {
    background-color: var(--mention-bg);
    color: var(--mention-text);
    border: 1px solid var(--mention-border);
}

.notif-type-badge.type-comment {
    background-color: var(--accent-soft);
    color: #79c0ff;
}

.notif-type-badge.type-assigned {
    background-color: var(--success-soft);
    color: #56d364;
}

.notif-type-badge.type-due {
    background-color: var(--warning-soft);
    color: #e3b341;
}

.notif-board-tag {
    color: var(--text-secondary);
    font-weight: 600;
}

.notif-list-tag {
    color: var(--text-muted);
}

.notif-time {
    color: var(--text-muted);
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.notif-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.35;
}

.notif-author-line {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.notif-author-line strong {
    color: var(--text-primary);
}

.notif-comment-box {
    margin-top: 6px;
    padding: 10px 13px;
    background-color: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.91rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.notif-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.btn-read-toggle {
    background: var(--bg-base);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.btn-read-toggle:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-focus);
}

.notif-card.unread .btn-read-toggle {
    background-color: var(--accent-soft);
    border-color: var(--accent-border);
    color: #79c0ff;
}

/* @veronikaszabo11 és egyéb említések kiemelése */
.mention-highlight {
    display: inline-block;
    padding: 0 5px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #79c0ff;
    font-weight: 600;
}

.mention-highlight.mention-me {
    background-color: var(--mention-bg);
    color: var(--mention-text);
    border: 1px solid var(--mention-border);
    font-weight: 700;
}

/* Kártya Rács (Cards Grid) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.trello-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, transform 0.12s;
}

.trello-card:hover {
    background-color: var(--bg-elevated);
    border-color: var(--border-default);
    transform: translateY(-2px);
}

.trello-card.is-mine {
    border-top: 3px solid var(--accent-primary);
}

.card-top-tags {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.77rem;
}

.card-board-pill {
    font-weight: 600;
    color: #79c0ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-list-pill {
    padding: 2px 8px;
    border-radius: 4px;
    background-color: var(--bg-base);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    white-space: nowrap;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.38;
    word-break: break-word;
}

.card-desc-snippet {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.card-latest-comment {
    padding: 8px 10px;
    background-color: var(--bg-base);
    border-left: 3px solid var(--accent-primary);
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.card-latest-comment strong {
    color: var(--text-primary);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.79rem;
    color: var(--text-muted);
}

.card-footer-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.card-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    padding: 3px 7px;
    border-radius: 4px;
    background-color: var(--bg-base);
    border: 1px solid var(--border-subtle);
    font-size: 0.76rem;
    transition: all 0.12s;
}

.card-ext-link:hover {
    color: var(--text-primary);
    border-color: var(--border-focus);
    text-decoration: none;
}

/* ==========================================================================
   7. Helyi Kártya Modális Ablak (<dialog>)
   ========================================================================== */

.card-modal {
    margin: auto;
    width: min(820px, 94vw);
    max-height: 88vh;
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: hidden;
}

.card-modal::backdrop {
    background-color: rgba(4, 7, 12, 0.78);
    backdrop-filter: blur(4px);
}

.modal-inner {
    display: flex;
    flex-direction: column;
    max-height: 88vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    background-color: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.modal-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.86rem;
}

.breadcrumb-board {
    background: none;
    border: none;
    color: #79c0ff;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}
.breadcrumb-board:hover {
    background-color: var(--accent-soft);
}

.breadcrumb-sep {
    color: var(--text-muted);
}

.breadcrumb-list {
    padding: 2px 9px;
    border-radius: 4px;
    background-color: var(--bg-base);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.82rem;
}

.modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.modal-close-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.modal-close-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 22px 24px 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 14px;
}

.modal-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-section {
    margin-top: 22px;
}

.modal-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.modal-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-section-header .modal-section-title {
    margin-bottom: 0;
}

.modal-desc-box {
    padding: 14px 16px;
    background-color: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.modal-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-item {
    padding: 13px 16px;
    background-color: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.comment-item.has-mention-me {
    border-color: var(--mention-border);
    background-color: rgba(245, 158, 11, 0.05);
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 0.83rem;
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
}

.comment-username {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.comment-date {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.comment-body {
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ==========================================================================
   8. Üres és Töltési Állapotok (Empty & Loading States)
   ========================================================================== */

.loading-state, .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 20px;
    color: var(--text-secondary);
}

.spinner {
    width: 34px;
    height: 34px;
    border: 3px solid var(--border-default);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 14px;
}

.empty-state svg {
    color: var(--text-muted);
    margin-bottom: 14px;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.08rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 420px;
    margin-bottom: 18px;
}

/* ==========================================================================
   9. Reszponzív Mobil és Tablet Nézet
   ========================================================================== */

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close-btn,
    .mobile-menu-btn {
        display: inline-flex;
    }

    .topbar {
        padding: 0 14px;
    }

    .sync-label {
        display: none;
    }

    .content-header,
    .content-area {
        padding-left: 14px;
        padding-right: 14px;
    }

    .notif-card {
        flex-direction: column;
    }

    .notif-actions {
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
    }
}
