/* TapTap Dark Professional Styles */
:root {
    /* Primary Brand Colors - Modern Blue */
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    
    /* Secondary Colors - Purple */
    --secondary-color: #8b5cf6;
    --secondary-light: #a78bfa;
    --secondary-dark: #7c3aed;
    
    /* Accent Colors - Teal */
    --accent-color: #14b8a6;
    --accent-light: #2dd4bf;
    --accent-dark: #0d9488;
    
    /* Status Colors */
    --success-color: #10b981;
    --success-light: #34d399;
    --success-dark: #059669;
    
    --warning-color: #f59e0b;
    --warning-light: #fbbf24;
    --warning-dark: #d97706;
    
    --danger-color: #ef4444;
    --danger-light: #f87171;
    --danger-dark: #dc2626;
    
    --info-color: #06b6d4;
    --info-light: #22d3ee;
    --info-dark: #0891b2;
    
    /* Dark Theme Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-elevated: #475569;
    
    /* Surface Colors */
    --surface-primary: #1e293b;
    --surface-secondary: #334155;
    --surface-elevated: #475569;
    --surface-hover: #64748b;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #e2e8f0;
    --text-tertiary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Border Colors */
    --border-primary: #334155;
    --border-secondary: #475569;
    --border-accent: #64748b;
      /* Legacy color mappings for compatibility - updated for light themes */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Typography */
    --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    transition: all 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(var(--theme-primary-rgb, 59, 130, 246), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(var(--theme-secondary-rgb, 139, 92, 246), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(var(--theme-accent-rgb, 20, 184, 166), 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-4);
    color: var(--text-tertiary);
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-5);
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: var(--space-12);
    padding: var(--space-12) 0;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, 
        var(--theme-primary, var(--primary-color)) 0%, 
        var(--theme-secondary, var(--secondary-color)) 50%, 
        var(--theme-accent, var(--accent-color)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroGlow 3s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(var(--theme-primary-rgb, 59, 130, 246), 0.4));
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(var(--theme-secondary-rgb, 139, 92, 246), 0.6));
    }
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0;
}

/* Main Content Cards */
.main-content {
    background: var(--surface-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        0 0 0 1px var(--border-secondary),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--theme-primary, var(--primary-color)) 0%, 
        var(--theme-secondary, var(--secondary-color)) 33%, 
        var(--theme-accent, var(--accent-color)) 66%, 
        var(--theme-primary, var(--primary-color)) 100%);
    background-size: 300% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -300% 0; }
    100% { background-position: 300% 0; }
}

/* Customer Call Page Specific Styles */
.call-interface .main-content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: var(--space-8) 0;
}

.call-interface .main-content::before {
    display: none;
}

/* Role Selection */
.role-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.role-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    transform-origin: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform var(--transition-base);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.role-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.05) 0%, 
        transparent 50%, 
        rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.role-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 1);
}

.role-card:hover::before {
    transform: scaleX(1);
}

.role-card:hover::after {
    opacity: 1;
}

.role-card h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: none;
    position: relative;
}

.role-card h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
    opacity: 0;
    transition: all var(--transition-base);
}

.role-card:hover h2::after {
    opacity: 1;
    width: 60px;
}

.role-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    font-size: 1rem;
    line-height: 1.6;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border: 2px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    min-height: 44px; /* Touch-friendly minimum */
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
}

.btn:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
    background-size: 200% 100%;
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 
        0 4px 14px 0 rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px 0 rgba(59, 130, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--primary-light);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 50%, var(--secondary-color) 100%);
    background-size: 200% 100%;
    color: white;
    border-color: var(--secondary-dark);
    box-shadow: 
        0 4px 14px 0 rgba(139, 92, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover:not(:disabled) {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px 0 rgba(139, 92, 246, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--secondary-light);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    background-size: 200% 100%;
    color: white;
    border-color: var(--accent-dark);
    box-shadow: 
        0 4px 14px 0 rgba(20, 184, 166, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-accent:hover:not(:disabled) {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px 0 rgba(20, 184, 166, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: var(--accent-light);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
    color: white;
    border-color: var(--success-dark);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--success-dark) 0%, var(--success-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-light) 100%);
    color: white;
    border-color: var(--danger-dark);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--danger-dark) 0%, var(--danger-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, var(--warning-light) 100%);
    color: white;
    border-color: var(--warning-dark);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--warning-dark) 0%, var(--warning-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1.125rem;
    min-height: 52px;
}

/* Form Styles */
.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-control {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    min-height: 44px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: var(--surface-secondary);
}

.form-control:hover:not(:focus) {
    border-color: var(--border-secondary);
}

.form-control.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* Select Styling */
select.form-control {
    -webkit-appearance: none;
    appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: var(--space-10);
}

/* Textarea Styling */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Card Styles */
.card {
    background: var(--surface-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-6);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--border-secondary);
}

.card-header {
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
}

.card-header h3 {
    color: var(--text-primary);
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.dashboard-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-secondary);
}

.dashboard-card h3 {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    font-size: 1.125rem;
    font-weight: 600;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--theme-primary, var(--primary-color));
    margin-bottom: var(--space-2);
    line-height: 1;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Status Indicators */
.status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-accepted {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.status-serving {
    background: #e0e7ff;
    color: #5b21b6;
    border: 1px solid #c7d2fe;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-on-duty {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-off-duty {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-4);
    background: var(--surface-primary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th,
.table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-primary);
}

.table th {
    background: var(--surface-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:hover {
    background: var(--surface-secondary);
}

.table tr:last-child td {
    border-bottom: none;
}

/* Alerts */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fed7aa;
    color: #c2410c;
}

.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: var(--space-8) auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    position: fixed;
    top: var(--space-5);
    right: var(--space-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: var(--space-4);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--danger-color);
}

.notification-warning {
    border-left: 4px solid var(--warning-color);
}

.notification-info {
    border-left: 4px solid var(--info-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer */
footer {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--space-12) 0 var(--space-8);
    margin-top: var(--space-16);
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-primary);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    border-radius: var(--radius-full);
}

footer p {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0.025em;
    opacity: 0.8;
}

/* Request Items */
.request-item {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    transition: all var(--transition-base);
}

.request-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.request-item.urgent {
    border-left: 4px solid var(--danger-color);
    background: #fefbfb;
}

.request-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    transition: all var(--transition-base);
}

.request-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.request-card.pending {
    border-left: 4px solid var(--warning-color);
}

.request-card.accepted {
    border-left: 4px solid var(--info-color);
}

.request-card.completed {
    border-left: 4px solid var(--success-color);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-3);
    gap: var(--space-4);
}

.request-info h4 {
    color: var(--gray-900);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.request-info p {
    color: var(--gray-600);
    margin-bottom: var(--space-1);
    font-size: 0.95rem;
}

.request-info small {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.request-actions {
    margin-top: var(--space-4);
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.request-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Status Badge */
.status-badge {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.status-pending {
    background: var(--warning-light);
    color: white;
}

.status-badge.status-accepted {
    background: var(--info-light);
    color: white;
}

.status-badge.status-completed {
    background: var(--success-light);
    color: white;
}

/* Hide Elements */
.hidden {
    display: none !important;
}

/* QR Code Styling */
.qr-container {
    text-align: center;
    margin: var(--space-8) 0;
}

.qr-code {
    margin: var(--space-4) auto;
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: inline-block;
    border: 2px solid var(--gray-200);
}

/* Theme Selector Styles */
.theme-option {
    cursor: pointer;
    text-align: center;
    padding: var(--space-3);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    background: var(--surface-primary);
    position: relative;
    overflow: hidden;
}

.theme-option:hover {
    border-color: var(--border-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-option.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    background: var(--surface-secondary);
}

.theme-option.active::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.theme-preview {
    width: 100%;
    height: 60px;
    border-radius: var(--radius);
    margin-bottom: var(--space-2);
    box-shadow: var(--shadow-sm);
}

.theme-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
}

/* Dynamic Theme Variables */
:root {
    /* Theme Colors - Will be dynamically updated */
    --theme-primary: var(--primary-color);
    --theme-primary-light: var(--primary-light);
    --theme-primary-dark: var(--primary-dark);
    --theme-secondary: var(--secondary-color);
    --theme-secondary-light: var(--secondary-light);
    --theme-secondary-dark: var(--secondary-dark);
    --theme-accent: var(--accent-color);
    --theme-accent-light: var(--accent-light);
    --theme-accent-dark: var(--accent-dark);
}

/* Theme-specific overrides for branded elements */
.themed-primary,
.btn-primary.themed-primary {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 50%, var(--theme-primary) 100%) !important;
    background-size: 200% 100% !important;
    border-color: var(--theme-primary-dark) !important;
    box-shadow: 0 4px 14px 0 rgba(var(--theme-primary-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.themed-primary:hover:not(:disabled),
.btn-primary.themed-primary:hover:not(:disabled) {
    background-position: 100% 0 !important;
    box-shadow: 0 8px 25px 0 rgba(var(--theme-primary-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-color: var(--theme-primary-light) !important;
}

.themed-secondary,
.btn-secondary.themed-secondary {
    background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-secondary-light) 50%, var(--theme-secondary) 100%) !important;
    background-size: 200% 100% !important;
    border-color: var(--theme-secondary-dark) !important;
    box-shadow: 0 4px 14px 0 rgba(var(--theme-secondary-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.themed-secondary:hover:not(:disabled),
.btn-secondary.themed-secondary:hover:not(:disabled) {
    background-position: 100% 0 !important;
    box-shadow: 0 8px 25px 0 rgba(var(--theme-secondary-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-color: var(--theme-secondary-light) !important;
}

.themed-accent,
.btn-accent.themed-accent {
    background: linear-gradient(135deg, var(--theme-accent) 0%, var(--theme-accent-light) 50%, var(--theme-accent) 100%) !important;
    background-size: 200% 100% !important;
    border-color: var(--theme-accent-dark) !important;
    box-shadow: 0 4px 14px 0 rgba(var(--theme-accent-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.themed-accent:hover:not(:disabled),
.btn-accent.themed-accent:hover:not(:disabled) {
    background-position: 100% 0 !important;
    box-shadow: 0 8px 25px 0 rgba(var(--theme-accent-rgb), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-color: var(--theme-accent-light) !important;
}

/* Themed status indicators */
.themed-status-accent {
    background: rgba(var(--theme-accent-rgb), 0.1) !important;
    color: var(--theme-accent) !important;
    border: 1px solid rgba(var(--theme-accent-rgb), 0.2) !important;
}

.themed-status-primary {
    background: rgba(var(--theme-primary-rgb), 0.1) !important;
    color: var(--theme-primary) !important;
    border: 1px solid rgba(var(--theme-primary-rgb), 0.2) !important;
}

/* Themed gradient borders */
.themed-border-gradient::before,
.dashboard-card.themed-border-gradient::before {
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-accent)) !important;
}

/* Themed shimmer animation */
.themed-shimmer::before,
.main-content.themed-shimmer::before {
    background: linear-gradient(90deg, 
        var(--theme-primary) 0%, 
        var(--theme-secondary) 33%, 
        var(--theme-accent) 66%, 
        var(--theme-primary) 100%) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .hero {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.25rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .role-selection {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .role-card {
        padding: 1.5rem;
    }    .role-card h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        color: var(--text-primary);
    }    .role-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        color: var(--text-secondary);
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .notification {
        left: 10px;
        right: 10px;
        top: 10px;
        max-width: none;
    }
    
    /* Header responsive */
    header div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    header h1 {
        font-size: 1.5rem !important;
    }
    
    header p {
        font-size: 0.875rem !important;
    }
    
    header div:last-child {
        width: 100% !important;
        justify-content: stretch !important;
    }
    
    header div:last-child .btn {
        flex: 1 !important;
        text-align: center !important;
    }
    
    /* Button adjustments */
    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        border-radius: 6px;
    }
    
    /* Table responsive */
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
    
    /* Request items mobile */
    .request-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .request-actions {
        justify-content: stretch;
    }
    
    .request-actions .btn {
        flex: 1;
        text-align: center;
        min-width: 0;
    }
    
    /* Card adjustments */
    .card {
        padding: 1rem;
    }
    
    .card-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .card-header h3 {
        font-size: 1.125rem;
    }
    
    /* Tab buttons responsive */
    .tab-button {
        font-size: 0.875rem;
        padding: 10px 16px;
    }
    
    /* Filter buttons responsive */
    .filter-btn {
        font-size: 0.875rem;
        padding: 8px 12px;
    }
    
    /* Form responsive */
    .form-control {
        padding: 14px 12px;
        font-size: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .role-card {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .dashboard-card {
        padding: 0.75rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    /* Header mobile adjustments */
    header {
        padding: 0.75rem !important;
    }
    
    header h1 {
        font-size: 1.25rem !important;
    }
    
    /* Tab and filter buttons stack */
    .card-header > div:first-child {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .tab-button,
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Request actions stack */
    .request-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .request-actions .btn {
        width: 100%;
    }
    
    /* Table scroll on very small screens */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 500px;
    }
}

/* Hide elements */
.hidden {
    display: none !important;
}

/* QR Code styling */
.qr-container {
    text-align: center;
    margin: 2rem 0;
}

.qr-code {
    margin: 1rem auto;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: inline-block;
}

/* Request item styling */
.request-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.request-item:hover {
    box-shadow: var(--shadow);
}

.request-item.urgent {
    border-left: 4px solid var(--danger-color);
    background: #fef2f2;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.request-table {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
}

.request-time {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.request-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.request-actions .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Customer call interface mobile styles */
.call-interface {
    padding: 1rem;
}

.call-button {
    transition: all 0.3s ease;
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .call-button {
        width: 150px;
        height: 150px;
        font-size: 3rem;
        margin: 1.5rem auto;
    }
    
    .restaurant-info {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .table-info {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
        font-size: 1.125rem;
    }
    
    .call-status {
        margin-top: 1.5rem;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .call-interface {
        padding: 0.5rem;
    }
    
    .call-button {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
        margin: 1rem auto;
    }
    
    .restaurant-info {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .restaurant-info h2 {
        font-size: 1.25rem;
    }
    
    .table-info {
        padding: 0.5rem;
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .call-status {
        margin-top: 1rem;
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Table wrapper for horizontal scroll */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem -1rem;
    padding: 0 1rem;
}

/* Mobile touch improvements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .btn, button, a.btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    /* Status badges mobile */
    .status {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    /* Improve form controls touch */
    .form-control, input, select, textarea {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Better spacing for mobile cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .dashboard-card {
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Mobile navigation improvements */
    .tab-button.active {
        background: var(--primary-color) !important;
        color: white !important;
    }
    
    .filter-btn.active {
        background: var(--primary-color) !important;
        color: white !important;
    }
    
    /* QR code mobile adjustments */
    .qr-container {
        padding: 1rem 0;
    }
    
    .qr-code {
        max-width: 100%;
        height: auto;
    }
    
    /* Mobile notification styles */
    .notification {
        font-size: 0.9rem;
        padding: 0.875rem;
    }
    
    /* Request item mobile improvements */
    .request-item {
        border-radius: 6px;
        margin-bottom: 0.75rem;
    }
    
    .request-table {
        font-size: 1.125rem;
    }
    
    .request-time {
        font-size: 0.8rem;
    }
    
    /* Empty state mobile */
    #emptyState {
        padding: 2rem 1rem !important;
    }
    
    #emptyState h3 {
        font-size: 1.25rem;
    }
    
    #emptyState p {
        font-size: 0.9rem;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .call-button {
        width: 120px !important;
        height: 120px !important;
        font-size: 2.5rem !important;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .btn, button {
        -webkit-appearance: none;
        appearance: none;
        border-radius: var(--border-radius);
    }
    
    .form-control, input, select, textarea {
        -webkit-appearance: none;
        appearance: none;
        border-radius: var(--border-radius);
    }
}

/* Android specific improvements */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
    .btn:active, button:active {
        background-color: var(--gray-100);
        transform: scale(0.98);
    }
    
    .call-button:active {
        transform: scale(0.95) !important;
    }
}
