/* assets/css/style.css */
:root {
    --primary: #0EA5E9;
    --primary-hover: #0284C7;
    --navy: #0B1220;
    --navy-light: #475569;
    --navy-muted: #94A3B8;
    --bg-body: #EEF2F7;
    --border-color: rgba(255, 255, 255, 0.8);
    --border-subtle: rgba(203, 213, 225, 0.5);

    --status-upcoming-bg: #DBEAFE;
    --status-upcoming-text: #1E40AF;
    --status-progress-bg: #FEF3C7;
    --status-progress-text: #92400E;
    --status-pending-bg: #FEE2E2;
    --status-pending-text: #991B1B;
    --status-completed-bg: #D1FAE5;
    --status-completed-text: #065F46;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    /* Clean neutral soft gradient — no colored shades */
    background:
        radial-gradient(circle at 20% 10%, rgba(226, 232, 240, 0.9) 0%, transparent 45%),
        radial-gradient(circle at 80% 90%, rgba(203, 213, 225, 0.85) 0%, transparent 45%),
        linear-gradient(160deg, #F1F5F9 0%, #E2E8F0 50%, #E8EEF5 100%);
    background-attachment: fixed;
    color: var(--navy);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Soft neutral floating orbs (greyscale, not colored) */
body::before {
    content: '';
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
    top: -140px;
    left: 10%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 18s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(148, 163, 184, 0.35) 0%, transparent 70%);
    bottom: -200px;
    right: 5%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 22s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -40px) scale(1.1); }
}

svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ============================================
   STRONG GLASS CARD
   ============================================ */
.card {
    position: relative;
    /* Strong glass: lighter fill so background shows through */
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow:
        0 8px 32px rgba(15, 23, 42, 0.08),
        0 2px 8px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.4);
    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.4s ease,
        border-color 0.4s ease,
        border-radius 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
}

/* Light streak */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(255, 255, 255, 0.65) 50%,
        transparent 60%
    );
    transition: left 1s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 2;
}

.card:hover::before { left: 120%; }

/* Cursor-follow radial glow */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle 320px at var(--x, 50%) var(--y, 50%),
        rgba(255, 255, 255, 0.5),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.card:hover::after { opacity: 1; }

/* MORPH: lift + scale + border glow */
.card:hover {
    transform: translateY(-8px) scale(1.012);
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
        0 24px 56px rgba(15, 23, 42, 0.14),
        0 8px 20px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.5);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: 265px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    border-right: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        8px 0 40px rgba(15, 23, 42, 0.05),
        inset -1px 0 0 rgba(255, 255, 255, 0.6);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 4px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.logo-icon {
    background: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 20px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* MORPH: logo square → circle */
.logo-icon:hover {
    transform: rotate(-8deg) scale(1.08);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.55);
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    stroke-width: 2.2;
    position: relative;
    z-index: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.03em;
}

.logo-text .sub {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--navy-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav */
.nav-menu {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1rem;
    border-radius: 11px;
    color: var(--navy-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-item > * { position: relative; z-index: 1; }

.nav-item:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    transform: translateX(6px);
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.nav-item.active {
    background: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    box-shadow:
        0 8px 22px rgba(14, 165, 233, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-item.active svg { stroke: white; }

.nav-item .badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.95);
    color: var(--status-pending-text);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

.nav-item.active .badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
}

.sidebar-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

/* ============================================
   AVATARS — PERFECT CIRCLES
   ============================================ */
img.avatar,
.profile-dropdown img,
.profile-dropdown-top img,
.staff-header img {
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 3px 10px rgba(15, 23, 42, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
    display: block;
    overflow: hidden;
}

.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
}

.profile-dropdown:hover {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.profile-dropdown img { width: 42px; height: 42px; }

.profile-info .name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.profile-info .role {
    font-size: 0.68rem;
    color: var(--navy-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ============================================
   MAIN
   ============================================ */
.main-content {
    margin-left: 265px;
    flex: 1;
    padding: 1.5rem 2rem 3rem;
    min-height: 100vh;
    max-width: 1600px;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ============================================
   TOP HEADER
   ============================================ */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 0.6rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.06);
}

.mobile-toggle svg {
    width: 22px;
    height: 22px;
    stroke: var(--navy);
    stroke-width: 2;
    fill: none;
}

.search-bar {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 0.65rem 1.05rem;
    width: 420px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow:
        0 3px 12px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow:
        0 0 0 4px rgba(14, 165, 233, 0.1),
        0 8px 24px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.search-bar svg {
    width: 18px;
    height: 18px;
    stroke: var(--navy-muted);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.2s ease;
}

.search-bar:focus-within svg { stroke: var(--primary); }

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: var(--navy);
    font-size: 0.875rem;
    font-family: var(--font-main);
    font-weight: 500;
}

.search-bar input::placeholder {
    color: var(--navy-muted);
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.date-badge {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 3px 12px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    white-space: nowrap;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.date-badge:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.date-badge svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
}

/* Top-right admin avatar pill */
.profile-dropdown-top {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(160%);
    padding: 0.3rem 0.95rem 0.3rem 0.3rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 3px 12px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* MORPH: pill becomes rounder and lifts */
.profile-dropdown-top:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.03);
    border-radius: 999px;
    box-shadow:
        0 12px 28px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.profile-dropdown-top img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
}

.profile-dropdown-top span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.005em;
}

/* ============================================
   WELCOME
   ============================================ */
.welcome-section {
    margin-bottom: 1.75rem;
    animation: fadeInUp 0.6s ease both;
}

.welcome-section h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.35rem;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.welcome-section h1 .wave {
    display: inline-block;
    margin-left: 2px;
    font-weight: 400;
}

.welcome-section p {
    color: var(--navy-light);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.005em;
}

/* ============================================
   KPI GRID
   ============================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
    margin-bottom: 2rem;
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem;
    cursor: pointer;
    animation: fadeInUp 0.6s ease both;
}

.kpi-card:nth-child(1) { animation-delay: 0.05s; }
.kpi-card:nth-child(2) { animation-delay: 0.1s; }
.kpi-card:nth-child(3) { animation-delay: 0.15s; }
.kpi-card:nth-child(4) { animation-delay: 0.2s; }

.kpi-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6);
}

/* MORPH: rounded square → circle + rotate */
.kpi-card:hover .kpi-icon {
    transform: scale(1.12) rotate(-8deg);
    border-radius: 50%;
}

.kpi-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
    fill: none;
}

.kpi-icon.blue {
    background: linear-gradient(135deg, #DBEAFE, #93C5FD);
    color: #1D4ED8;
    box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), 0 6px 16px rgba(29, 78, 216, 0.18);
}
.kpi-icon.purple {
    background: linear-gradient(135deg, #EDE9FE, #C4B5FD);
    color: #6D28D9;
    box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), 0 6px 16px rgba(109, 40, 217, 0.18);
}
.kpi-icon.pink {
    background: linear-gradient(135deg, #FCE7F3, #F9A8D4);
    color: #BE185D;
    box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), 0 6px 16px rgba(190, 24, 93, 0.18);
}
.kpi-icon.green {
    background: linear-gradient(135deg, #D1FAE5, #6EE7B7);
    color: #047857;
    box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.6), 0 6px 16px rgba(4, 120, 87, 0.18);
}

.kpi-info h3 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.kpi-info p {
    color: var(--navy-light);
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 3px;
    letter-spacing: -0.005em;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.section-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.section-header a {
    color: var(--primary);
    font-size: 0.78rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.9);
    letter-spacing: -0.005em;
}

.section-header a:hover {
    color: white;
    background: linear-gradient(135deg, #0EA5E9, #6366F1);
    gap: 0.5rem;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.section-header a svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
    transition: transform 0.3s ease;
}

.section-header a:hover svg {
    transform: translateX(2px);
}

/* ============================================
   STAFF
   ============================================ */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.staff-card {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
}

.staff-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.staff-header img {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}

/* MORPH: avatar scales and border glows */
.staff-card:hover .staff-header img {
    transform: scale(1.12) rotate(-4deg);
    border-color: var(--primary);
    box-shadow:
        0 6px 18px rgba(14, 165, 233, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.staff-header h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.staff-header p {
    font-size: 0.7rem;
    color: var(--navy-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.staff-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.7rem 0.5rem;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat-item {
    text-align: center;
    flex: 1;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: rgba(148, 163, 184, 0.3);
}

.stat-item .label {
    display: block;
    font-size: 0.6rem;
    color: var(--navy-muted);
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-item .value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.stat-item.done .value { color: var(--status-completed-text); }
.stat-item.pending .value { color: var(--status-pending-text); }

/* ============================================
   CLIENTS
   ============================================ */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.client-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    text-align: center;
    gap: 0.5rem;
    cursor: pointer;
}

.client-logo-card img {
    height: 26px;
    width: auto;
    max-width: 78px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.client-logo-card:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.2);
}

.client-logo-card h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.005em;
}

.client-logo-card p {
    font-size: 0.68rem;
    color: var(--navy-muted);
    font-weight: 500;
}

/* ============================================
   BOTTOM GRID
   ============================================ */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ============================================
   TASK LIST
   ============================================ */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem;
    border-radius: 12px;
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.task-item:last-child { border-bottom: none; }

.task-item:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateX(6px);
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    border-bottom-color: transparent;
}

.task-logo {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, #F8FAFC, #E2E8F0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--navy);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 2px 6px rgba(15, 23, 42, 0.05);
    letter-spacing: -0.02em;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* MORPH: square → circle + gradient on hover */
.task-item:hover .task-logo {
    border-radius: 50%;
    background: linear-gradient(135deg, #0EA5E9, #6366F1);
    color: white;
    transform: rotate(-10deg) scale(1.08);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

.task-info { flex: 1; min-width: 0; }

.task-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.task-info p {
    font-size: 0.72rem;
    color: var(--navy-muted);
    font-weight: 500;
}

.task-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.task-meta .date {
    color: var(--navy-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    letter-spacing: -0.005em;
}

.task-meta .date svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    display: inline-block;
    white-space: nowrap;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.status-upcoming { background: var(--status-upcoming-bg); color: var(--status-upcoming-text); }
.status-progress { background: var(--status-progress-bg); color: var(--status-progress-text); }
.status-pending { background: var(--status-pending-bg); color: var(--status-pending-text); }
.status-completed { background: var(--status-completed-bg); color: var(--status-completed-text); }

/* ============================================
   RECENT ACTIVITY
   ============================================ */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.activity-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 12px;
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateX(6px);
    box-shadow:
        0 6px 18px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 3px 8px rgba(15, 23, 42, 0.06);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.activity-item:hover .activity-icon {
    transform: scale(1.15) rotate(8deg);
}

.activity-icon svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.4;
    fill: none;
}

.activity-info { flex: 1; min-width: 0; }

.activity-info p {
    font-size: 0.83rem;
    color: var(--navy);
    margin-bottom: 3px;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.activity-info span {
    font-size: 0.68rem;
    color: var(--navy-muted);
    font-weight: 500;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1400px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .staff-grid { grid-template-columns: repeat(2, 1fr); }
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .bottom-grid { grid-template-columns: 1fr; }
    .main-content { padding: 1.5rem; }
    .search-bar { width: 300px; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 60px rgba(15, 23, 42, 0.15);
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 1rem; }
    .mobile-toggle { display: flex; }
    .top-header { flex-wrap: wrap; }
    .search-bar { width: 100%; order: 2; }
    .header-actions { width: 100%; justify-content: space-between; order: 1; }
    .kpi-grid, .staff-grid { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .welcome-section h1 { font-size: 1.35rem; }
    .card { padding: 1.1rem; }
    .task-item { flex-wrap: wrap; }
    .task-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5rem;
    }
    .profile-dropdown-top span { display: none; }
    .profile-dropdown-top { padding: 0.3rem; }
    .date-badge { font-size: 0.72rem; padding: 0.5rem 0.7rem; }
}

@media (max-width: 480px) {
    .clients-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}