/* CHIIRP Design System - Professional AI Agent Platform Theme */

/* Import Components */
@import url('components.css');

:root {
    /* HSL Component Values (for use with hsl() function and alpha) */
    --primary-component: 34 100% 51%;
    --primary-teal-component: 178 42% 38%;
    --primary-teal-hover: 178 47% 33%;
    --primary-teal-ring: 178 42% 38%;
    --secondary-component: 210 7% 97%;
    --muted-component: 210 7% 97%;
    --accent-component: 178 42% 38%;
    --success-component: 178 42% 38%;
    --warning-component: 43 96% 56%;
    --destructive-component: 0 84% 60%;
    --border-component: 210 7% 90%;
    --background-component: 0 0% 100%;
    --foreground-component: 210 11% 15%;

    /* Core Colors */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(210, 11%, 15%);

    /* Card System */
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(210, 11%, 15%);

    /* Popover */
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(210, 11%, 15%);

    /* Primary - CHIIRP Orange */
    --primary: hsl(34, 100%, 51%);
    /* #ff9103 */
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-hover: hsl(34, 95%, 46%);

    /* Secondary - Subtle Gray */
    --secondary: hsl(210, 7%, 97%);
    --secondary-foreground: hsl(210, 11%, 15%);

    /* Muted Elements */
    --muted: hsl(210, 7%, 97%);
    --muted-foreground: hsl(210, 6%, 46%);

    /* Accent - CHIIRP Teal (Default) */
    --accent: hsl(178, 42%, 38%);
    /* #378c89 - CHIIRP Teal as primary accent */
    --accent-foreground: hsl(0, 0%, 100%);
    --accent-hover: hsl(178, 47%, 33%);

    /* Status Colors */
    --success: hsl(178, 42%, 38%);
    /* CHIIRP Teal for success */
    --success-foreground: hsl(0, 0%, 100%);
    --warning: hsl(43, 96%, 56%);
    --warning-foreground: hsl(0, 0%, 100%);
    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(0, 0%, 100%);

    /* Borders & Inputs */
    --border: hsl(210, 7%, 90%);
    --input: hsl(210, 7%, 90%);
    --ring: hsl(34, 100%, 51%);
    /* CHIIRP Orange for focus rings */

    /* Agent Category Colors - Expanded palette with complementary colors */
    --agent-speed: hsl(34, 100%, 51%);
    /* CHIIRP Orange */
    --agent-nurture: hsl(178, 42%, 38%);
    /* CHIIRP Teal */
    --agent-review: hsl(250, 84%, 54%);
    /* Deep Purple */
    --agent-support: hsl(210, 100%, 56%);
    /* Rich Blue */
    --agent-concierge: hsl(335, 78%, 42%);
    /* Deep Rose */
    --agent-broadcast: hsl(178 42% 38%);
    /* Forest Green */
    --agent-voice: hsl(280, 65%, 50%);
    /* Purple for voice agents */

    /* Label Colors - Variety for better visual distinction */
    --label-blue: hsl(214, 95%, 93%);
    --label-blue-text: hsl(214, 95%, 45%);
    --label-green: hsl(143, 85%, 96%);
    --label-green-text: hsl(143, 85%, 41%);
    --label-yellow: hsl(48, 100%, 96%);
    --label-yellow-text: hsl(48, 100%, 47%);
    --label-purple: hsl(262, 87%, 96%);
    --label-purple-text: hsl(262, 87%, 47%);
    --label-pink: hsl(330, 81%, 96%);
    --label-pink-text: hsl(330, 81%, 47%);
    --label-red: hsl(0, 93%, 94%);
    --label-red-text: hsl(0, 93%, 50%);
    --label-orange: hsl(25, 95%, 95%);
    --label-orange-text: hsl(25, 95%, 53%);
    --label-teal: hsl(173, 80%, 96%);
    --label-teal-text: hsl(173, 80%, 36%);

    /* Channel Colors - Variety for different communication types */
    --channel-sms: hsl(214, 95%, 45%);
    --channel-email: hsl(143, 85%, 41%);
    --channel-voice: hsl(25, 95%, 53%);
    --channel-chat: hsl(262, 87%, 47%);
    --channel-video: hsl(330, 81%, 47%);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(34, 100%, 51%), hsl(178, 42%, 38%));
    --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%), hsl(34, 20%, 98%));
    --gradient-hero: linear-gradient(135deg, hsl(34, 100%, 51%) 0%, hsl(178, 42%, 38%) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 hsl(210, 7%, 46%, 0.05);
    --shadow-md: 0 4px 6px -1px hsl(210, 7%, 46%, 0.1), 0 2px 4px -1px hsl(210, 7%, 46%, 0.06);
    --shadow-lg: 0 10px 15px -3px hsl(210, 7%, 46%, 0.1), 0 4px 6px -2px hsl(210, 7%, 46%, 0.05);
    --shadow-card: 0 1px 3px 0 hsl(210, 7%, 46%, 0.1), 0 1px 2px 0 hsl(210, 7%, 46%, 0.06);

    /* Animations */
    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --radius: 0.75rem;

    --sidebar-background: hsl(0, 0%, 98%);
    --sidebar-foreground: hsl(240, 5.3%, 26.1%);
    --sidebar-primary: hsl(240, 5.9%, 10%);
    --sidebar-primary-foreground: hsl(0, 0%, 98%);
    --sidebar-accent: hsl(240, 4.8%, 95.9%);
    --sidebar-accent-foreground: hsl(240, 5.9%, 10%);
    --sidebar-border: hsl(220, 13%, 91%);
    --sidebar-ring: hsl(217.2, 91.2%, 59.8%);
}

/* Dark Mode */
.dark {
    /* Core Colors */
    --background: hsl(210, 11%, 7%);
    --foreground: hsl(0, 0%, 98%);

    /* Card System */
    --card: hsl(210, 11%, 9%);
    --card-foreground: hsl(0, 0%, 98%);

    /* Popover */
    --popover: hsl(210, 11%, 9%);
    --popover-foreground: hsl(0, 0%, 98%);

    /* Primary */
    --primary: hsl(217, 91%, 65%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-hover: hsl(217, 91%, 60%);

    /* Secondary */
    --secondary: hsl(210, 11%, 15%);
    --secondary-foreground: hsl(0, 0%, 98%);

    /* Muted Elements */
    --muted: hsl(210, 11%, 15%);
    --muted-foreground: hsl(210, 6%, 60%);

    /* Accent */
    --accent: hsl(178, 50%, 55%);
    --accent-foreground: hsl(0, 0%, 100%);
    --accent-hover: hsl(178, 47%, 50%);

    /* Status Colors */
    --success: hsl(142, 71%, 55%);
    --success-foreground: hsl(0, 0%, 100%);
    --warning: hsl(43, 96%, 65%);
    --warning-foreground: hsl(0, 0%, 100%);
    --destructive: hsl(0, 84%, 65%);
    --destructive-foreground: hsl(0, 0%, 100%);

    /* Borders & Inputs */
    --border: hsl(210, 11%, 20%);
    --input: hsl(210, 11%, 20%);
    --ring: hsl(217, 91%, 65%);

    /* Agent Category Colors */
    --agent-speed: hsl(34, 95%, 65%);
    --agent-nurture: hsl(178, 50%, 55%);
    --agent-review: hsl(250, 75%, 65%);
    --agent-support: hsl(210, 85%, 70%);
    --agent-concierge: hsl(335, 65%, 60%);
    --agent-broadcast: hsl(142, 60%, 60%);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(217, 91%, 65%), hsl(262, 83%, 65%));
    --gradient-card: linear-gradient(145deg, hsl(210, 11%, 9%), hsl(210, 11%, 11%));
    --gradient-hero: linear-gradient(135deg, hsl(217, 91%, 65%) 0%, hsl(262, 83%, 65%) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 hsl(0, 0%, 0%, 0.3);
    --shadow-md: 0 4px 6px -1px hsl(0, 0%, 0%, 0.4), 0 2px 4px -1px hsl(0, 0%, 0%, 0.3);
    --shadow-lg: 0 10px 15px -3px hsl(0, 0%, 0%, 0.4), 0 4px 6px -2px hsl(0, 0%, 0%, 0.3);
    --shadow-card: 0 1px 3px 0 hsl(0, 0%, 0%, 0.4), 0 1px 2px 0 hsl(0, 0%, 0%, 0.3);

    /* Sidebar Dark Theme */
    --sidebar-background: hsl(210, 11%, 5%);
    --sidebar-foreground: hsl(0, 0%, 95%);
    --sidebar-primary: hsl(217, 91%, 65%);
    --sidebar-primary-foreground: hsl(0, 0%, 100%);
    --sidebar-accent: hsl(210, 11%, 12%);
    --sidebar-accent-foreground: hsl(0, 0%, 95%);
    --sidebar-border: hsl(210, 11%, 18%);
    --sidebar-ring: hsl(217, 91%, 65%);

    /* Label Colors - Dark theme variants */
    --label-blue: hsl(214, 50%, 25%);
    --label-blue-text: hsl(214, 95%, 70%);
    --label-green: hsl(143, 50%, 25%);
    --label-green-text: hsl(143, 85%, 65%);
    --label-yellow: hsl(48, 50%, 25%);
    --label-yellow-text: hsl(48, 100%, 70%);
    --label-purple: hsl(262, 50%, 25%);
    --label-purple-text: hsl(262, 87%, 70%);
    --label-pink: hsl(330, 50%, 25%);
    --label-pink-text: hsl(330, 81%, 70%);
    --label-red: hsl(0, 50%, 25%);
    --label-red-text: hsl(0, 93%, 70%);
    --label-orange: hsl(25, 50%, 25%);
    --label-orange-text: hsl(25, 95%, 70%);
    --label-teal: hsl(173, 50%, 25%);
    --label-teal-text: hsl(173, 80%, 60%);

    /* Channel Colors - Dark theme variants */
    --channel-sms: hsl(214, 95%, 70%);
    --channel-email: hsl(143, 85%, 65%);
    --channel-voice: hsl(25, 95%, 70%);
    --channel-chat: hsl(262, 87%, 70%);
    --channel-video: hsl(330, 81%, 70%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
}
html {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.security-notice {
    background: hsl(var(--primary-teal-component) / .05);
    border: 1px solid rgba(72, 185, 175, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.security-notice i {
    color: var(--chiirp-teal);
    font-size: 1rem;
    margin-top: 0.125rem;
}

.security-notice-content {
    flex: 1;
    font-size: 0.8rem;
    color: #6B7280;
}

.security-notice-content strong {
    color: #1A1A1A;
    font-weight: 600;
}

.auth-button {
    width: 100%;
    height: 3rem;
    padding: 0.75rem 1rem;
    background: hsl(var(--primary-teal-component));
    color: #FFFFFF;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(72, 185, 175, 0.2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-button:hover {
    background: hsl(var(--primary-teal-hover));
    box-shadow: 0 4px 8px rgba(72, 185, 175, 0.3);
    transform: translateY(-1px);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Density Settings */
.density-compact {
    --spacing-unit: 0.75rem;
}

.density-comfortable {
    --spacing-unit: 1rem;
}

.density-spacious {
    --spacing-unit: 1.5rem;
}

.density-compact .space-y-4>*+* {
    margin-top: 0.5rem;
}

.density-spacious .space-y-4>*+* {
    margin-top: 1.5rem;
}

.density-compact .space-y-6>*+* {
    margin-top: 1rem;
}

.density-spacious .space-y-6>*+* {
    margin-top: 2rem;
}

/* Animation Settings */
.reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Match React Design */
.sidebar {
    width: 16rem;
    background: hsl(200 21% 97% / 1);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow: visible;
    z-index: 20;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.75rem;
}

.sidebar-logo img {
    height: 2rem;
    width: auto;
}

.sidebar-logo h1 {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--foreground);
    letter-spacing: -0.01em;
    padding-left: 4px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}

.nav-section {
    margin-bottom: 1rem;
    padding: 8px;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
    padding: 0 0.75rem;
    letter-spacing: 0.05em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: var(--sidebar-foreground);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.125rem 0;
    position: relative;
}

.nav-item:hover {
    background: rgba(72, 185, 175, 0.08);
    color: #48B9AF;
    filter: brightness(0) saturate(100%) invert(63%) sepia(36%) saturate(536%) hue-rotate(125deg) brightness(90%) contrast(90%) drop-shadow(0 0 25px hsl(178 42% 38%));
    transform: scale(1.03);
    
}

.nav-item.active {
    background: rgba(72, 185, 175, 0.15);
    color: hsl(178 42% 38%);
    border: 1px solid rgba(72, 185, 175, 0.3);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.nav-item i {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: 0rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2348B9AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-footer .nav-item {
    border: 1px solid var(--border);
    background: hsl(var(--background));
}

.sidebar-footer .nav-item:hover {
    background: hsl(var(--muted));
    color: var(--foreground);
    border-color: var(--border);
}

.sidebar-footer .logout-item {
    color: var(--muted-foreground);
    background: transparent;
    border: none;
}

.sidebar-footer .logout-item:hover {
    color: hsl(var(--destructive));
    background: hsla(var(--destructive), 0.05);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--background);
    margin-left: 16rem;
}

/* Header */
.header {
    height: 60px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: hsl(var(--background));
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Search Bar */
.search-bar {
    position: relative;
    width: 280px;
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: hsl(var(--background));
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.search-bar input::placeholder {
    color: var(--muted-foreground);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--border);
    box-shadow: 0 0 0 1px var(--border);
}

.search-bar i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background: hsl(var(--primary-teal-component)); 
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background: hsl(var(--primary-teal-hover)); ;
    
}

.btn-secondary {
    background: var(--secondary);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: hsl(210, 7%, 95%);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--foreground);
    font-size: 1rem;
}

.btn-icon:hover {
    background: hsl(var(--muted));
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    /* max-height: calc(100vh - 60px); */
    background: linear-gradient(145deg, hsl(var(--background)), hsl(210, 7%, 99%));
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--foreground);
}

.page-description {
    color: var(--muted-foreground);
    font-size: 1rem;
}

/* Cards */
.card {
    background: hsl(var(--card));
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 hsl(210 7% 46% / 0.1), 0 1px 2px 0 hsl(210 7% 46% / 0.06);
}

.card-header {
    margin-bottom: 0;
    padding-bottom: 1rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
    color: var(--foreground);
}

.card-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 400;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.25rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grid - Tablet and up (768px) */
@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\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 769px) {
    .header {
        display: none;
    }
}

/* Responsive Grid - Desktop and up (1280px) */
@media (min-width: 1280px) {
    .xl\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .xl\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-input,
select.form-input,
textarea.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--background);
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.form-input:focus,
select.form-input:focus,
textarea.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px hsla(34, 100%, 51%, 0.1);
}

/* Stats Card */
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

.stat-change {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--destructive);
}

/* Agent Badge */
.agent-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.agent-badge.speed {
    background: hsla(34, 100%, 51%, 0.1);
    color: var(--agent-speed);
}

.agent-badge.nurture {
    background: hsla(178, 42%, 38%, 0.1);
    color: var(--agent-nurture);
}

.agent-badge.review {
    background: hsla(250, 84%, 54%, 0.1);
    color: var(--agent-review);
}

.agent-badge.support {
    background: hsla(210, 100%, 56%, 0.1);
    color: var(--agent-support);
}

.agent-badge.concierge {
    background: hsla(335, 78%, 42%, 0.1);
    color: var(--agent-concierge);
}

.agent-badge.broadcast {
    background: hsla(142, 71%, 45%, 0.1);
    color: var(--agent-broadcast);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background: hsla(178, 42%, 38%, 0.1);
    color: var(--success);
}

.status-badge.paused {
    background: hsla(43, 96%, 56%, 0.1);
    color: hsl(43, 96%, 40%);
}

.status-badge.inactive {
    background: hsla(210, 6%, 46%, 0.1);
    color: var(--muted-foreground);
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted-foreground);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.05em;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.table tbody tr {
    transition: var(--transition-smooth);
}

.table tbody tr:hover {
    background: var(--secondary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    width: auto;
}

.modal-content {
    background: var(--card);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

/* Utility Classes */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-xs {
    gap: 0.25rem;
}

.gap-sm {
    gap: 0.5rem;
}

.gap-md {
    gap: 1rem;
}

.gap-lg {
    gap: 1.5rem;
}

.mt-xs {
    margin-top: 0.25rem;
}

.mt-sm {
    margin-top: 0.5rem;
}

.mt-md {
    margin-top: 1rem;
}

.mt-lg {
    margin-top: 1.5rem;
}

.mt-xl {
    margin-top: 2rem;
}

.mb-xs {
    margin-bottom: 0.25rem;
}

.mb-sm {
    margin-bottom: 0.5rem;
}

.mb-md {
    margin-bottom: 1rem;
}

.mb-lg {
    margin-bottom: 1.5rem;
}

.mb-xl {
    margin-bottom: 2rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

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

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-destructive {
    color: var(--destructive);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: background 0.2s;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: hsl(210, 7%, 95%);
}

.mobile-menu-toggle:active {
    background: hsl(210, 7%, 90%);
}

.mobile-menu-toggle i {
    font-size: 1.25rem;
    color: hsl(210, 11%, 15%);
    pointer-events: none;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        background: hsl(210, 7%, 95%) !important;
        border: 2px solid hsl(178, 42%, 38%) !important;
        border-radius: 0.5rem !important;
        cursor: pointer !important;
    }

    .mobile-menu-toggle i {
        font-size: 1.25rem !important;
        color: hsl(210, 11%, 15%) !important;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 16rem !important;
        height: 100vh !important;
        z-index: 1000 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15) !important;
        background: hsl(0, 0%, 100%) !important;
        overflow-y: auto !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
        box-shadow: 2px 0 16px rgba(0, 0, 0, 0.3) !important;
        pointer-events: auto !important;
        opacity: 1 !important;
    }
    .sidebar-logo {
        padding: 0px 3.75rem !important;
    }
    body.sidebar-open {
        overflow: hidden;
    }

    .mobile-overlay {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(1, 1fr);
    }

    .search-bar {
        width: 150px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-content {
        padding: 1rem;
    }

    .header {
        padding: 0 1rem;
    }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 576px) {
    .search-bar {
        display: none;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .header-right {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .card {
        padding: 1rem;
    }
}
