/* 
Animation Institute CMS - Complete Stylesheet
Version 3.0 - Fully Mobile Responsive - Orange & Black Theme
*/

/* ===== ROOT VARIABLES & RESET ===== */
:root {
    /* Orange & Black Color Palette */
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --secondary-color: #000000;
    --secondary-light: #1f2937;
    --secondary-dark: #000000;
    --accent-color: #f59e0b;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --success-color: #16a34a;
    --info-color: #0ea5e9;
    
    /* Neutral Colors */
    --dark-bg: #000000;
    --sidebar-bg: #111827;
    --card-bg: #ffffff;
    --body-bg: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-light: #6b7280;
    --text-white: #ffffff;
    
    /* Orange Shades */
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-400: #fb923c;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --orange-800: #9a3412;
    --orange-900: #7c2d12;
    
    /* Black Shades */
    --black-50: #f9fafb;
    --black-100: #f3f4f6;
    --black-200: #e5e7eb;
    --black-300: #d1d5db;
    --black-400: #9ca3af;
    --black-500: #6b7280;
    --black-600: #4b5563;
    --black-700: #374151;
    --black-800: #1f2937;
    --black-900: #111827;
    --black-950: #030712;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-orange: 0 4px 14px 0 rgba(249, 115, 22, 0.2);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== MOBILE FIRST STYLES ===== */

/* Container */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    flex-direction: column;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
    }
}

/* Main Content */
.main-content {
    flex: 1;
    padding: var(--space-md);
    min-height: 100vh;
    background: var(--body-bg);
    transition: all var(--transition-normal);
    width: 100%;
}

@media (min-width: 768px) {
    .main-content {
        margin-left: 250px;
        padding: var(--space-xl);
    }
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--black-900) 100%);
    color: var(--text-white);
    padding: var(--space-md) var(--space-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    width: 100%;
    border-bottom: 3px solid var(--primary-color);
}

@media (min-width: 768px) {
    .mobile-header {
        display: none;
    }
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mobile-header h1 {
    font-size: var(--font-size-lg);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.mobile-menu-toggle {
    background: var(--primary-color);
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    width: 40px;
    height: 40px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* ===== SIDEBAR - ORANGE & BLACK THEME ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--secondary-dark) 0%, var(--sidebar-bg) 100%);
    color: var(--text-white);
    z-index: 2000;
    transition: left var(--transition-normal);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    border-right: 3px solid var(--primary-color);
}

@media (min-width: 768px) {
    .sidebar {
        left: 0;
        position: fixed;
    }
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
    .sidebar-overlay {
        display: none !important;
    }
}

.sidebar-overlay.active {
    display: block;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.logo {
    padding: var(--space-xl) var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.logo h2 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: 0;
    text-align: center;
}

.logo h2 i {
    color: var(--primary-color);
}

.user-profile {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(249, 115, 22, 0.1);
    backdrop-filter: blur(10px);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-orange);
}

.user-details h4 {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-white);
}

.user-details p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin: 0;
    color: var(--orange-300);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin: 2px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-normal);
    border-left: 4px solid transparent;
    font-weight: 500;
    font-size: var(--font-size-md);
    position: relative;
    overflow: hidden;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
    transition: left 0.5s ease;
}

.sidebar-nav a:hover::before {
    left: 100%;
}

.sidebar-nav a:hover {
    background: rgba(249, 115, 22, 0.15);
    color: var(--text-white);
    border-left-color: var(--primary-color);
    padding-left: calc(var(--space-lg) + 8px);
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.1));
    color: var(--text-white);
    border-left-color: var(--primary-color);
    box-shadow: inset 4px 0 0 var(--primary-color);
}

.sidebar-nav a.active i {
    color: var(--primary-color);
}

.sidebar-nav i {
    width: 24px;
    margin-right: var(--space-sm);
    font-size: 1.1rem;
    text-align: center;
    color: var(--orange-300);
}

.sidebar-nav .logout a {
    color: var(--orange-200);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-sm);
}

.sidebar-nav .logout a:hover {
    background: rgba(220, 38, 38, 0.1);
    border-left-color: var(--danger-color);
}

.sidebar-footer {
    padding: var(--space-lg);
    text-align: center;
    font-size: var(--font-size-xs);
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--orange-300);
    background: rgba(0, 0, 0, 0.2);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--font-size-2xl);
    color: var(--secondary-dark);
}

@media (min-width: 768px) {
    h1 {
        font-size: var(--font-size-3xl);
    }
}

h2 {
    font-size: var(--font-size-xl);
    color: var(--secondary-dark);
}

@media (min-width: 768px) {
    h2 {
        font-size: var(--font-size-2xl);
    }
}

h3 {
    font-size: var(--font-size-lg);
    color: var(--secondary-dark);
}

@media (min-width: 768px) {
    h3 {
        font-size: var(--font-size-xl);
    }
}

/* ===== HEADER ===== */
.header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--primary-light);
    background: linear-gradient(to right, var(--orange-50), var(--orange-100));
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--orange-200);
}

@media (min-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.header h1 {
    font-size: var(--font-size-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
    color: var(--secondary-dark);
}

.header h1 i {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== STATS GRID - ORANGE THEME ===== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: var(--space-lg);
    }
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--orange-200);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, var(--orange-50));
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-orange);
    border-color: var(--primary-color);
}

@media (hover: none) {
    .stat-card:hover {
        transform: none;
    }
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-white);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

@media (min-width: 768px) {
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

.stat-info h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 4px;
    color: var(--secondary-dark);
    font-weight: 700;
}

@media (min-width: 768px) {
    .stat-info h3 {
        font-size: var(--font-size-2xl);
    }
}

.stat-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin: 0;
    font-weight: 500;
}

/* ===== TABLES - ORANGE ACCENTS ===== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--orange-200);
    background: var(--card-bg);
    margin: var(--space-md) 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

@media (max-width: 767px) {
    .data-table {
        min-width: 100%;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tbody, 
    .data-table tr, 
    .data-table td {
        display: block;
        width: 100%;
    }
    
    .data-table tr {
        margin-bottom: var(--space-lg);
        border: 1px solid var(--orange-200);
        border-radius: var(--radius-md);
        padding: var(--space-md);
        position: relative;
        background: var(--orange-50);
    }
    
    .data-table td {
        padding: var(--space-sm) 0;
        border: none;
        position: relative;
        padding-left: 45%;
    }
    
    .data-table td::before {
        content: attr(data-label);
        position: absolute;
        left: var(--space-md);
        width: 40%;
        padding-right: var(--space-md);
        font-weight: 600;
        color: var(--secondary-dark);
        text-align: left;
    }
}

@media (min-width: 768px) {
    .data-table {
        border-collapse: separate;
        border-spacing: 0;
        min-width: 100%;
    }
    
    .data-table th {
        background: linear-gradient(to bottom, var(--orange-50), var(--orange-100));
        padding: var(--space-md) var(--space-lg);
        text-align: left;
        font-weight: 600;
        color: var(--secondary-dark);
        border-bottom: 2px solid var(--primary-color);
        white-space: nowrap;
        font-size: var(--font-size-sm);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .data-table td {
        padding: var(--space-md) var(--space-lg);
        border-bottom: 1px solid var(--orange-200);
        vertical-align: middle;
        color: var(--text-secondary);
    }
    
    .data-table tbody tr {
        transition: all var(--transition-fast);
    }
    
    .data-table tbody tr:hover {
        background-color: var(--orange-50);
        box-shadow: inset 4px 0 0 var(--primary-color);
    }
}

/* ===== FORMS - ORANGE ACCENTS ===== */
.form-container {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .form-container {
        max-width: 800px;
    }
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-control {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--orange-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    font-family: var(--font-family);
    transition: all var(--transition-fast);
    background: var(--card-bg);
    color: var(--text-primary);
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Remove default styling for select on iOS */
select.form-control {
    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='%23f97316' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ===== BUTTONS - ORANGE THEME ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    font-family: var(--font-family);
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

@media (min-width: 768px) {
    .btn {
        padding: var(--space-md) var(--space-xl);
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary-dark);
}

.btn-primary:hover,
.btn-primary:active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--black-700), var(--black-800));
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--black-800);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--black-800), var(--black-700));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #b91c1c);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
    border: 1px solid #b91c1c;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, var(--danger-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    min-height: 36px;
    min-width: 36px;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .action-buttons {
        justify-content: center;
    }
    
    .action-buttons .btn-sm {
        flex: 1;
        min-width: 40px;
        justify-content: center;
    }
}

/* ===== STATUS BADGES - ORANGE VARIATIONS ===== */
.status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 80px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.status-new {
    background: linear-gradient(135deg, var(--orange-100), var(--orange-200));
    color: var(--orange-800);
    border: 1px solid var(--orange-300);
}

.status-contacted {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: var(--orange-800);
    border: 1px solid #fbbf24;
}

.status-follow_up {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.status-converted {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border: 1px solid #10b981;
}

.status-lost {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #7f1d1d;
    border: 1px solid #ef4444;
}

/* ===== CONTENT CARDS ===== */
.content-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--orange-200);
    background: linear-gradient(to bottom, #ffffff, var(--orange-50));
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

@media (min-width: 768px) {
    .content-card {
        padding: var(--space-xl);
        margin-bottom: var(--space-xl);
    }
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--orange-200);
}

@media (min-width: 768px) {
    .card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.card-header h2 {
    font-size: var(--font-size-lg);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--secondary-dark);
}

@media (min-width: 768px) {
    .card-header h2 {
        font-size: var(--font-size-xl);
    }
}

.card-header h2 i {
    color: var(--primary-color);
}

/* ===== QUICK ACTIONS ===== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--space-lg);
    }
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: var(--card-bg);
    border: 2px solid var(--orange-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    text-align: center;
    min-height: 120px;
    background: linear-gradient(135deg, #ffffff, var(--orange-50));
    position: relative;
    overflow: hidden;
}

.quick-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.quick-action-btn:hover::before {
    transform: translateX(0);
}

@media (min-width: 768px) {
    .quick-action-btn {
        padding: var(--space-xl);
        min-height: 140px;
    }
}

.quick-action-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-orange);
}

.quick-action-btn i {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .quick-action-btn i {
        font-size: 2.5rem;
    }
}

.quick-action-btn span {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--secondary-dark);
}

/* ===== FILTERS ===== */
.filter-bar {
    background: linear-gradient(135deg, var(--orange-50), var(--orange-100));
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    border: 1px solid var(--orange-300);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .filter-bar {
        flex-direction: row;
        align-items: flex-end;
        gap: var(--space-lg);
    }
}

.filter-group {
    flex: 1;
    min-width: 100%;
}

@media (min-width: 768px) {
    .filter-group {
        min-width: 200px;
    }
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: var(--space-xl);
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--space-sm);
    background: var(--card-bg);
    border: 1px solid var(--orange-300);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    background: linear-gradient(to bottom, #ffffff, var(--orange-50));
}

.page-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-orange);
}

@media (min-width: 768px) {
    .page-link {
        min-width: 40px;
        height: 40px;
    }
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    border: 2px solid var(--primary-color);
    background: linear-gradient(to bottom, #ffffff, var(--orange-50));
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--orange-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== TOUCH OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets on touch devices */
    a, button, [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover,
    .stat-card:hover,
    .quick-action-btn:hover {
        transform: none;
    }
    
    /* Better touch feedback */
    .btn:active,
    .stat-card:active,
    .quick-action-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar,
    .mobile-header,
    .mobile-menu-toggle,
    .action-buttons,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .content-card {
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid;
    }
}

/* ===== ACCESSIBILITY ===== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== LOADING STATES ===== */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--orange-300);
    border-top-color: var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== DARK MODE - ORANGE THEME ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --body-bg: #030712;
        --card-bg: #111827;
        --border-color: #374151;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --sidebar-bg: #030712;
    }
    
    .stat-card,
    .content-card,
    .quick-action-btn,
    .page-link {
        background: linear-gradient(135deg, #1f2937, #111827);
    }
    
    .data-table th {
        background: linear-gradient(to bottom, #1f2937, #374151);
    }
    
    .data-table tbody tr:hover {
        background-color: rgba(249, 115, 22, 0.1);
    }
}

/* ===== ORIENTATION SPECIFIC ===== */
@media (orientation: landscape) and (max-height: 600px) {
    .sidebar {
        overflow-y: auto;
        height: 100vh;
    }
    
    .main-content {
        padding-top: 60px;
    }
}