@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Outfit:wght@400;500&display=swap");

/* ═══════════ ROOT VARIABLES ═══════════ */
:root {
    --bg: #0b1120;
    --bg-card: rgba(15, 23, 42, 0.5);
    --text: #f1f5f9;
    --muted: #64748b;
    --line: rgba(255, 255, 255, 0.06);
    --purple: #ff5a1f;
    --blue: #3b82f6;
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    --cyan: #06b6d4;
    --pink: #ec4899;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    color-scheme: dark;
}

/* ═══════════ RESET ═══════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

b,
strong {
    font-weight: 500 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 15% 50%, rgba(99, 102, 241, 0.08), transparent 50%),
        radial-gradient(ellipse at 85% 20%, rgba(59, 130, 246, 0.06), transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(168, 85, 247, 0.06), transparent 40%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ═══════════ COLOR SCHEME (native dark UI) ═══════════ */
:root {
    color-scheme: dark;
}

/* ═══════════ SCROLLBAR ═══════════ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.03);
}

/* ═══════════ GLOBAL SELECT & OPTION ═══════════ */
select,
.form-grid select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px !important;
    cursor: pointer;
}

select option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 10px 14px;
}

select option:checked {
    background: rgba(99, 102, 241, 0.3);
    color: var(--text-white, white);
}

select option:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* ═══════════ TOP NAVIGATION ═══════════ */
.topnav {
    position: sticky;
    top: 16px;
    z-index: 100;
    margin: 16px 24px;
    background: rgba(11, 17, 32, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .topnav {
        margin: 8px 12px;
        top: 8px;
    }

    .topnav-inner {
        padding: 0 16px;
        height: 56px;
    }
}

.topnav-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 28px;
    height: 64px;
}

/* Tasks Dropdown Hover */
.topnav-tasks-menu #tasks-dropdown-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.topnav-tasks-menu:hover #tasks-dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.topnav-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 12px;
}

.topnav-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* ── Nav Links ── */
.topnav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.topnav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    height: 42px;
    box-sizing: border-box;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.topnav-links a i {
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topnav-links a:hover {
    color: var(--text-white, white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.topnav-links a:hover i {
    color: var(--primary-light, #a78bfa);
    background: rgba(255, 255, 255, 0.1);
}

.topnav-links a.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.topnav-links a.active i {
    color: var(--blue);
}

/* ── Search ── */
.topnav-search {
    flex-shrink: 0;
}

.topnav-search form {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    min-width: 220px;
}

.topnav-search i {
    color: var(--muted);
    font-size: 16px;
    flex-shrink: 0;
}

.topnav-search input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    flex: 1;
    min-width: 0;
}

.topnav-search input::placeholder {
    color: var(--muted);
}

.topnav-search kbd {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    font-size: 10px;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Right Section ── */
.topnav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.topnav-bell {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.topnav-bell:hover {
    color: var(--text-white, white);
}

.topnav-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--red);
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 500;
    display: grid;
    place-items: center;
    line-height: 1;
}

.topnav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8a4c, #ff5a1f);
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-white, white);
    flex-shrink: 0;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.topnav-avatar:hover {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.topnav-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    transition: background 0.2s;
}

.topnav-user-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.topnav-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.2;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.user-role {
    font-size: 11px;
    color: var(--muted);
}

.user-dropdown {
    width: 200px;
    right: 0;
    top: calc(100% + 10px);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.user-dropdown-item i {
    font-size: 18px;
    color: var(--muted);
    transition: color 0.2s;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-dropdown-item.text-red {
    color: #ef4444;
}

.user-dropdown-item.text-red i {
    color: #ef4444;
}

.user-dropdown-item.text-red:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ── Notification Dropdown ── */
.notif-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 340px;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 200;
    overflow: hidden;
}

.notif-dropdown-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
    font-size: 14px;
}

.notif-dropdown-body {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s;
}

.notif-item:hover {
    background: var(--glass-hover);
}

.notif-item p {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
}

.notif-item small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.notif-empty {
    padding: 28px 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* ═══════════ MAIN CONTENT ═══════════ */
.app-main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 28px 28px 40px;
    min-height: calc(100vh - 64px - 52px);
}

/* ═══════════ FOOTER ═══════════ */
.app-footer {
    max-width: 1600px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 768px) {
    .app-footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }
}

/* ═══════════ FLASH MESSAGE ═══════════ */
.flash-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: var(--text-white, white);
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 18px 40px rgba(34, 197, 94, 0.25);
    z-index: 9999;
    animation: flashIn 0.25s ease-out, flashOut 0.25s ease-in 3.5s forwards;
}

@keyframes flashIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes flashOut {
    to {
        transform: translateY(-10px);
        opacity: 0;
    }
}

/* ═══════════ DASHBOARD ═══════════ */

/* ── Welcome ── */
.dash-welcome {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.dash-welcome h1 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
}

.dash-welcome p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 15px;
}

.dash-date {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Stats Row ── */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.dash-stat {
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.dash-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    font-size: 22px;
    flex-shrink: 0;
}

.dash-stat-icon.purple {
    background: rgba(168, 85, 247, 0.15);
    color: var(--purple);
}

.dash-stat-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
}

.dash-stat-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.dash-stat-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan);
}

.dash-stat-icon.orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--orange);
}

.dash-stat-icon.red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.dash-stat-value {
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}

.dash-stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 500;
}

.dash-stat-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* ── 3-Column Panels ── */
.dash-panels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.dash-panel {
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.dash-panel-head h3 {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-panel-head a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.dash-panel-head a:hover {
    color: var(--text-white, white);
}

.dash-panel-body {
    flex: 1;
    padding: 6px 0;
}

/* ── Activity Items ── */
.dash-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    transition: background 0.15s;
}

.dash-activity-item:hover {
    background: var(--glass-hover);
}

.dash-activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-white, white);
    flex-shrink: 0;
    position: relative;
}

.dash-activity-avatar.bg-blue {
    background: var(--blue);
}

.dash-activity-avatar.bg-purple {
    background: var(--purple);
}

.dash-activity-avatar.bg-green {
    background: var(--green);
}

.dash-activity-avatar.bg-orange {
    background: var(--orange);
}

.dash-activity-avatar.bg-red {
    background: var(--red);
}

.dash-activity-avatar.bg-cyan {
    background: var(--cyan);
}

.dash-activity-avatar.bg-pink {
    background: var(--pink);
}

.dash-activity-avatar .online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid var(--bg);
}

.dash-activity-text {
    flex: 1;
    min-width: 0;
}

.dash-activity-text p {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
}

.dash-activity-text p strong {
    font-weight: 500;
}

.dash-activity-text small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11.5px;
}

/* ── Upcoming Task Items ── */
.dash-task-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    transition: background 0.15s;
}

.dash-task-item:hover {
    background: var(--glass-hover);
}

.dash-task-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-task-dot.blue {
    background: var(--blue);
}

.dash-task-dot.green {
    background: var(--green);
}

.dash-task-dot.orange {
    background: var(--orange);
}

.dash-task-dot.red {
    background: var(--red);
}

.dash-task-dot.purple {
    background: var(--purple);
}

.dash-task-info {
    flex: 1;
    min-width: 0;
}

.dash-task-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
}

.dash-task-info span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.dash-task-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dash-task-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    font-size: 11.5px;
    color: var(--muted);
    white-space: nowrap;
}

.dash-task-date i {
    font-size: 13px;
}

.dash-task-priority {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.dash-task-priority.high {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.dash-task-priority.medium {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.dash-task-priority.low {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* ── Project Items ── */
.dash-project-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    transition: background 0.15s;
}

.dash-project-item:hover {
    background: var(--glass-hover);
}

.dash-project-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xs);
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dash-project-icon.purple {
    background: rgba(168, 85, 247, 0.15);
    color: var(--purple);
}

.dash-project-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
}

.dash-project-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
}

.dash-project-icon.orange {
    background: rgba(245, 158, 11, 0.15);
    color: var(--orange);
}

.dash-project-icon.red {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.dash-project-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan);
}

.dash-project-info {
    flex: 1;
    min-width: 0;
}

.dash-project-info strong {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
}

.dash-project-info span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.dash-project-status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

.dash-project-status.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.dash-project-status.paused {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
}

/* ═══════════ BOARD SHOW (KANBAN) ═══════════ */

.board-show-page {
    width: 100%;
}

/* ── Board Header ── */
.board-show-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.board-show-title-row h1 {
    font-size: 24px;
    font-weight: 500;
}

.board-show-title-row .board-icon-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.board-show-title-row .board-icon-btn:hover {
    color: var(--text-white, white);
}

/* ── Sub Navigation (Board, Activity, Tasks, Settings) ── */
.board-sub-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 24px;
}

.board-sub-nav a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.2s;
}

.board-sub-nav a:hover {
    color: var(--text);
    background: var(--glass-hover);
}

.board-sub-nav a.active {
    color: var(--text-white, white);
    background: rgba(99, 102, 241, 0.18);
}

/* ── Board Toolbar ── */
.board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.board-toolbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.board-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Avatar Stack ── */
.board-avatar-stack {
    display: flex;
    align-items: center;
}

.board-avatar-stack .av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-white, white);
    margin-left: -8px;
    border: 2px solid var(--bg);
    transition: transform 0.2s;
}

.board-avatar-stack .av:first-child {
    margin-left: 0;
}

.board-avatar-stack .av:hover {
    transform: scale(1.1);
    z-index: 2;
}

.board-avatar-stack .av-more {
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: var(--muted);
}

.board-filter-btn,
.board-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    border: 0;
}

.board-filter-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
}

.board-filter-btn:hover {
    background: var(--glass-hover);
}

.board-new-btn {
    background: linear-gradient(135deg, #ff8a4c, #ff5a1f);
    color: var(--text-white, white);
}

.board-new-btn:hover {
    transform: translateY(-1px);
}

/* ── Kanban Grid ── */
.board-kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: start;
}

/* ── Column ── */
.board-column {
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--column-color, var(--blue));
    backdrop-filter: blur(12px);
}

.board-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
}

.board-column-header h2 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-white, white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.board-col-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.board-col-menu {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.board-col-menu:hover {
    color: var(--text-white, white);
}

/* ── Task Cards ── */
.board-column-tasks {
    padding: 0 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 60px;
}

.board-task-card {
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.6);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    cursor: grab;
}

.board-task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.board-task-card:active {
    cursor: grabbing;
}

.board-task-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 10px;
}

.board-task-tag.design {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
}

.board-task-tag.backend {
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
}

.board-task-tag.frontend {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.board-task-tag.qa {
    background: rgba(6, 182, 212, 0.18);
    color: #22d3ee;
}

.board-task-tag.general {
    background: rgba(100, 116, 139, 0.18);
    color: #94a3b8;
}

.board-task-tag.devops {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
}

.board-task-tag.marketing {
    background: rgba(236, 72, 153, 0.18);
    color: #f472b6;
}

.board-task-tag.database {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
}

.board-task-tag.integration {
    background: rgba(99, 102, 241, 0.18);
    color: #818cf8;
}

.board-task-card h3 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-white, white);
}

.board-task-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.board-task-footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-task-user {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-white, white);
    flex-shrink: 0;
}

.board-task-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--muted);
}

.board-task-card-date i {
    font-size: 13px;
}

.board-task-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.board-task-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
}

.board-task-comments i {
    font-size: 14px;
}

.board-task-done-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green);
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--text-white, white);
}

/* ── Add Card / Add Column ── */
.board-add-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
    border: 0;
    background: transparent;
    width: 100%;
}

.board-add-card:hover {
    color: var(--text-white, white);
}

.board-add-column {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: transparent;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.board-add-column:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--glass);
    color: var(--text);
}

/* ── Board Task Edit ── */
.board-task-edit {
    display: none;
    margin-top: 10px;
    text-align: right;
}

.board-task-card:hover .board-task-edit {
    display: block;
}

.board-task-edit a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
}

.board-task-edit a:hover {
    background: #6366f1;
    color: var(--text-white, white);
}
html.light-mode .board-task-edit a:hover {
    color: #ffffff !important;
    background: #6366f1 !important;
}

/* ═══════════ BOARDS INDEX (LIST) ═══════════ */

.boards-page {
    width: 100%;
}

.boards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.boards-header h1 {
    font-size: 28px;
    font-weight: 500;
}

.boards-header p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.section-kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    font-weight: 500;
    color: var(--purple);
    margin-bottom: 6px;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.board-card {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.board-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.board-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.board-project {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-size: 11px;
    font-weight: 500;
}

.board-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.board-card h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-white, white);
}

.board-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.board-card p.muted {
    font-style: italic;
}

.board-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.board-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.board-actions {
    margin-top: 16px;
}

.board-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.2s;
}

.board-actions a:hover {
    background: #6366f1;
    color: var(--text-white, white);
}

.boards-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.boards-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.boards-empty h2 {
    color: var(--text-white, white);
    margin-bottom: 8px;
}

/* ═══════════ SORTABLE JS ═══════════ */
.sortable-ghost {
    opacity: 0.4;
    background: rgba(99, 102, 241, 0.1) !important;
    border: 2px dashed rgba(99, 102, 241, 0.3) !important;
    transform: scale(0.97);
}

.sortable-drag {
    cursor: grabbing !important;
}

/* ═══════════ BOARD SHOW HEADER OVERRIDES ═══════════ */
.board-show-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
}

.board-show-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.board-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.board-back-btn:hover {
    background: var(--glass-hover);
}

.board-description {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.board-column-empty {
    padding: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

/* ═══════════ MY TASKS ═══════════ */

.my-tasks-page {
    width: 100%;
}

.my-tasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.my-tasks-header h1 {
    font-size: 28px;
    font-weight: 500;
}

.my-tasks-header p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.my-tasks-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff8a4c, #ff5a1f);
    color: var(--text-white, white);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.my-tasks-primary-btn:hover {
    transform: translateY(-1px);
}

.my-tasks-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.my-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.my-filter-btn span {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

.my-filter-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text);
}

.my-filter-btn.active {
    border-color: transparent;
    background: rgba(99, 102, 241, 0.18);
    color: var(--text-white, white);
}

.my-filter-btn.active span {
    background: rgba(255, 255, 255, 0.2);
}

/* Colors for specific filters */
.my-filter-btn[data-filter="high"]:hover {
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--red);
}

.my-filter-btn.active[data-filter="high"] {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.3);
}

.my-filter-btn[data-filter="medium"]:hover {
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--blue);
}

.my-filter-btn.active[data-filter="medium"] {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
    border-color: rgba(59, 130, 246, 0.3);
}

.my-filter-btn[data-filter="low"]:hover {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--green);
}

.my-filter-btn.active[data-filter="low"] {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
    border-color: rgba(16, 185, 129, 0.3);
}

.my-tasks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.my-task-card {
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.my-task-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.my-task-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.my-task-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-size: 11px;
    font-weight: 500;
}

.my-task-priority {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.priority-high,
.priority-alta {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.priority-medium,
.priority-media {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.priority-low,
.priority-baja {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.my-task-card h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-white, white);
}

.my-task-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}

.my-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.my-task-meta span {
    font-size: 12px;
    color: var(--muted);
}

.my-task-meta strong {
    color: var(--text);
}

.my-task-actions {
    display: flex;
    justify-content: flex-end;
}

.my-task-actions a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
}

.my-task-actions a:hover {
    background: #6366f1;
    color: var(--text-white, white);
}
html.light-mode .my-task-actions a:hover {
    color: #ffffff !important;
    background: #6366f1 !important;
}

.my-tasks-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius);
    margin: 30px auto;
    max-width: 800px;
    backdrop-filter: blur(12px);
    color: var(--muted);
}

.my-tasks-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    color: var(--muted);
    opacity: 0.5;
}

.my-tasks-empty h2 {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 500;
}

.my-tasks-empty p {
    color: var(--muted);
    max-width: 400px;
    margin: 0 auto 24px auto;
    line-height: 1.5;
}

/* ═══════════ PROJECTS ═══════════ */

.projects-page {
    width: 100%;
}

.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.projects-header h1 {
    font-size: 28px;
    font-weight: 500;
}

.projects-header p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.project-card {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.project-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.project-id {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.project-card h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-white, white);
}

.project-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.project-actions {
    margin-top: 16px;
}

.project-actions a,
.project-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.2s;
}

.project-actions a:hover,
.project-back-btn:hover {
    background: #6366f1;
    color: var(--text-white, white);
}

.project-description {
    margin-bottom: 22px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ═══════════ USERS ═══════════ */

.users-page {
    width: 100%;
}

.users-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.users-header h1 {
    font-size: 28px;
    font-weight: 500;
}

.users-header p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.user-card {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.user-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-white, white);
    background: linear-gradient(135deg, #6366f1, #06b6d4);
}

.user-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.user-status.is-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.user-status.is-inactive {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.user-card h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-white, white);
}

.user-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.user-card .muted {
    color: var(--muted);
    font-size: 12px;
}

.user-card-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.user-card-actions a,
.user-card-actions button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    border: 0;
}

.user-card-actions a {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.user-card-actions a:hover {
    background: #6366f1;
    color: var(--text-white, white);
}

/* ═══════════ ACTIVITY ═══════════ */

.activity-page {
    width: 100%;
}

.activity-page-header {
    margin-bottom: 28px;
}

.activity-page-header h1 {
    font-size: 28px;
    font-weight: 500;
}

.activity-page-header p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.activity-list {
    display: grid;
    gap: 12px;
}

.activity-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
}

.activity-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-white, white);
    background: linear-gradient(135deg, #6366f1, #06b6d4);
}

.activity-content-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 4px;
}

.activity-content-top strong {
    font-size: 14px;
    color: var(--text-white, white);
}

.activity-content-top span {
    color: var(--muted);
    font-size: 12px;
}

.activity-item p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.activity-item p strong {
    color: var(--text);
}

.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.activity-tags span {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

/* ═══════════ ARCHIVED ═══════════ */

.archive-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.archive-link:hover {
    background: #6366f1;
    border-color: transparent;
    color: var(--text-white, white);
}

.archived-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.archived-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
}

.archived-card h3 {
    color: var(--text-white, white);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 6px;
}

.archived-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.archived-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.archived-meta span {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    font-size: 11px;
    color: var(--muted);
}

/* ═══════════ FORMS ═══════════ */

.task-form {
    margin-top: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.form-grid label.full {
    grid-column: 1 / -1;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass);
    color: var(--text);
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-grid textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

.form-actions a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.new-task,
.board-new-task-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff8a4c, #ff5a1f);
    color: var(--text-white, white);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 0;
    cursor: pointer;
}

.new-task:hover,
.board-new-task-btn:hover {
    transform: translateY(-1px);
}

.new-task.small {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
}

/* ═══════════ TASK CARD ACTIONS ═══════════ */

.task-card-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.task-card-actions form {
    margin: 0;
}

.task-card-actions a,
.task-card-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 0;
}

.task-card-actions a {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.task-card-actions a:hover {
    background: #6366f1;
    color: var(--text-white, white);
}

.task-card-actions button {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.task-card-actions button:hover {
    background: var(--red);
    color: var(--text-white, white);
}

/* ═══════════ TASK MOVE ACTIONS ═══════════ */

.task-move-actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.task-move-actions form {
    margin: 0;
}

.task-move-actions button {
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--muted);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.task-move-actions button:hover {
    background: #6366f1;
    border-color: transparent;
    color: var(--text-white, white);
}

/* ═══════════ EMPTY STATES ═══════════ */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 14px;
}

.empty-state strong {
    display: block;
    color: var(--text-white, white);
    font-size: 15px;
    margin-bottom: 6px;
}

.empty-state.compact {
    min-height: 100px;
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: transparent;
}

.empty-board {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-board h3 {
    color: var(--text-white, white);
    margin-bottom: 8px;
}

/* ═══════════ SEARCH ═══════════ */

.search-page {
    width: 100%;
}

/* ═══════════ BRAND ═══════════ */

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-logo-mini {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* ═══════════ LOGOUT ═══════════ */

.logout-btn {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.logout-btn:hover {
    color: var(--red);
}

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 1280px) {
    .dash-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .dash-panels {
        grid-template-columns: 1fr 1fr;
    }

    .my-tasks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .topnav-links {
        display: none;
    }

    .topnav-search {
        display: none;
    }

    .dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-panels {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .users-grid {
        grid-template-columns: 1fr;
    }

    .my-tasks-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .board-kanban {
        grid-template-columns: 1fr;
    }
}



/* ═══════════ KANBAN STATE CARDS ═══════════ */
.board-task-card.state-pending {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.2);
}

.board-task-card.state-pending:hover {
    background: rgba(239, 68, 68, 0.14) !important;
}

.board-task-card.state-progress {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.2);
}

.board-task-card.state-progress:hover {
    background: rgba(59, 130, 246, 0.14) !important;
}

.board-task-card.state-review {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.2);
}

.board-task-card.state-review:hover {
    background: rgba(245, 158, 11, 0.14) !important;
}

.board-task-card.state-completed {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.2);
}

.board-task-card.state-completed:hover {
    background: rgba(16, 185, 129, 0.14) !important;
}

/* ═══════════ PRIORITY BACKGROUNDS FOR TASKS ═══════════ */
.my-task-card.bg-priority-high {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.2);
}

.my-task-card.bg-priority-high:hover {
    background: rgba(239, 68, 68, 0.14) !important;
}

.my-task-card.bg-priority-medium {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.2);
}

.my-task-card.bg-priority-medium:hover {
    background: rgba(59, 130, 246, 0.14) !important;
}

.my-task-card.bg-priority-low {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.2);
}

.my-task-card.bg-priority-low {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.2);
}

.my-task-card.bg-priority-low:hover {
    background: rgba(16, 185, 129, 0.14) !important;
}

/* ═══════════ TASK EDIT LAYOUT (60/40) ═══════════ */
.task-edit-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    /* 60% / 40% */
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .task-edit-layout {
        grid-template-columns: 1fr;
    }
}

.task-edit-sidebar .board-panel {
    margin-top: 0;
    margin-bottom: 24px;
}

/* ═══════════ CUSTOM SELECT COMPONENT ═══════════ */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 42px;
    padding: 0 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-select-trigger:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: rgba(99, 102, 241, 0.5);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select-arrow {
    display: flex;
    align-items: center;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.custom-select-wrapper.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-top: none;
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(12px);
}

.custom-select-wrapper.open .custom-select-options {
    display: block;
    animation: selectFadeIn 0.2s ease;
}

@keyframes selectFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-option {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-left: 2px solid transparent;
}

/* Rotating / State Colors for Custom Options */
.custom-option.opt-red {
    background: rgba(239, 68, 68, 0.05);
}

.custom-option.opt-red:hover,
.custom-option.opt-red.selected {
    background: rgba(239, 68, 68, 0.15);
    border-left-color: #ef4444;
}

.custom-option.opt-blue {
    background: rgba(59, 130, 246, 0.05);
}

.custom-option.opt-blue:hover,
.custom-option.opt-blue.selected {
    background: rgba(59, 130, 246, 0.15);
    border-left-color: #3b82f6;
}

.custom-option.opt-yellow {
    background: rgba(245, 158, 11, 0.05);
}

.custom-option.opt-yellow:hover,
.custom-option.opt-yellow.selected {
    background: rgba(245, 158, 11, 0.15);
    border-left-color: #f59e0b;
}

.custom-option.opt-green {
    background: rgba(16, 185, 129, 0.05);
}

.custom-option.opt-green:hover,
.custom-option.opt-green.selected {
    background: rgba(16, 185, 129, 0.15);
    border-left-color: #10b981;
}

.custom-option:hover {
    color: var(--text-white, white);
}

.custom-option.selected {
    color: var(--text-white, white);
}

/* Scrollbar for custom select */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* ═══════════ RESTORE BUTTON ═══════════ */
.restore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.restore-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: var(--text-white, white);
}

/* ═══════════ COMMON COMPONENT: BOARD HEADER ═══════════ */
.board-header,
.projects-header,
.boards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.board-header h1,
.board-header h2,
.projects-header h1,
.projects-header h2,
.boards-header h1,
.boards-header h2 {
    margin: 0;
}

.board-tools {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Secondary Buttons */
.btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-main) !important;
    box-shadow: none !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ── Activity Timeline ── */
.activity-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

.activity-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.activity-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--muted);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.activity-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    transform: translateY(-1px);
}

/* Individual Colors for Chips */
.activity-chip[data-action="all"].active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.activity-chip[data-action="comments"].active {
    background: rgba(234, 179, 8, 0.15);
    /* Yellow/Warning */
    border-color: var(--orange);
    color: var(--orange);
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.2);
}

.activity-chip[data-action="files"].active {
    background: rgba(34, 197, 94, 0.15);
    /* Green/Success */
    border-color: var(--green);
    color: var(--green);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.activity-chip[data-action="status"].active {
    background: rgba(168, 85, 247, 0.15);
    /* Purple */
    border-color: var(--purple);
    color: var(--purple);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.activity-user-filter {
    display: flex;
    gap: 10px;
}

.activity-user-filter select {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 8px 35px 8px 15px;
    /* Add space for the arrow */
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 14px;
    cursor: pointer;
    min-width: 160px;
    /* Previene saltos bruscos de tamaño */
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.activity-user-filter select option {
    background: var(--bg);
    color: var(--text);
}

/* Anchos específicos para que el texto no se corte */
#time-filter {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    flex-shrink: 0;
}

#user-filter {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    flex-shrink: 0;
}

/* ═══════════ EMPTY STATES ═══════════ */
.activity-empty,
.boards-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius);
    margin: 30px auto;
    max-width: 800px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.activity-empty .empty-icon,
.boards-empty .empty-icon {
    font-size: 64px;
    color: var(--muted);
    margin-bottom: 24px;
    opacity: 0.5;
}

.activity-empty h2,
.boards-empty h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.activity-empty p,
.boards-empty p {
    font-size: 14px;
    color: var(--muted);
    max-width: 400px;
    line-height: 1.6;
}

/* ═══════════ FILTER DROPDOWN & CHECKBOXES ═══════════ */
.filter-dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.dropdown-section-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-left: 4px;
}

.board-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text) !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13.5px;
    transition: all 0.2s ease;
}

.board-dropdown-item:hover {
    background: var(--glass-hover);
}

.custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin: 0 -8px 4px -8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.custom-checkbox-label:hover {
    background: var(--glass-hover);
}

.custom-checkbox-input {
    display: none;
}

.custom-checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.custom-checkbox-box i {
    font-size: 12px;
    color: var(--text-white, white);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-checkbox-input:checked+.custom-checkbox-box {
    background: var(--blue);
    border-color: var(--blue);
}

.custom-checkbox-input:checked+.custom-checkbox-box i {
    opacity: 1;
    transform: scale(1);
}

.custom-checkbox-text {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.2);
}

.boards-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius);
    margin: 30px auto;
    max-width: 800px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.activity-empty .empty-icon,
.boards-empty .empty-icon {
    font-size: 64px;
    color: var(--muted);
    margin-bottom: 24px;
    opacity: 0.5;
}

.activity-empty h2,
.boards-empty h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.activity-empty p,
.boards-empty p {
    font-size: 14px;
    color: var(--muted);
    max-width: 400px;
    line-height: 1.6;
}

/* Responsividad para filtros */
@media (max-width: 992px) {
    .activity-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .activity-user-filter {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    /* En tablet, los selectores mantienen su tamaño o se ajustan si es necesario */
}

@media (max-width: 576px) {
    .activity-user-filter {
        flex-direction: column;
        width: 100%;
    }

    #time-filter,
    #user-filter {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

#activity-timeline-container {
    position: relative;
    padding-left: 20px;
}

#activity-timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 2px;
    background: var(--glass-border);
}

.timeline-date-header {
    margin: 30px 0 15px -20px;
    background: var(--bg-card);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.timeline-time {
    width: 50px;
    flex-shrink: 0;
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    padding-top: 12px;
}

.timeline-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-white, white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    border: 3px solid var(--bg);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.timeline-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: var(--radius);
    flex-grow: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-content-top {
    margin-bottom: 5px;
}

.timeline-content p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text);
}

/* ══════════════════════════════════════════
   SETTINGS PAGE LAYOUT
   ══════════════════════════════════════════ */
.settings-page {
    max-width: 1200px;
    margin: 0 auto;
}

.settings-header {
    margin-bottom: 30px;
}

.settings-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.settings-sidebar {
    width: 290px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 15px;
    position: sticky;
    top: 20px;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    /* Match topnav padding */
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    /* Match topnav border-radius */
    transition: all 0.2s ease;
    font-weight: 500;
    border: 1px solid transparent;
    /* Prepare for border on hover/active */
    box-sizing: border-box;
}

.settings-nav-item i {
    font-size: 20px;
    color: var(--muted);
    transition: all 0.2s ease;
    border-radius: 50%;
    /* prepare for active circle */
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
}

.settings-nav-item:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: var(--text-white, #ffffff);
}

.settings-nav-item.active {
    background: rgba(20, 25, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #6366f1;
    backdrop-filter: blur(12px);
    color: var(--text-white, #ffffff);
}

.settings-nav-item.active i {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(99, 102, 241, 0.85));
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white, #ffffff);
    font-size: 14px;
    box-shadow: none;
}

.settings-nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.settings-nav-item .badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--muted);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: auto;
    font-weight: 500;
}

.settings-content {
    flex-grow: 1;
    min-width: 0;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 25px;
}

.settings-card-header {
    margin-bottom: 25px;
}

.settings-card-header h2 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
    }

    .settings-sidebar {
        width: 100%;
        position: static;
    }
}

/* Active State Override */
.topnav-inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center;
    gap: 2rem;
}

.topnav-brand {
    display: flex;
    justify-content: flex-start;
}

.topnav-links {
    display: flex;
    gap: 8px;
    justify-self: center;
}

.topnav-right {
    display: flex;
    justify-content: flex-end;
}

.topnav-links a.active,
.topnav-tasks-menu>a.active {
    background: rgba(20, 25, 40, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: 4px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    color: var(--text-white, #ffffff) !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    padding: 8px 16px !important;
    height: 42px !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
}

.topnav-links a.active i:first-of-type,
.topnav-tasks-menu>a.active i:first-of-type {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(99, 102, 241, 0.85)) !important;
    color: var(--text-white, #ffffff) !important;
    font-size: 14px !important;
    box-shadow: none !important;
}
/* Sidebar Logo Base */
.sidebar-logo-img { display: inline-block; }
.sidebar-logo-img-light { display: none; }


/* ═══════════ MOBILE DROPDOWNS FIX ═══════════ */
@media (max-width: 768px) {
    .notif-dropdown, 
    .filter-dropdown-menu {
        position: fixed !important;
        top: 70px !important;
        left: 16px !important;
        right: 16px !important;
        width: calc(100% - 32px) !important;
        max-width: none !important;
        transform: none !important;
        margin: 0 !important;
        z-index: 9999 !important;
        border-radius: 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE — SUPER PRO v4
   REGLA DE ORO: Este bloque NUNCA modifica el modo dark.
   Todo selector comienza con html.light-mode
═══════════════════════════════════════════════════════════ */

/* ── 1. Variables del sistema Light ── */
html.light-mode {
    --bg: #f0f4f8;
    --bg-card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --line: rgba(0, 0, 0, 0.07);
    --shadow: none;
    --glass: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.09);
    --glass-hover: rgba(0, 0, 0, 0.05);
    --text-white: var(--text);
    --bg-overlay: var(--bg-card);
    --card-bg-light: #ffffff;
    --input-bg: #f1f5f9;
    --input-bg-light: #f8fafc;
    --input-bg-dark: #e2e8f0;
    --bg-darkest: #ffffff;
    --border-light: rgba(0, 0, 0, 0.05);
    --border-medium: rgba(0, 0, 0, 0.1);
    --border-faint: rgba(0, 0, 0, 0.03);
    --border-dashed: rgba(0, 0, 0, 0.08);
    color-scheme: light;
}

/* ── 2. Body y fondo ── */
html.light-mode body {
    background-color: #f0f4f8 !important;
    background-image: none !important;
    background-attachment: fixed !important;
}

/* ── 3. Scrollbar adaptada al modo claro ── */
html.light-mode ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
}
html.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}
html.light-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}
html.light-mode * {
    scrollbar-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.04);
}

/* ── 4. Eliminar sombras y glass en modo claro ── */
html.light-mode,
html.light-mode *,
html.light-mode *:hover {
    box-shadow: none !important;
    backdrop-filter: none !important;
}

/* ── 5. Navegación superior ── */
html.light-mode .topnav {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
html.light-mode .topnav-links a {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.07) !important;
    border-left-color: rgba(0, 0, 0, 0.07) !important;
    color: #64748b !important;
}
html.light-mode .topnav-links a:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #4f46e5 !important;
    border-left-color: #6366f1 !important;
}
html.light-mode .topnav-links a.active {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #2563eb !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}

/* Custom solid colors for active topnav items in Light Mode */
html.light-mode .topnav-links a.nav-dashboard.active { background: var(--purple) !important; color: #fff !important; border-color: transparent !important; border-left-color: rgba(0,0,0,0.2) !important; }
html.light-mode .topnav-links a.nav-dashboard.active i { color: #fff !important; background: rgba(0,0,0,0.15) !important; }

html.light-mode .topnav-links a.nav-projects.active { background: var(--blue) !important; color: #fff !important; border-color: transparent !important; border-left-color: rgba(0,0,0,0.2) !important; }
html.light-mode .topnav-links a.nav-projects.active i { color: #fff !important; background: rgba(0,0,0,0.15) !important; }

html.light-mode .topnav-links a.nav-boards.active { background: var(--orange) !important; color: #fff !important; border-color: transparent !important; border-left-color: rgba(0,0,0,0.2) !important; }
html.light-mode .topnav-links a.nav-boards.active i { color: #fff !important; background: rgba(0,0,0,0.15) !important; }

html.light-mode .topnav-links a.nav-tasks.active,
html.light-mode .topnav-tasks-menu>a.nav-tasks.active { background: var(--green) !important; color: #fff !important; border-color: transparent !important; border-left-color: rgba(0,0,0,0.2) !important; }
html.light-mode .topnav-links a.nav-tasks.active i,
html.light-mode .topnav-tasks-menu>a.nav-tasks.active i { color: #fff !important; background: rgba(0,0,0,0.15) !important; }

html.light-mode .topnav-links a.nav-activity.active { background: var(--pink) !important; color: #fff !important; border-color: transparent !important; border-left-color: rgba(0,0,0,0.2) !important; }
html.light-mode .topnav-links a.nav-activity.active i { color: #fff !important; background: rgba(0,0,0,0.15) !important; }

html.light-mode .topnav-links a.nav-settings.active { background: #64748b !important; color: #fff !important; border-color: transparent !important; border-left-color: rgba(0,0,0,0.2) !important; }
html.light-mode .topnav-links a.nav-settings.active i { color: #fff !important; background: rgba(0,0,0,0.15) !important; }

/* Custom solid colors for active mobile sidebar items in Light Mode */
html.light-mode .mobile-sidebar-links a.nav-dashboard.active { background: var(--purple) !important; color: #fff !important; border-color: transparent !important; border-left-color: rgba(0,0,0,0.2) !important; }
html.light-mode .mobile-sidebar-links a.nav-dashboard.active i { color: #fff !important; }

html.light-mode .mobile-sidebar-links a.nav-projects.active { background: var(--blue) !important; color: #fff !important; border-color: transparent !important; border-left-color: rgba(0,0,0,0.2) !important; }
html.light-mode .mobile-sidebar-links a.nav-projects.active i { color: #fff !important; }

html.light-mode .mobile-sidebar-links a.nav-boards.active { background: var(--orange) !important; color: #fff !important; border-color: transparent !important; border-left-color: rgba(0,0,0,0.2) !important; }
html.light-mode .mobile-sidebar-links a.nav-boards.active i { color: #fff !important; }

html.light-mode .mobile-sidebar-links a.nav-tasks.active { background: var(--green) !important; color: #fff !important; border-color: transparent !important; border-left-color: rgba(0,0,0,0.2) !important; }
html.light-mode .mobile-sidebar-links a.nav-tasks.active i { color: #fff !important; }
html.light-mode .mobile-sidebar-links .sidebar-tasks-dropdown > div.active button { color: #fff !important; opacity: 1 !important; }

html.light-mode .mobile-sidebar-links a.nav-activity.active { background: var(--pink) !important; color: #fff !important; border-color: transparent !important; border-left-color: rgba(0,0,0,0.2) !important; }
html.light-mode .mobile-sidebar-links a.nav-activity.active i { color: #fff !important; }

html.light-mode .mobile-sidebar-links a.nav-settings.active { background: #64748b !important; color: #fff !important; border-color: transparent !important; border-left-color: rgba(0,0,0,0.2) !important; }
html.light-mode .mobile-sidebar-links a.nav-settings.active i { color: #fff !important; }

html.light-mode .topnav-search form,
html.light-mode .mobile-sidebar-search form {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}
html.light-mode .topnav-search input,
html.light-mode .mobile-sidebar-search input {
    color: #1e293b !important;
    background: transparent !important;
}

/* Sidebar Logo Light Mode Override */
html.light-mode .has-light-logo .sidebar-logo-img { display: none !important; }
html.light-mode .has-light-logo .sidebar-logo-img-light { display: inline-block !important; }
html.light-mode .topnav-search kbd {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}
html.light-mode .topnav-bell {
    color: #64748b !important;
}
html.light-mode .topnav-bell:hover {
    color: #1e293b !important;
}
html.light-mode .topnav-user-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}
html.light-mode .user-name {
    color: #1e293b !important;
}

/* ── 6. Dropdowns y menús ── */
html.light-mode .notif-dropdown {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}
html.light-mode .user-dropdown {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}
html.light-mode .user-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}
html.light-mode #tasks-dropdown-menu {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ── 7. Cards y paneles base ── */
html.light-mode .dash-stat,
html.light-mode .dash-panel,
html.light-mode .board-panel,
html.light-mode .project-card,
html.light-mode .board-task-card,
html.light-mode .my-task-card,
html.light-mode .notif-dropdown,
html.light-mode .activity-filters {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ── 8. Títulos en tarjetas que usaban var(--text-white) ── */
html.light-mode .board-task-card h3,
html.light-mode .board-column-header h2,
html.light-mode .project-card h2 {
    color: #1e293b !important;
}

/* ── 9. Kanban board task cards ── */
html.light-mode .board-task-card {
    background: #ffffff !important;
}
html.light-mode .board-task-card:hover {
    border-color: rgba(99, 102, 241, 0.25) !important;
    background: #fafbff !important;
}
html.light-mode .board-col-count {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #64748b !important;
}
html.light-mode .board-col-menu:hover {
    color: #1e293b !important;
}
html.light-mode .board-column-empty {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ── 10. FIX BOTÓN BACK (board-back-btn) — usa var(--glass) ── */
/*  En modo claro el fondo glassmorphism queda legible con texto oscuro */
html.light-mode .board-back-btn {
    background: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #1e293b !important;
}
html.light-mode .board-back-btn:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* ── 11. FIX: Botones de acción principales — texto blanco forzado ── */
html.light-mode .planner-tab.active,
html.light-mode .calendar-date.today,
html.light-mode .timeline-user-avatar,
html.light-mode .recent-activity-icon,
html.light-mode button[style*="background"],
html.light-mode a[style*="background"],
html.light-mode .badge,
html.light-mode .new-task:not([style*="var(--glass)"]),
html.light-mode .my-tasks-primary-btn,
html.light-mode .board-new-task-btn,
html.light-mode .board-new-btn,
html.light-mode .btn-primary,
html.light-mode .btn-orange,
html.light-mode .btn-green,
html.light-mode .btn-danger {
    color: #ffffff !important;
}

/* ── 12. FIX btn-secondary: fondo semitransparente, texto oscuro ── */
html.light-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #1e293b !important;
}
html.light-mode .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}
/* ── Botón "Back" estandarizado para todas las vistas ── */
.new-task.btn-back {
    background: var(--glass) !important;
    border-color: var(--glass-border) !important;
    color: var(--text) !important;
    box-shadow: none !important;
}
html.light-mode .new-task.btn-back {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #1e293b !important;
}
html.light-mode .new-task.btn-back:hover {
    background: rgba(0, 0, 0, 0.12) !important;
    color: #1e293b !important;
}

/* ── Botón "View Boards" y "View Board" en las tarjetas ── */
.btn-view-card {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.15) !important;
    color: #4f46e5 !important; /* Texto más oscuro para más contraste */
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}
html.dark-mode .btn-view-card, :root {
    color: #818cf8 !important; /* En modo oscuro, color más claro para contraste */
}
html.light-mode .btn-view-card {
    color: #4338ca !important; /* En modo claro, color más oscuro para contraste */
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.25) !important;
}
.btn-view-card:hover,
html.light-mode .btn-view-card:hover,
html.dark-mode .btn-view-card:hover {
    background: #6366f1 !important;
    color: #ffffff !important; /* Letra blanca en el hover como se solicitó */
    border-color: #6366f1 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ── 13. FIX: [class*="bg-"] — EXCLUIR avatares y elementos con bg de color ── */
/*  Se mantiene solo para los elementos de actividad con fondos sólidos */
html.light-mode [class*="bg-"]:not([class*="-light"]):not(.board-task-card):not(.my-task-card):not(.activity-chip) {
    color: #ffffff !important;
}

/* ── 14. FIX: Project actions — hover con texto blanco ── */
html.light-mode .project-actions a {
    color: #4f46e5 !important;
    background: rgba(99, 102, 241, 0.08) !important;
}
html.light-mode .project-actions a:hover,
html.light-mode .project-back-btn:hover {
    background: #6366f1 !important;
    color: #ffffff !important;
}
html.light-mode .project-back-btn {
    color: #4f46e5 !important;
    background: rgba(99, 102, 241, 0.08) !important;
}

/* ── 15. FIX: Hover en enlaces de cabecera de paneles ── */
html.light-mode .dash-panel-head a:hover {
    color: #1e293b !important;
}
html.light-mode .dash-panel-head a {
    color: #64748b !important;
}

/* ── 16. Inputs y formularios ── */
html.light-mode input,
html.light-mode textarea,
html.light-mode select {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #1e293b !important;
}
html.light-mode input:focus,
html.light-mode textarea:focus,
html.light-mode select:focus {
    border-color: rgba(99, 102, 241, 0.4) !important;
    background: #ffffff !important;
}
html.light-mode input::placeholder,
html.light-mode textarea::placeholder {
    color: #94a3b8 !important;
}
html.light-mode select option {
    background: #ffffff !important;
    color: #1e293b !important;
}

/* ── 17. Modales ── */
html.light-mode .modal-overlay {
    background: rgba(15, 23, 42, 0.5) !important;
}
html.light-mode .modal,
html.light-mode .modal-content,
html.light-mode [class*="modal"] {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}

/* ── 18. Tareas del Calendario y Timeline (colores pastel) ── */
/*  NO se les fuerza texto blanco — heredan el color del inline style o su propio contraste */
html.light-mode .fc-event,
html.light-mode [class*="cal-task"],
html.light-mode [class*="planner-day-task"],
html.light-mode [class*="timeline-task-item"] {
    /* texto oscuro para fondos pastel — NO añadir color:white aquí */
    color: inherit;
}

/* ── 19. Tags de prioridad en tarjetas de tarea ── */
html.light-mode .my-task-card.bg-priority-high {
    background: rgba(239, 68, 68, 0.07) !important;
    border-color: rgba(239, 68, 68, 0.18) !important;
}
html.light-mode .my-task-card.bg-priority-medium {
    background: rgba(59, 130, 246, 0.07) !important;
    border-color: rgba(59, 130, 246, 0.18) !important;
}
html.light-mode .my-task-card.bg-priority-low {
    background: rgba(16, 185, 129, 0.07) !important;
    border-color: rgba(16, 185, 129, 0.18) !important;
}

/* ── 20. States de board task cards ── */
html.light-mode .board-task-card.state-pending {
    background: rgba(239, 68, 68, 0.05) !important;
    border-color: rgba(239, 68, 68, 0.15) !important;
}
html.light-mode .board-task-card.state-progress {
    background: rgba(59, 130, 246, 0.05) !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
}
html.light-mode .board-task-card.state-review {
    background: rgba(245, 158, 11, 0.05) !important;
    border-color: rgba(245, 158, 11, 0.15) !important;
}
html.light-mode .board-task-card.state-completed {
    background: rgba(16, 185, 129, 0.05) !important;
    border-color: rgba(16, 185, 129, 0.15) !important;
}

/* ── 21. Activity chips ── */
html.light-mode .activity-chip {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #64748b !important;
}
html.light-mode .activity-chip:hover {
    background: rgba(0, 0, 0, 0.07) !important;
    color: #1e293b !important;
}

/* ── 22. Board filter btn ── */
html.light-mode .board-filter-btn {
    background: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}
html.light-mode .board-filter-btn:hover {
    background: #e2e8f0 !important;
}

/* ── 23. My-filter buttons (filtros de mis tareas) ── */
html.light-mode .my-filter-btn {
    background: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.09) !important;
    color: #64748b !important;
}
html.light-mode .my-filter-btn.active {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: #6366f1 !important;
    color: #4f46e5 !important;
}

/* Light mode specific colors for priority filter buttons */
html.light-mode .my-filter-btn[data-filter="high"]:hover {
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: var(--red) !important;
}
html.light-mode .my-filter-btn.active[data-filter="high"] {
    background: rgba(239, 68, 68, 0.15) !important;
    color: var(--red) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}
html.light-mode .my-filter-btn.active[data-filter="high"] span {
    background: rgba(239, 68, 68, 0.2) !important;
}

html.light-mode .my-filter-btn[data-filter="medium"]:hover {
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: var(--blue) !important;
}
html.light-mode .my-filter-btn.active[data-filter="medium"] {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--blue) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}
html.light-mode .my-filter-btn.active[data-filter="medium"] span {
    background: rgba(59, 130, 246, 0.2) !important;
}

html.light-mode .my-filter-btn[data-filter="low"]:hover {
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: var(--green) !important;
}
html.light-mode .my-filter-btn.active[data-filter="low"] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: var(--green) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}
html.light-mode .my-filter-btn.active[data-filter="low"] span {
    background: rgba(16, 185, 129, 0.2) !important;
}

/* ── 24. Badges y tags de estado ── */
html.light-mode .board-task-tag.design  { background: rgba(168,85,247,0.12) !important; color: #7c3aed !important; }
html.light-mode .board-task-tag.backend { background: rgba(59,130,246,0.12) !important; color: #2563eb !important; }
html.light-mode .board-task-tag.frontend { background: rgba(16,185,129,0.12) !important; color: #059669 !important; }
html.light-mode .board-task-tag.qa      { background: rgba(6,182,212,0.12) !important; color: #0891b2 !important; }
html.light-mode .board-task-tag.general { background: rgba(100,116,139,0.12) !important; color: #475569 !important; }
html.light-mode .board-task-tag.devops  { background: rgba(245,158,11,0.12) !important; color: #b45309 !important; }
html.light-mode .board-task-tag.marketing { background: rgba(236,72,153,0.12) !important; color: #be185d !important; }
html.light-mode .board-task-tag.database  { background: rgba(239,68,68,0.12) !important; color: #dc2626 !important; }
html.light-mode .board-task-tag.integration { background: rgba(99,102,241,0.12) !important; color: #4f46e5 !important; }

/* ── 25. Footer ── */
html.light-mode .app-footer {
    border-color: rgba(0, 0, 0, 0.07) !important;
}

/* ── 26. Separadores ── */
html.light-mode hr {
    border-color: rgba(0, 0, 0, 0.07) !important;
}

/* ══════════════════════════════════════════════════════════
   GLOBAL — Timeline Header Buttons & Section Dots
   (Sin prefijo light-mode: afectan ambos modos igual)
══════════════════════════════════════════════════════════ */
.planner-tab.tab-timeline.active  { background-color: var(--blue)   !important; color: white !important; }
.planner-tab.tab-calendar.active  { background-color: var(--orange) !important; color: white !important; }
.planner-tab.tab-workload.active  { background-color: var(--purple) !important; color: white !important; }
.planner-tab.tab-history.active   { background-color: var(--green)  !important; color: white !important; }

.section-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: var(--border-medium, rgba(255,255,255,0.1));
    transition: background-color 0.3s ease;
}

#section-timeline.is-active .section-dot { background-color: var(--blue); }
#section-calendar.is-active .section-dot  { background-color: var(--orange); }
#section-workload.is-active .section-dot  { background-color: var(--purple); }
#section-history.is-active .section-dot   { background-color: var(--green); }

/* Fix scroll offset for sticky header */
.planner-card { scroll-margin-top: 90px; }

@media (max-width: 768px) {
    .my-tasks-header, .projects-header, .boards-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px;
    }
}
