/* ===== Main Layout ===== */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0f1117;
    color: #e2e8f0;
}
.main-content {
    flex: 1;
}

/* ===== Main Layout Top Bar ===== */
.main-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(20, 22, 35, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 1.5rem;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-topbar .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}
.main-topbar .nav-brand img {
    height: 36px;
}
.main-topbar .nav-brand i {
    color: #6366f1;
    font-size: 1.5rem;
}
.main-topbar .nav-brand span {
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.main-topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.main-topbar .topbar-nav-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 7px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.main-topbar .topbar-nav-link:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.08);
}
.main-topbar .topbar-dropdown {
    position: relative;
}
.main-topbar .topbar-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(20, 22, 35, 0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    min-width: 160px;
    padding: 0.4rem 0;
    margin-top: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    z-index: 2000;
}
.main-topbar .topbar-dropdown-menu.open {
    display: block;
}
.main-topbar .topbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.15s;
}
.main-topbar .topbar-dropdown-item:hover {
    background: rgba(99,102,241,0.15);
    color: #ffffff;
}
.main-topbar .language-switcher {
    display: flex;
    gap: 0.35rem;
}
.main-topbar .lang-btn {
    padding: 0.3rem 0.65rem;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    font-size: 0.78rem;
    transition: all 0.2s;
}
.main-topbar .lang-btn:hover,
.main-topbar .lang-btn.active {
    border-color: #6366f1;
    color: #6366f1;
    background: rgba(99,102,241,0.12);
}

/* ===== Task Notification Bell ===== */
.task-notif-btn {
    position: relative;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: 7px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.task-notif-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.task-notif-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
.task-notif-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    background: rgba(20,22,35,0.99);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    z-index: 3000;
    padding: 0.75rem 0;
}
.task-notif-panel.open { display: block; }
.task-notif-header {
    padding: 0.4rem 1rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.task-notif-item {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.82rem;
}
.task-notif-item:last-child { border-bottom: none; }
.task-notif-item .task-title {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 2px;
}
.task-notif-item .task-meta {
    color: rgba(255,255,255,0.45);
    font-size: 0.75rem;
    margin-bottom: 6px;
}
.task-notif-item .task-actions { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.task-status-btn {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.15s;
}
.task-status-btn:hover { background: rgba(99,102,241,0.25); border-color: #6366f1; color: #fff; }
.task-status-btn.active { background: #6366f1; border-color: #6366f1; color: #fff; }
.task-priority-urgent { color: #ef4444; }
.task-priority-high    { color: #f97316; }
.task-priority-medium  { color: #eab308; }
.task-priority-low     { color: #22c55e; }
.task-notif-empty { padding: 1.5rem 1rem; text-align: center; color: rgba(255,255,255,0.35); font-size: 0.82rem; }
.task-view-btn {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.1);
    color: #a5b4fc;
    cursor: pointer;
    transition: all 0.15s;
    margin-left: auto;
}
.task-view-btn:hover { background: rgba(99,102,241,0.3); color: #fff; }

/* ===== Task Detail Modal ===== */
.task-detail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
.task-detail-overlay.open { display: flex; }
.task-detail-modal {
    background: #1a1d2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    width: 520px;
    max-width: 95vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    padding: 1.75rem;
    position: relative;
}
.task-detail-modal .tdm-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.15s;
}
.task-detail-modal .tdm-close:hover { color: #fff; }
.task-detail-modal .tdm-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
    padding-right: 2rem;
}
.task-detail-modal .tdm-release {
    font-size: 0.8rem;
    color: #6366f1;
    margin-bottom: 1.25rem;
}
.task-detail-modal .tdm-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.85rem;
    font-size: 0.85rem;
}
.task-detail-modal .tdm-label {
    color: rgba(255,255,255,0.45);
    min-width: 90px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 1px;
}
.task-detail-modal .tdm-value {
    color: #e2e8f0;
    flex: 1;
}
.task-detail-modal .tdm-description {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    white-space: pre-wrap;
    line-height: 1.6;
    margin-top: 0.25rem;
}
.task-detail-modal .tdm-status-row {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.task-detail-modal .tdm-status-btn {
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.15s;
}
.task-detail-modal .tdm-status-btn:hover { background: rgba(99,102,241,0.25); border-color: #6366f1; color: #fff; }
.task-detail-modal .tdm-status-btn.active { background: #6366f1; border-color: #6366f1; color: #fff; }

/* ===== Footer ===== */
footer.main-footer {
    background: rgba(20,22,35,0.98);
    border-top: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.45);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.85rem;
    margin-top: auto;
}
