/* ======================================== */
/* Pazira - Professional Restaurant Management */
/* فونت: یکان (YekanBakh) */
/* ======================================== */

/* ======================================== */
/* فونت یکان (YekanBakh) - آفلاین */
/* ======================================== */

@font-face {
    font-family: 'YekanBakh';
    src: url('/static/fonts/YekanBakh-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('/static/fonts/YekanBakh-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('/static/fonts/YekanBakh-ExtraBlack.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* ======================================== */
/* اعمال فونت به کل سایت */
/* ======================================== */

* {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

body {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.sidebar-brand,
.top-bar-title,
.dashboard-card-title,
.stat-card-value,
.pricing-name,
.pricing-amount,
.auth-logo-text {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
    font-weight: 700;
}

.btn, 
.form-control, 
.form-label,
input, 
select, 
textarea,
.sidebar-nav-link,
.sidebar-section-title,
.user-name,
.user-role {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

p, span, div, li, a, label, .stat-card-label, .pricing-desc, .feature-title, .feature-description {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* ======================================== */
/* CSS Variables */
/* ======================================== */
:root {
    /* Primary Colors - Dark Green Palette */
    --primary-900: #0a2e23;
    --primary-800: #0f3d2e;
    --primary-700: #1a5c47;
    --primary-600: #2d7a5f;
    --primary-500: #40916c;
    --primary-400: #52b788;
    --primary-300: #74c69d;
    --primary-200: #95d5b2;
    --primary-100: #b7e4c7;
    --primary-50: #d8f3dc;
    
    /* Neutral Colors */
    --gray-900: #1a1a1a;
    --gray-800: #2d2d2d;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #6c757d;
    --gray-400: #8a8a8a;
    --gray-300: #b0b0b0;
    --gray-200: #d4d4d4;
    --gray-100: #e8e8e8;
    --gray-50: #f5f7f6;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Background */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7f6;
    --bg-sidebar: #0f3d2e;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ======================================== */
/* Reset & Base Styles */
/* ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-secondary);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ======================================== */
/* Dashboard Layout */
/* ======================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    direction: rtl;
}

/* ======================================== */
/* Sidebar Styles */
/* ======================================== */
.sidebar {
    background: var(--primary-800);
    color: white;
    padding: 1.5rem;
    width: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.sidebar-logo {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar-nav-item {
    margin-bottom: 4px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--primary-200);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.sidebar-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sidebar-nav-link span {
    flex: 1;
}

.sidebar-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav-link.active {
    background: var(--primary-600);
    color: white;
}

.sidebar-section-title {
    font-size: 0.7rem;
    color: var(--primary-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px 6px;
    font-weight: 700;
    opacity: 0.8;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.user-role {
    font-size: 0.75rem;
    color: var(--primary-300);
}

/* ======================================== */
/* Mobile Menu Button */
/* ======================================== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    background: var(--primary-800);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--primary-700);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* ======================================== */
/* Main Content */
/* ======================================== */
.main-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-secondary);
    min-height: 100vh;
}

/* ======================================== */
/* Top Bar */
/* ======================================== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--bg-primary);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.content-wrapper {
    animation: fadeInUp 0.5s ease;
}

/* ======================================== */
/* Dashboard Cards */
/* ======================================== */
.dashboard-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dashboard-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.dashboard-card-action {
    color: var(--primary-600);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.dashboard-card-action:hover {
    color: var(--primary-700);
}

/* ======================================== */
/* Stats Cards */
/* ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card-icon.green {
    background: var(--primary-50);
    color: var(--primary-700);
}

.stat-card-icon.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.stat-card-icon.orange {
    background: #fef3c7;
    color: #d97706;
}

.stat-card-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.stat-card-trend {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.stat-card-trend.up {
    background: #d1fae5;
    color: #065f46;
}

.stat-card-trend.down {
    background: #fee2e2;
    color: #991b1b;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ======================================== */
/* Dashboard Grid */
/* ======================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ======================================== */
/* Form Styles */
/* ======================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    background: var(--bg-primary);
    color: var(--gray-900);
    height: 48px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(45, 122, 95, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
    font-size: 0.9rem;
}

select.form-control {
    appearance: auto;
    height: 48px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
    height: auto;
}

.form-text {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.form-text.error {
    color: var(--danger);
}

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

.form-text.info {
    color: var(--gray-500);
}

/* ======================================== */
/* Password Field Styles */
/* ======================================== */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .form-control {
    width: 100% !important;
    padding-left: 40px !important;
}

.password-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    z-index: 5;
}

.password-toggle:hover {
    color: var(--gray-900);
}

.password-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.password-hint i {
    color: var(--warning);
    font-size: 0.7rem;
}

.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.4rem;
    background: var(--gray-100);
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength .fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.password-strength .fill.weak {
    background: var(--danger);
    width: 25%;
}

.password-strength .fill.medium {
    background: var(--warning);
    width: 50%;
}

.password-strength .fill.strong {
    background: var(--success);
    width: 75%;
}

.password-strength .fill.very-strong {
    background: var(--success);
    width: 100%;
}

.password-strength-text {
    font-size: 0.7rem;
    margin-top: 0.2rem;
    text-align: left;
    direction: ltr;
}

.password-strength-text.weak {
    color: var(--danger);
}

.password-strength-text.medium {
    color: var(--warning);
}

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

.password-strength-text.very-strong {
    color: var(--success);
}

/* ======================================== */
/* Button Styles */
/* ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    height: 48px;
}

.btn-primary {
    background: var(--primary-800);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    color: white;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-800);
    color: var(--primary-800);
}

.btn-outline:hover {
    background: var(--primary-800);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    height: 36px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    height: 56px;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    color: white;
}

.btn-register,
.btn-login {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    height: 52px;
    background: var(--primary-800);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-register:hover,
.btn-login:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

/* ======================================== */
/* Alert Styles */
/* ======================================== */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ======================================== */
/* Status Badges */
/* ======================================== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* ======================================== */
/* Empty State */
/* ======================================== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* ======================================== */
/* Table Styles */
/* ======================================== */
.data-table {
    width: 100%;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table thead {
    background: var(--gray-50);
}

.data-table th {
    padding: 1rem;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-200);
}

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

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ======================================== */
/* Page Header */
/* ======================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
}

/* ======================================== */
/* Pricing Cards */
/* ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 2px solid var(--gray-200);
    transition: var(--transition-normal);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.pricing-card.popular {
    border-color: var(--primary-600);
    background: var(--primary-800);
    color: white;
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--warning);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.pricing-desc {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 900;
}

.pricing-currency {
    font-size: 1rem;
    color: var(--gray-500);
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features li i {
    color: var(--success);
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 0.875rem;
    text-align: center;
    background: var(--primary-800);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

.pricing-btn:hover {
    background: var(--primary-700);
    color: white;
    text-decoration: none;
}

.pricing-card.popular .pricing-btn {
    background: white;
    color: var(--primary-800);
}

.pricing-card.popular .pricing-btn:hover {
    background: var(--gray-100);
}

/* ======================================== */
/* Menu Items Grid */
/* ======================================== */
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.menu-item-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: var(--transition-normal);
}

.menu-item-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-100);
}

.menu-item-content {
    padding: 1rem;
}

.menu-item-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.menu-item-category {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.menu-item-price {
    font-weight: 800;
    color: var(--primary-700);
    font-size: 1.1rem;
}

/* ======================================== */
/* Toggle Switch */
/* ======================================== */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-300);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary-600);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* ======================================== */
/* Orders Table */
/* ======================================== */
.orders-table {
    width: 100%;
    font-size: 0.9rem;
}

.orders-table th {
    text-align: right;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    color: var(--gray-600);
    font-size: 0.8rem;
    border-bottom: 2px solid var(--gray-200);
}

.orders-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--gray-100);
}

/* ======================================== */
/* Ticket Styles */
/* ======================================== */
.ticket-section {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: 3rem;
}

.ticket-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border-right: 4px solid var(--primary-600);
    transition: var(--transition-normal);
    cursor: pointer;
}

.ticket-card:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.ticket-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.ticket-status.open {
    background: #dbeafe;
    color: #1e40af;
}

.ticket-status.closed {
    background: #d1fae5;
    color: #065f46;
}

.ticket-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.ticket-btn {
    background: var(--primary-800);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
    cursor: pointer;
}

.ticket-btn:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
}

/* ======================================== */
/* Landing Page Styles */
/* ======================================== */
.landing-page {
    background: var(--bg-secondary);
}

.landing-nav {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.landing-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.landing-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.landing-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-800);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.landing-nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.landing-nav-links a:hover {
    color: var(--primary-700);
}

.landing-nav-buttons {
    display: flex;
    gap: 0.75rem;
}

/* ======================================== */
/* Hero Section */
/* ======================================== */
.landing-hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.landing-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.landing-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-900);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.landing-hero-content h1 span {
    color: var(--primary-600);
}

.landing-hero-content p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.landing-hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.landing-hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

.stat-item .number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-800);
}

.stat-item .label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ======================================== */
/* Features Section */
/* ======================================== */
.landing-features {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.landing-features.bg-gray {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.feature-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--bg-primary);
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-800);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ======================================== */
/* Auth Pages */
/* ======================================== */
.auth-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1rem;
}

.auth-logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.auth-logo-icon img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.auth-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-800);
}

.auth-subtitle {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin: 0;
}

.auth-body {
    margin-top: 1.5rem;
}

.auth-body .form-group .form-control {
    width: 100% !important;
    display: block !important;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    color: var(--gray-600);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-700);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: var(--primary-800);
}

/* ======================================== */
/* Footer */
/* ======================================== */
.landing-footer {
    background: var(--primary-900);
    color: var(--primary-200);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-700);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
}

.footer-description {
    color: var(--primary-300);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--primary-300);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--primary-400);
    font-size: 0.875rem;
}

/* ======================================== */
/* Animations */
/* ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ======================================== */
/* Responsive Design */
/* ======================================== */
@media (max-width: 1024px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        right: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        padding: 1rem;
        margin-right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .landing-hero .container {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .landing-hero-content h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
    
    .top-bar-title {
        font-size: 1.25rem;
    }
    
    .data-table {
        font-size: 0.85rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .landing-nav-links {
        display: none;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: scale(1) translateY(-5px);
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .top-bar {
        padding: 1rem;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        height: 40px;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        height: 32px;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        height: 48px;
    }
    
    .btn-register,
    .btn-login {
        height: 48px;
        font-size: 0.9rem;
    }
    
    .mobile-menu-btn {
        padding: 0.625rem 0.875rem;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .form-control {
        height: 42px !important;
        font-size: 0.85rem !important;
        padding: 0.4rem 0.75rem !important;
    }
}

/* ======================================== */
/* Scrollbar Styling */
/* ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-600);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-700);
}