/* ===========================================
   Carers' Resource Case Management System
   Brand Colours:
   - Main Blue: #1c428b
   - White: #ffffff
   - Yellow (secondary): #fcd006
   - Other Blue: #274c92
   - Red: #c11604
   =========================================== */

:root {
    /* Brand Colors */
    --cr-blue: #1c428b;
    --cr-blue-light: #274c92;
    --cr-yellow: #fcd006;
    --cr-red: #c11604;
    --cr-white: #ffffff;

    /* Derived Colors */
    --cr-blue-dark: #152f66;
    --cr-blue-hover: #1e4a9a;
    --surface: rgba(28, 66, 139, 0.05);
    --surface-dark: rgba(28, 66, 139, 0.95);
    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Outfit', system-ui, -apple-system, sans-serif;
    background-color: var(--cr-white);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-primary);
}

/* Deep background - now white with subtle styling */
.bg-deep {
    background: var(--cr-white);
}

.bg-white {
    background: var(--cr-white);
}

/* Background Elements */
.geometric-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(28, 66, 139, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 66, 139, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}

.shape {
    position: absolute;
    border: 1px solid rgba(28, 66, 139, 0.12);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: 20%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: -50px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: -10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 10%;
    border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
    75% {
        transform: translate(15px, 15px) rotate(3deg);
    }
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(28, 66, 139, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Card Animations */
.login-card {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-animation {
    animation: fadeScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Microsoft Login Button */
.ms-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--cr-blue) !important;
}

.ms-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.ms-button:hover::before {
    transform: translateX(100%);
}

.ms-button:hover {
    transform: translateY(-2px);
    background-color: var(--cr-blue-hover) !important;
    box-shadow: 0 20px 40px -10px rgba(28, 66, 139, 0.5);
}

.ms-button:active {
    transform: translateY(0);
}

/* Divider */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(28, 66, 139, 0.2), transparent);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--cr-blue) 0%, var(--cr-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Surface Colors */
.bg-surface\/50 {
    background-color: rgba(28, 66, 139, 0.03);
    border: 1px solid rgba(28, 66, 139, 0.1);
}

/* Accent Colors (Yellow) */
.bg-accent\/10 {
    background-color: rgba(28, 66, 139, 0.08);
}

.border-accent\/20 {
    border-color: rgba(28, 66, 139, 0.15);
}

.text-accent-bright {
    color: var(--cr-blue);
}

/* ===========================================
   Base Layout - For authenticated pages
   =========================================== */

/* Header/Navbar */
.navbar {
    background: var(--cr-white);
    border-bottom: 1px solid rgba(28, 66, 139, 0.1);
    box-shadow: 0 1px 3px rgba(28, 66, 139, 0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--cr-blue);
    text-decoration: none;
    font-size: 1.25rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* Sidebar */
.sidebar {
    background: var(--cr-blue);
    color: var(--cr-white);
    min-height: calc(100vh - 64px);
    width: 260px;
    padding: 1.5rem 0;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cr-white);
}

.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--cr-white);
    border-left-color: var(--cr-yellow);
}

.sidebar-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-heading {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 1.5rem 0.5rem;
    margin: 0;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 2rem;
    background: #f8fafc;
    min-height: calc(100vh - 64px);
}

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cr-blue);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Cards */
.card {
    background: var(--cr-white);
    border-radius: 12px;
    border: 1px solid rgba(28, 66, 139, 0.08);
    box-shadow: 0 1px 3px rgba(28, 66, 139, 0.04);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(28, 66, 139, 0.08);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cr-blue);
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--cr-blue);
    color: var(--cr-white);
}

.btn-primary:hover {
    background: var(--cr-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(28, 66, 139, 0.25);
}

.btn-secondary {
    background: var(--cr-yellow);
    color: var(--cr-blue);
}

.btn-secondary:hover {
    background: #e5bc00;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--cr-blue);
    color: var(--cr-blue);
}

.btn-outline:hover {
    background: var(--cr-blue);
    color: var(--cr-white);
}

.btn-danger {
    background: var(--cr-red);
    color: var(--cr-white);
}

.btn-danger:hover {
    background: #a31303;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--cr-white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(28, 66, 139, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: rgba(28, 66, 139, 0.1);
    color: var(--cr-blue);
}

.stat-icon.yellow {
    background: rgba(252, 208, 6, 0.15);
    color: #b89600;
}

.stat-icon.red {
    background: rgba(193, 22, 4, 0.1);
    color: var(--cr-red);
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 60vh;
}

.table-wrapper table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(28, 66, 139, 0.08);
}

th {
    font-weight: 600;
    color: var(--cr-blue);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8fafc;
    box-shadow: 0 1px 0 rgba(28, 66, 139, 0.1);
}

tr:hover {
    background: rgba(28, 66, 139, 0.02);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-blue {
    background: rgba(28, 66, 139, 0.1);
    color: var(--cr-blue);
}

.badge-yellow {
    background: rgba(252, 208, 6, 0.2);
    color: #8b6f00;
}

.badge-red {
    background: rgba(193, 22, 4, 0.15);
    color: var(--cr-red);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.badge-green {
    background: rgba(22, 163, 74, 0.15);
    color: #15803d;
}

/* Default keyword fallback - Yellow/Neutral (must come FIRST for specificity) */
.badge[class*="badge-keyword-"] {
    background: rgba(252, 208, 6, 0.2);
    color: #8b6f00;
}

/* Keyword-specific badge colors by importance */
/* High priority - Red tones */
.badge.badge-keyword-mental-health,
.badge.badge-keyword-crisis,
.badge.badge-keyword-urgent,
.badge.badge-keyword-safeguarding,
.badge.badge-keyword-health {
    background: rgba(193, 22, 4, 0.12) !important;
    color: #b91c1c !important;
}

/* Medium-high priority - Orange/Amber tones */
.badge.badge-keyword-housing,
.badge.badge-keyword-benefits,
.badge.badge-keyword-debt,
.badge.badge-keyword-financial,
.badge.badge-keyword-employment,
.badge.badge-keyword-assessment {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #b45309 !important;
}

/* Medium priority - Blue tones */
.badge.badge-keyword-respite,
.badge.badge-keyword-support,
.badge.badge-keyword-information,
.badge.badge-keyword-advice,
.badge.badge-keyword-information-advice,
.badge.badge-keyword-wellbeing-review,
.badge.badge-keyword-parent-carer,
.badge.badge-keyword-young-carer,
.badge.badge-keyword-dementia,
.badge.badge-keyword-conditions-disabilites,
.badge.badge-keyword-isolation {
    background: rgba(28, 66, 139, 0.12) !important;
    color: var(--cr-blue) !important;
}

/* Lower priority - Green tones */
.badge.badge-keyword-grants,
.badge.badge-keyword-training,
.badge.badge-keyword-social,
.badge.badge-keyword-activities,
.badge.badge-keyword-wellbeing {
    background: rgba(22, 163, 74, 0.15) !important;
    color: #15803d !important;
}

/* User Avatar */
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cr-blue);
    color: var(--cr-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--cr-white);
    border: 1px solid rgba(28, 66, 139, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(28, 66, 139, 0.12);
    min-width: 200px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(28, 66, 139, 0.05);
}

.dropdown-item.danger {
    color: var(--cr-red);
}

.dropdown-divider {
    height: 1px;
    background: rgba(28, 66, 139, 0.08);
    margin: 0.5rem 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid rgba(28, 66, 139, 0.2);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: var(--cr-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--cr-blue);
    box-shadow: 0 0 0 3px rgba(28, 66, 139, 0.1);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-info {
    background: rgba(28, 66, 139, 0.08);
    border: 1px solid rgba(28, 66, 139, 0.15);
    color: var(--cr-blue);
}

.alert-warning {
    background: rgba(252, 208, 6, 0.15);
    border: 1px solid rgba(252, 208, 6, 0.3);
    color: #8b6f00;
}

.alert-error {
    background: rgba(193, 22, 4, 0.08);
    border: 1px solid rgba(193, 22, 4, 0.15);
    color: var(--cr-red);
}

.alert-success {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.15);
    color: #15803d;
}

/* Footer */
.footer {
    padding: 1rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid rgba(28, 66, 139, 0.08);
}

/* Logged Out Page */
.logged-out-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.logged-out-card {
    background: var(--cr-white);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(28, 66, 139, 0.1);
    max-width: 420px;
    width: 100%;
}

.logged-out-card h1 {
    color: var(--cr-blue);
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.logged-out-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Tag Container */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Empty State */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--text-light);
}

.empty-state p {
    margin: 0;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--cr-white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(28, 66, 139, 0.2);
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(28, 66, 139, 0.08);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--cr-red);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(80vh - 70px);
}

/* Modal Sections */
.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cr-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(28, 66, 139, 0.1);
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.modal-info-value {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.modal-referral-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    padding: 0.75rem;
    background: rgba(28, 66, 139, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--cr-blue);
}

/* Text utilities for modal */
.font-medium {
    font-weight: 500;
}

.text-slate-500 {
    color: var(--text-secondary);
}

.text-xs {
    font-size: 0.75rem;
}

@media (max-width: 480px) {
    .modal-info-grid {
        grid-template-columns: 1fr;
    }
}

/* SVG Icon Sizes */
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }

/* Welcome Page Cards */
.welcome-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.welcome-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.welcome-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Feature Cards */
.feature-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(252, 208, 6, 0.2);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(252, 208, 6, 0.1);
    color: var(--cr-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Grid utilities for welcome page */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}

/* Utility Classes */
.text-blue { color: var(--cr-blue); }
.text-yellow { color: var(--cr-yellow); }
.text-amber { color: #b45309; }
.text-red { color: var(--cr-red); }
.bg-blue { background-color: var(--cr-blue); }
.bg-yellow { background-color: var(--cr-yellow); }
.bg-red { background-color: var(--cr-red); }

/* Utility Classes (Tailwind-like) */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease; }
.text-left { text-align: left; }
.hidden { display: none; }
.text-sm { font-size: 0.875rem; }
.text-gray-900 { color: #111827; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.flex-shrink-0 { flex-shrink: 0; }
.mb-4 { margin-bottom: 1rem; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

.hover\:bg-gray-50:hover { background-color: #f9fafb; }

@media (min-width: 640px) {
    .sm\:block { display: block; }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}
