/* ============================================
   STOK TAKİP PRO - MODERN CSS FRAMEWORK
   Version: 2.0
   ============================================ */

/* CSS Variables - Modern Color Palette */
:root {
    /* Primary Colors - Modern Blue */
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    
    /* Success - Green */
    --success: #10B981;
    --success-light: #34D399;
    --success-bg: #D1FAE5;
    
    /* Warning - Amber */
    --warning: #F59E0B;
    --warning-light: #FBBF24;
    --warning-bg: #FEF3C7;
    
    /* Danger - Red */
    --danger: #EF4444;
    --danger-light: #F87171;
    --danger-bg: #FEE2E2;
    
    /* Info - Cyan */
    --info: #06B6D4;
    --info-light: #22D3EE;
    --info-bg: #CFFAFE;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-white: #FFFFFF;
    
    /* Background Colors */
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-secondary: #F9FAFB;
    --bg-card: #FFFFFF;
    --bg-soft: #F8FAFC;
    --bg-muted: #F1F5F9;
    --bg-hover: #F8FAFC;
    
    /* Border Colors */
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --border-primary: #E5E7EB;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 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);
    
    /* 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;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    
    /* Transitions */
    --transition-fast: all 0.15s ease-in-out;
    --transition-normal: all 0.3s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
}/* ====
========================================
   GLOBAL RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: var(--leading-normal);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Focus States */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Selection */
::selection {
    background: var(--primary-100);
    color: var(--primary-dark);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}/* ===
=========================================
   MODERN NAVIGATION SYSTEM
   ============================================ */

/* Top Navigation Bar */
.nav-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 var(--space-6);
    height: 64px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-medium);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition-fast);
    font-size: var(--text-sm);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-weight: var(--font-semibold);
    box-shadow: inset 0 -3px 0 var(--white);
}

.nav-item i {
    font-size: var(--text-base);
    width: 20px;
    text-align: center;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    border-radius: var(--radius);
    transition: var(--transition-fast);
    white-space: nowrap;
    width: 100%;
    text-align: left;
}

.nav-dropdown .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.nav-dropdown.show .dropdown-toggle,
.nav-dropdown.active .dropdown-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.nav-dropdown .dropdown-arrow {
    font-size: var(--text-xs);
    transition: transform 0.2s ease;
    margin-left: auto;
}

.nav-dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: var(--space-2);
    padding: var(--space-2);
    max-height: 400px;
    overflow-y: auto;
}

.nav-dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--text-sm);
    border-radius: var(--radius);
    transition: var(--transition-fast);
    margin-bottom: var(--space-1);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-item.active {
    background: var(--primary-50);
    color: var(--primary);
    font-weight: var(--font-semibold);
}

.dropdown-item i {
    width: 16px;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.dropdown-item:hover i {
    color: var(--primary);
}/
* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    width: 48px;
    height: 48px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.mobile-nav-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-nav-toggle.active {
    background: var(--danger);
    transform: rotate(90deg);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-6);
    min-height: calc(100vh - 64px);
}

/* ============================================
   MODERN BUTTON SYSTEM
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: var(--leading-none);
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
    min-height: 40px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Sizes */
.btn-xs {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    min-height: 28px;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    min-height: 32px;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    min-height: 48px;
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1D4ED8);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-secondary);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--gray-50);
    color: var(--text-primary);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
    border-color: var(--success);
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #D97706);
    color: var(--white);
    border-color: var(--warning);
    box-shadow: var(--shadow-sm);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #D97706, #B45309);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #DC2626);
    color: var(--white);
    border-color: var(--danger);
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #0891B2);
    color: var(--white);
    border-color: var(--info);
    box-shadow: var(--shadow-sm);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0891B2, #0E7490);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

/* Outline Buttons */
.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}/
* ============================================
   MODERN CARDS & CONTAINERS
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-fast);
    margin-bottom: var(--space-6);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card:hover::before {
    opacity: 1;
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.card-title i {
    font-size: var(--text-base);
    color: var(--primary);
    background: var(--primary-50);
    padding: var(--space-2);
    border-radius: var(--radius);
}

.card-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border);
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   DASHBOARD STATS CARDS
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.stats-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stats-card:hover::before {
    opacity: 0.05;
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.stats-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.stats-card.success::after {
    background: var(--success);
}

.stats-card.warning::after {
    background: var(--warning);
}

.stats-card.danger::after {
    background: var(--danger);
}

.stats-card.info::after {
    background: var(--info);
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.stats-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: var(--shadow-md);
    transition: var(--transition-fast);
}

.stats-card.success .stats-icon {
    background: linear-gradient(135deg, var(--success), #059669);
}

.stats-card.warning .stats-icon {
    background: linear-gradient(135deg, var(--warning), #D97706);
}

.stats-card.danger .stats-icon {
    background: linear-gradient(135deg, var(--danger), #DC2626);
}

.stats-card.info .stats-icon {
    background: linear-gradient(135deg, var(--info), #0891B2);
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
}

.stats-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: var(--leading-none);
    margin-bottom: var(--space-2);
}

.stats-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-link {
    font-size: var(--text-xs);
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: var(--transition-fast);
}

.stats-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Dashboard Grid Alternative */
.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(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--primary);
}

.dashboard-card.success {
    border-left-color: var(--success);
}

.dashboard-card.warning {
    border-left-color: var(--warning);
}

.dashboard-card.danger {
    border-left-color: var(--danger);
}

.dashboard-card.info {
    border-left-color: var(--info);
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--white);
    background: var(--primary);
    margin-bottom: var(--space-4);
}

.dashboard-card.success .card-icon {
    background: var(--success);
}

.dashboard-card.warning .card-icon {
    background: var(--warning);
}

.dashboard-card.danger .card-icon {
    background: var(--danger);
}

.dashboard-card.info .card-icon {
    background: var(--info);
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.card-subtext {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.card-link {
    font-size: var(--text-xs);
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: var(--transition-fast);
}

.card-link:hover {
    color: var(--primary-dark);
}/* ==
==========================================
   MODERN TABLES
   ============================================ */

.table-responsive {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    margin: 0;
}

.table thead {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

.table th {
    padding: var(--space-4) var(--space-6);
    text-align: left;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
    position: relative;
}

.table th.sortable:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.table th.sortable::after {
    content: '↕';
    position: absolute;
    right: var(--space-2);
    opacity: 0.5;
    font-size: var(--text-xs);
}

.table td {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: middle;
}

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

.table tbody tr:hover {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    transform: scale(1.01);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Footer */
.table-footer {
    padding: var(--space-4) var(--space-6);
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ============================================
   MODERN BADGES & STATUS
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid var(--success-light);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-light);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-light);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid var(--info-light);
}

.badge-primary {
    background: var(--primary-50);
    color: var(--primary);
    border: 1px solid var(--primary-light);
}

.badge-secondary {
    background: var(--gray-100);
    color: var(--text-muted);
    border: 1px solid var(--gray-300);
}

/* Color Badge for Products */
.color-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-align: center;
    min-width: 60px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   MODERN FORMS
   ============================================ */

.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-control {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text-primary);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:disabled {
    background: var(--gray-100);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Search Form */
.search-form {
    background: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-6);
    border: 1px solid var(--border);
}

.form-row {
    display: flex;
    gap: var(--space-4);
    align-items: end;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.search-input {
    flex: 2;
    min-width: 300px;
}

.filter-select {
    min-width: 150px;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.quick-action-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.quick-action-card:hover::before {
    left: 100%;
}

.quick-action-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.quick-action-card.success {
    background: linear-gradient(135deg, var(--success), #059669);
}

.quick-action-card.warning {
    background: linear-gradient(135deg, var(--warning), #D97706);
}

.quick-action-card.danger {
    background: linear-gradient(135deg, var(--danger), #DC2626);
}

.quick-action-card.info {
    background: linear-gradient(135deg, var(--info), #0891B2);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-action-content {
    flex: 1;
}

.quick-action-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-1);
    color: var(--white);
}

.quick-action-desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}

/* Horizontal Quick Actions */
.quick-actions.horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: space-between;
}

.quick-actions.horizontal .quick-action-card {
    flex: 1;
    min-width: 200px;
    max-width: none;
}/* ==
==========================================
   ALERTS & MESSAGES
   ============================================ */

.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-6);
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert i {
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.alert-success {
    background: linear-gradient(135deg, var(--success-bg), rgba(16, 185, 129, 0.05));
    color: var(--success);
    border-left-color: var(--success);
}

.alert-warning {
    background: linear-gradient(135deg, var(--warning-bg), rgba(245, 158, 11, 0.05));
    color: var(--warning);
    border-left-color: var(--warning);
}

.alert-danger {
    background: linear-gradient(135deg, var(--danger-bg), rgba(239, 68, 68, 0.05));
    color: var(--danger);
    border-left-color: var(--danger);
}

.alert-info {
    background: linear-gradient(135deg, var(--info-bg), rgba(6, 182, 212, 0.05));
    color: var(--info);
    border-left-color: var(--info);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pagination {
    display: flex;
    gap: var(--space-1);
    align-items: center;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: var(--transition-fast);
    background: var(--white);
}

.page-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.pagination-info {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
    text-align: center;
    padding: var(--space-12);
    color: var(--text-muted);
}

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

.empty-state h3 {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.empty-state p {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text Colors */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--white) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }

/* Flexbox */
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }

/* Margins */
.m-0 { margin: 0 !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.col {
    flex: 1;
    min-width: 0;
}

.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-4px);
    transition: var(--transition-fast);
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: var(--transition-fast);
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SPECIAL COMPONENTS
   ============================================ */

/* Stock Info Display */
.stock-info {
    font-size: var(--text-xs);
    line-height: 1.4;
}

.stock-info small {
    display: block;
    margin-bottom: var(--space-1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.result-count {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--font-medium);
}

/* User Menu */
.user-menu {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 1000;
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-info:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}

.user-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
}

.user-actions {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: var(--space-2);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
}

.user-menu.show .user-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-action {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}

.user-action:last-child {
    border-bottom: none;
}

.user-action:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: var(--space-8) 0;
    margin-top: var(--space-12);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}/* ====
========================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: var(--space-4);
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: var(--space-4);
    }
    
    .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        min-width: auto;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 80px var(--space-4) var(--space-4);
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-menu.mobile-open {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        padding: var(--space-4) var(--space-6);
        border-radius: var(--radius);
        margin-bottom: var(--space-2);
        justify-content: flex-start;
        text-align: left;
        color: var(--text-primary);
        background: var(--white);
        border: 1px solid var(--border);
    }
    
    .nav-item:hover {
        background: var(--primary-50);
        color: var(--primary);
        transform: translateX(4px);
    }
    
    .nav-item.active {
        background: var(--primary);
        color: var(--white);
        box-shadow: none;
    }
    
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--gray-50);
        margin: var(--space-2) 0 0 0;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .nav-dropdown.show .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        padding: var(--space-3) var(--space-6);
        border-bottom: 1px solid var(--border-light);
        margin-bottom: 0;
    }
    
    body.nav-open {
        overflow: hidden;
    }
    
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    /* Mobile Content */
    .container {
        padding: var(--space-3);
        margin-top: 0;
    }
    
    /* Mobile Cards */
    .card {
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-4);
    }
    
    .card-header {
        padding: var(--space-4);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .card-body {
        padding: var(--space-4);
    }
    
    .card-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    /* Mobile Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .stats-card {
        padding: var(--space-6);
    }
    
    .stats-icon {
        width: 48px;
        height: 48px;
        font-size: var(--text-xl);
    }
    
    .stats-value {
        font-size: var(--text-2xl);
    }
    
    /* Mobile Tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
        font-size: var(--text-xs);
    }
    
    .table th,
    .table td {
        padding: var(--space-2) var(--space-3);
    }
    
    /* Mobile Forms */
    .search-form {
        padding: var(--space-4);
    }
    
    .form-row {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .btn-group {
        width: 100%;
        justify-content: center;
    }
    
    .btn-group .btn {
        flex: 1;
        font-size: var(--text-sm);
    }
    
    /* Mobile Quick Actions */
    .quick-actions {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .quick-actions.horizontal {
        flex-direction: column;
    }
    
    .quick-action-card {
        padding: var(--space-4);
    }
    
    .quick-action-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }
    
    .quick-action-title {
        font-size: var(--text-sm);
    }
    
    .quick-action-desc {
        font-size: var(--text-xs);
    }
    
    /* Mobile Alerts */
    .alert {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-sm);
    }
    
    /* Mobile Pagination */
    .pagination-container {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .page-link {
        width: 36px;
        height: 36px;
        font-size: var(--text-xs);
    }
    
    /* Mobile Action Buttons */
    .action-buttons {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Mobile User Menu */
    .user-menu {
        bottom: var(--space-4);
        right: var(--space-4);
    }
    
    .user-info {
        padding: var(--space-2) var(--space-3);
    }
    
    .user-name {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: var(--space-2);
    }
    
    .card-header {
        padding: var(--space-3);
    }
    
    .card-body {
        padding: var(--space-3);
    }
    
    .stats-card {
        padding: var(--space-4);
    }
    
    .stats-value {
        font-size: var(--text-xl);
    }
    
    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }
    
    .btn-sm {
        padding: var(--space-1) var(--space-2);
        font-size: 10px;
    }
    
    .table {
        font-size: 10px;
    }
    
    .table th,
    .table td {
        padding: var(--space-1) var(--space-2);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .nav-container,
    .mobile-nav-toggle,
    .action-buttons,
    .btn,
    .user-menu,
    .card-actions {
        display: none !important;
    }
    
    .container {
        padding: 0;
        max-width: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #F9FAFB;
        --text-secondary: #D1D5DB;
        --text-muted: #9CA3AF;
        --bg-secondary: #111827;
        --bg-card: #1F2937;
        --bg-soft: #374151;
        --bg-muted: #4B5563;
        --border: #374151;
        --border-light: #4B5563;
    }
}

/* ============================================
   CUSTOM SCROLLBAR FOR WEBKIT
   ============================================ */

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius);
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius);
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 2px;
    }
    
    .card {
        border-width: 2px;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}/* =
===========================================
   NOTIFICATION SYSTEM
   ============================================ */

.notification-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: 1060;
    max-width: 400px;
}

.notification {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--space-3);
    padding: var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.notification-success::before {
    background: var(--success);
}

.notification-warning::before {
    background: var(--warning);
}

.notification-error::before {
    background: var(--danger);
}

.notification-info::before {
    background: var(--info);
}

.notification-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.notification-content i {
    font-size: var(--text-lg);
    color: var(--primary);
}

.notification-success .notification-content i {
    color: var(--success);
}

.notification-warning .notification-content i {
    color: var(--warning);
}

.notification-error .notification-content i {
    color: var(--danger);
}

.notification-info .notification-content i {
    color: var(--info);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.notification-close:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Save Indicator */
.save-indicator {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1060;
}

.save-indicator.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Form Validation Styles */
.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-bg);
}

.form-control.success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px var(--success-bg);
}

.field-error {
    margin-top: var(--space-1);
}

.field-error small {
    color: var(--danger);
    font-size: var(--text-xs);
    display: block;
    margin-bottom: var(--space-1);
}

/* File Upload Styles */
.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.file-upload-zone:hover,
.file-upload-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-50);
}

.image-preview {
    margin-top: var(--space-4);
    position: relative;
    display: inline-block;
}

.image-preview img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-preview button {
    position: absolute;
    top: -10px;
    right: -10px;
    border-radius: var(--radius-full);
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1070;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Selection Actions */
.selection-actions {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-4) var(--space-6);
    display: none;
    align-items: center;
    gap: var(--space-4);
    z-index: 1060;
}

.selected-count {
    font-weight: var(--font-semibold);
    color: var(--primary);
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    .notification-container {
        top: var(--space-4);
        right: var(--space-4);
        left: var(--space-4);
        max-width: none;
    }
    
    .notification {
        padding: var(--space-3);
    }
    
    .save-indicator {
        bottom: var(--space-4);
        left: var(--space-4);
        right: var(--space-4);
        transform: none;
        text-align: center;
    }
    
    .save-indicator.show {
        transform: translateY(-10px);
    }
    
    .selection-actions {
        bottom: var(--space-4);
        left: var(--space-4);
        right: var(--space-4);
        transform: none;
        flex-direction: column;
        gap: var(--space-2);
    }
}/* ====
========================================
   DROPDOWN MENU FIX
   ============================================ */

/* Desktop dropdown improvements */
@media (min-width: 769px) {
    .nav-dropdown .dropdown-menu {
        min-width: 250px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-dropdown .dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.15);
    }
}

/* Mobile dropdown improvements */
@media (max-width: 768px) {
    .nav-dropdown .dropdown-toggle {
        width: 100%;
        padding: var(--space-4) var(--space-6);
        border-radius: var(--radius);
        margin-bottom: var(--space-1);
        justify-content: space-between;
        text-align: left;
        color: var(--text-primary);
        background: var(--white);
        border: 1px solid var(--border);
    }
    
    .nav-dropdown .dropdown-toggle:hover {
        background: var(--primary-50);
        color: var(--primary);
    }
    
    .nav-dropdown.show .dropdown-toggle {
        background: var(--primary-50);
        color: var(--primary);
        border-color: var(--primary);
    }
    
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: var(--gray-50);
        margin: 0 0 var(--space-2) 0;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        max-height: none;
        padding: 0;
    }
    
    .nav-dropdown.show .dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .dropdown-item {
        padding: var(--space-3) var(--space-6);
        border-bottom: 1px solid var(--border-light);
        margin-bottom: 0;
        border-radius: 0;
        background: transparent;
    }
    
    .dropdown-item:first-child {
        border-top-left-radius: var(--radius);
        border-top-right-radius: var(--radius);
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
        border-bottom-left-radius: var(--radius);
        border-bottom-right-radius: var(--radius);
    }
    
    .dropdown-item:hover {
        background: var(--primary-100);
        color: var(--primary);
    }
    
    .dropdown-item.active {
        background: var(--primary);
        color: var(--white);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   IMPROVED PAGINATION STYLES
   ============================================ */

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-6);
    padding: var(--space-4) var(--space-6);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.pagination {
    display: flex;
    gap: var(--space-1);
    align-items: center;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: var(--transition-fast);
    background: var(--white);
}

.page-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.page-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.pagination-info {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: var(--font-medium);
}

/* Mobile pagination */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
        padding: var(--space-3);
    }
    
    .pagination {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .page-link {
        width: 36px;
        height: 36px;
        font-size: var(--text-xs);
    }
}

/* ============================================
   ENHANCED BUTTON STYLES
   ============================================ */

.btn-group {
    display: inline-flex;
    gap: var(--space-1);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn-group .btn {
    border-radius: 0;
    border-right: none;
    margin: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
}

.btn-group .btn:last-child {
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    border-right: 1px solid;
}

.btn-group .btn:hover {
    z-index: 1;
    position: relative;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}/* =====
=======================================
   CONSISTENT PAGE LAYOUT
   ============================================ */

/* Ensure all pages have consistent container width */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-6);
    min-height: calc(100vh - 64px);
    width: 100%;
}

/* Full width container for special cases */
.container-fluid {
    width: 100%;
    padding: var(--space-6);
    min-height: calc(100vh - 64px);
}

/* Page header consistency */
.page-header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.page-header p {
    color: var(--text-muted);
    font-size: var(--text-base);
    margin: 0;
}

/* Form consistency */
.form-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.form-label i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.form-actions {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex-wrap: wrap;
}

/* Card consistency */
.card {
    margin-bottom: var(--space-6);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--gray-50), var(--white));
}

.card-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.card-header h3 i {
    color: var(--primary);
    background: var(--primary-50);
    padding: var(--space-2);
    border-radius: var(--radius);
    font-size: var(--text-base);
}

.card-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.card-body {
    padding: var(--space-6);
}

/* Table consistency */
.table-responsive {
    margin-bottom: var(--space-4);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    color: var(--text-primary);
    font-weight: var(--font-semibold);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-4) var(--space-6);
    border-bottom: 2px solid var(--border);
}

.table tbody td {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

/* Navigation consistency */
.nav-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0;
}

/* Action buttons consistency */
.action-buttons {
    margin-bottom: var(--space-6);
    padding: var(--space-4) var(--space-6);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex-wrap: wrap;
}

/* Empty state consistency */
.empty-state {
    text-align: center;
    padding: var(--space-12);
    color: var(--text-muted);
}

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

.empty-state h3 {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.empty-state p {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
}

/* Alert consistency */
.alert {
    margin-bottom: var(--space-6);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    border: none;
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert i {
    font-size: var(--text-lg);
    flex-shrink: 0;
}

/* Badge consistency */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    line-height: 1;
    border: 1px solid transparent;
}

/* Button consistency */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: var(--leading-none);
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
    min-height: 40px;
    position: relative;
    overflow: hidden;
}

/* Mobile responsive consistency */
@media (max-width: 768px) {
    .container,
    .container-fluid {
        padding: var(--space-4);
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
        padding: var(--space-4);
    }
    
    .card-body {
        padding: var(--space-4);
    }
    
    .card-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: var(--space-2);
        padding: var(--space-3);
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col,
    .col-2,
    .col-3,
    .col-4,
    .col-6,
    .col-8,
    .col-12 {
        width: 100%;
        flex: none;
    }
}

/* Print styles consistency */
@media print {
    .nav-container,
    .action-buttons,
    .card-actions,
    .form-actions,
    .btn {
        display: none !important;
    }
    
    .container,
    .container-fluid {
        padding: 0;
        max-width: none;
        width: 100%;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
        break-inside: avoid;
    }
    
    .card-header {
        background: #f8f9fa !important;
        border-bottom: 2px solid #ddd;
    }
    
    .table {
        font-size: 12px;
    }
    
    .page-header {
        border-bottom: 2px solid #000;
        margin-bottom: 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .form-control {
        border-width: 2px;
    }
    
    .table th,
    .table td {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}