/* ============================================
   SUIMAS AI - PREMIUM DESIGN v3.0
   Green • Orange • White • Modern
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Light Mode Palette */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.7);

    /* Neutral Palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Brand Accent Colors */
    --green: #10b981;
    --green-light: #34d399;
    --green-dark: #059669;
    --orange: #f59e0b;
    --orange-light: #fbbf24;
    --orange-dark: #d97706;
    --neon-green: #10b981;
    --neon-orange: #f59e0b;

    /* Primary Gradient - Green to Orange */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-accent: linear-gradient(135deg, #10b981 0%, #f59e0b 100%);
    --gradient-fresh: linear-gradient(135deg, #34d399 0%, #fbbf24 100%);

    /* Glass Effect - Light */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Brand Colors - Green Primary, Orange Secondary */
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: rgba(16, 185, 129, 0.1);
    --primary-dark: #047857;
    --secondary: #f59e0b;
    --secondary-hover: #d97706;

    /* Accent Colors (kept for compatibility) */
    --purple: #10b981;
    --purple-light: rgba(16, 185, 129, 0.1);
    --purple-dark: #059669;
    --indigo: #f59e0b;
    --indigo-light: rgba(245, 158, 11, 0.1);
    --indigo-dark: #d97706;

    /* Status Colors */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --success-dark: #047857;
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --warning-dark: #b45309;
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    --danger-dark: #dc2626;
    --info: #0ea5e9;
    --info-light: rgba(14, 165, 233, 0.15);
    --info-dark: #0284c7;

    /* Accent Colors */
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    --accent-warning: #f59e0b;
    --holo-blue: #00b8d4;

    /* Text Colors - Light Mode */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    /* Layout Dimensions */
    --sidebar-width: 280px;
    --header-height: 70px;

    /* Spacing & Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows - Soft & Premium */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.15);
    --glow-primary: 0 0 30px rgba(16, 185, 129, 0.25);
    --glow-secondary: 0 0 30px rgba(245, 158, 11, 0.25);
    --glow-green: 0 0 25px rgba(16, 185, 129, 0.3);
    --glow-orange: 0 0 25px rgba(245, 158, 11, 0.3);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE - LIGHT MODE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 50%, #fffbeb 100%);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.925rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Subtle Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

a:hover {
    color: #10b981;
}

ul {
    list-style: none;
}

/* Global Form Element Styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius);
    font-size: 0.925rem;
    color: var(--slate-900);
    background-color: white;
    transition: all var(--transition-fast);
    font-family: inherit;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
input[type="search"]:hover,
select:hover,
textarea:hover {
    border-color: var(--slate-300);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2310b981' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Global Button Styling */
button {
    font-family: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--slate-900);
}

h1 {
    font-size: 1.875rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

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

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

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

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

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

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

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

.text-xs {
    font-size: 0.75rem;
}

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

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

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

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

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

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

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

.font-normal {
    font-weight: 400;
}

/* ============================================
   LAYOUT STRUCTURE - MODERN LIGHT
   ============================================ */
/* Sidebar - Dark Green */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #047857 0%, #065f46 50%, #064e3b 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    border-right: none;
    box-shadow: 4px 0 30px rgba(4, 120, 87, 0.2);
}

/* Orange accent line */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #f59e0b, #fbbf24, #f59e0b);
    opacity: 1;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo i {
    color: #fbbf24;
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

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

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

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: white;
    border-radius: var(--radius);
    margin-bottom: 0.375rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #f59e0b, #fbbf24);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f59e0b;
    transform: translateX(4px);
}

.sidebar-nav a:hover::before {
    opacity: 1;
}

.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-nav a.active::before {
    opacity: 1;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.sidebar-nav a:hover i {
    color: #fbbf24;
}

/* Main Content Wrapper */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
    z-index: 1;
}

/* Top Header - Clean White */
.top-header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

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

.header-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-right: 1rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--glass-bg);
    color: var(--neon-cyan);
}

/* User Info in Header - Futuristic */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: var(--glow-primary);
}

.user-details {
    text-align: right;
    line-height: 1.3;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.user-role {
    font-size: 0.75rem;
    color: var(--neon-cyan);
    font-weight: 500;
}

.user-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--glow-primary);
    position: relative;
}

.user-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--gradient-neon);
    z-index: -1;
    opacity: 0.5;
}

/* Content Body - Dark Mode */
.content-body {
    flex: 1;
    padding: 2rem;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Footer - Dark Mode */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   PAGE HEADER - FUTURISTIC
   ============================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.page-header-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header-content h1 i {
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.page-header-content p {
    color: var(--text-muted);
    margin: 0;
    padding-left: 2.25rem;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Legacy header-flex support */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-1 {
    grid-template-columns: 1fr;
}

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

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

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

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 2rem;
}

/* ============================================
   CARDS - FUTURISTIC GLASSMORPHISM
   ============================================ */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Animated top accent line */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-neon);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.card:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: var(--glow-primary), var(--glass-shadow);
    transform: translateY(-4px);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.card-header:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-800);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--primary);
}

.card-body {
    padding: 0;
}

/* Stat Cards - Premium Enhanced */
.stat-card {
    text-align: center;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--indigo) 100%);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon.primary {
    background: linear-gradient(135deg, var(--purple) 0%, var(--indigo-dark) 100%);
    color: white;
}

.stat-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stat-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.stat-icon.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.stat-icon.info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f59e0b;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   BUTTONS - PREMIUM GREEN/ORANGE THEME
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: 2px solid transparent;
    gap: 0.5rem;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

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

/* Primary Button - Green */
.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

/* Secondary Button - Orange */
.btn-secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
    border-color: #10b981;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #ef4444;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
}

.btn-warning:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

/* Outline Buttons */
.btn-outline-primary {
    background: transparent;
    border-color: #10b981;
    color: #10b981;
}

.btn-outline-primary:hover:not(:disabled) {
    background: #10b981;
    color: white;
}

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

.btn-outline-secondary:hover:not(:disabled) {
    background: var(--slate-100);
    border-color: var(--slate-400);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
}

.btn-icon.btn-sm {
    width: 28px;
    height: 28px;
}

/* ============================================
   FORMS - PREMIUM STYLING
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-label.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius);
    font-size: 0.925rem;
    color: var(--slate-900);
    background-color: white;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-control:hover {
    border-color: var(--slate-300);
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
    background-color: white;
}

.form-control:disabled,
.form-control[disabled] {
    background-color: var(--slate-100);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-control::placeholder {
    color: var(--slate-400);
}

/* Select - Premium */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2310b981' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

select.form-control:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23059669' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* Textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check label {
    cursor: pointer;
    color: var(--slate-700);
    font-size: 0.9rem;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th {
    text-align: left;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--slate-50), #f8f9ff);
    color: var(--slate-700);
    font-weight: 600;
    border-bottom: 2px solid var(--purple-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-700);
    vertical-align: middle;
}

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

tbody tr {
    transition: all 0.15s ease;
}

tbody tr:hover td {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(139, 92, 246, 0.04));
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success-dark);
}

.badge-warning {
    background-color: var(--warning-light);
    color: var(--warning-dark);
}

.badge-danger {
    background-color: var(--danger-light);
    color: var(--danger-dark);
}

.badge-info {
    background-color: var(--info-light);
    color: var(--info-dark);
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.badge-secondary {
    background-color: var(--slate-200);
    color: var(--slate-700);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert i:first-child {
    margin-top: 0.1rem;
    font-size: 1rem;
}

.alert-success {
    background-color: var(--success-light);
    border: 1px solid #a7f3d0;
    color: var(--success-dark);
}

.alert-danger {
    background-color: var(--danger-light);
    border: 1px solid #fecaca;
    color: var(--danger-dark);
}

.alert-warning {
    background-color: var(--warning-light);
    border: 1px solid #fde68a;
    color: var(--warning-dark);
}

.alert-info {
    background-color: var(--info-light);
    border: 1px solid #bae6fd;
    color: var(--info-dark);
}

/* ============================================
   NOTIFICATIONS - Premium Dropdown
   ============================================ */
.notif-wrapper {
    position: relative;
}

.notif-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-600);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.notif-icon:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.15));
    color: var(--purple);
    transform: scale(1.05);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 100;
    overflow: hidden;
    animation: slideIn 0.2s ease;
}

.notif-dropdown.show {
    display: block;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--purple-light), var(--indigo-light));
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.notif-header span {
    font-weight: 600;
    color: var(--slate-800);
    font-size: 0.95rem;
}

.notif-header small {
    color: var(--purple);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.notif-header small:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}

.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 3px;
}

.notif-list li {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    transition: background 0.2s;
    cursor: pointer;
}

.notif-list li:hover {
    background: var(--slate-50);
}

.notif-list li:last-child {
    border-bottom: none;
}

.notif-list li .notif-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.notif-list li .notif-item-icon.primary {
    background: linear-gradient(135deg, var(--purple), var(--indigo-dark));
    color: white;
}

.notif-list li .notif-item-icon.success {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: white;
}

.notif-list li .notif-item-icon.warning {
    background: linear-gradient(135deg, var(--warning), var(--warning-dark));
    color: white;
}

.notif-list li .notif-content {
    flex: 1;
    min-width: 0;
}

.notif-list li .notif-title {
    font-weight: 500;
    color: var(--slate-800);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.notif-list li .notif-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.notif-list li .notif-time {
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.notif-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.notif-empty i {
    font-size: 2.5rem;
    color: var(--slate-300);
    margin-bottom: 0.75rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active,
.modal[style*="display: block"],
.modal[style*="display:block"] {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.2s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--slate-200);
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--slate-500);
    padding: 0.25rem;
    line-height: 1;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--slate-900);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--slate-200);
    background: var(--slate-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notif-wrapper {
    position: relative;
}

.notif-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
    cursor: pointer;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    position: relative;
}

.notif-icon:hover {
    background-color: var(--slate-100);
    color: var(--slate-700);
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--danger);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    border: 2px solid white;
    font-weight: 600;
    line-height: 1;
}

.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background: white;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    margin-top: 0.5rem;
    display: none;
    z-index: 100;
    overflow: hidden;
}

.notif-dropdown.active {
    display: block;
}

.notif-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--slate-50);
}

.notif-header small {
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}

.notif-header small:hover {
    text-decoration: underline;
}

.notif-list {
    max-height: 320px;
    overflow-y: auto;
}

.notif-list li {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--slate-50);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notif-list li:hover {
    background-color: var(--slate-50);
}

.notif-list li:last-child {
    border-bottom: none;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress {
    height: 8px;
    background: var(--slate-200);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 999px;
    transition: width var(--transition-slow);
}

.progress-bar.success {
    background: linear-gradient(90deg, var(--success) 0%, var(--success-dark) 100%);
}

.progress-bar.warning {
    background: linear-gradient(90deg, var(--warning) 0%, var(--warning-dark) 100%);
}

.progress-bar.danger {
    background: linear-gradient(90deg, var(--danger) 0%, var(--danger-dark) 100%);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
/* Display */
.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.d-none {
    display: none;
}

/* Flexbox */
.flex-row {
    flex-direction: row;
}

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

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.flex-grow {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.justify-start {
    justify-content: flex-start;
}

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

.justify-end {
    justify-content: flex-end;
}

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

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

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

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

/* Spacing */
.m-0 {
    margin: 0;
}

.m-1 {
    margin: 0.25rem;
}

.m-2 {
    margin: 0.5rem;
}

.m-3 {
    margin: 1rem;
}

.m-4 {
    margin: 1.5rem;
}

.m-5 {
    margin: 2rem;
}

.mt-0 {
    margin-top: 0;
}

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

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

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

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

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

.mb-0 {
    margin-bottom: 0;
}

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

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

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

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

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

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.p-5 {
    padding: 2rem;
}

/* Width & Height */
.w-100 {
    width: 100%;
}

.w-auto {
    width: auto;
}

.h-100 {
    height: 100%;
}

/* Border */
.border {
    border: 1px solid var(--slate-200);
}

.border-top {
    border-top: 1px solid var(--slate-200);
}

.border-bottom {
    border-bottom: 1px solid var(--slate-200);
}

.rounded {
    border-radius: var(--radius);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-full {
    border-radius: 9999px;
}

/* Background */
.bg-primary {
    background-color: var(--primary);
}

.bg-success {
    background-color: var(--success);
}

.bg-warning {
    background-color: var(--warning);
}

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

.bg-white {
    background-color: white;
}

.bg-slate-50 {
    background-color: var(--slate-50);
}

.bg-slate-100 {
    background-color: var(--slate-100);
}

/* Shadow */
.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-none {
    box-shadow: none;
}

/* Position */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease;
}

.animate-slideIn {
    animation: slideIn 0.3s ease;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   AI WIDGET STYLES
   ============================================ */
.ai-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.ai-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all var(--transition-base);
    border: none;
}

.ai-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

.ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 520px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    border: 1px solid var(--slate-200);
    overflow: hidden;
    animation: slideIn 0.2s ease;
}

.ai-chat-window.open {
    display: flex;
}

.ai-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.ai-header i {
    cursor: pointer;
}

.ai-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: var(--slate-50);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ai-message {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.5;
    animation: slideIn 0.2s ease;
}

.ai-message.bot {
    background: white;
    border: 1px solid var(--slate-200);
    color: var(--slate-800);
    align-self: flex-start;
    border-bottom-left-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.ai-message.user {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: var(--radius-sm);
}

.ai-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--slate-200);
    display: flex;
    gap: 0.5rem;
}

.ai-input input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius);
    outline: none;
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
}

.ai-input input:focus {
    border-color: var(--primary);
}

.ai-input button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}

.ai-input button:hover {
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1280px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-slow);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .content-body {
        padding: 1rem;
    }

    .top-header {
        padding: 0 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-header-actions {
        width: 100%;
    }

    .ai-chat-window {
        width: calc(100vw - 2rem);
        right: -0.5rem;
    }

    .notif-dropdown {
        width: calc(100vw - 2rem);
        right: -1rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row>* {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .content-body {
        padding: 0.75rem;
    }

    .card {
        padding: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .ai-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .ai-button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .sidebar,
    .top-header,
    .ai-widget,
    .no-print,
    .btn,
    button,
    nav,
    .main-footer {
        display: none !important;
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .content-body {
        padding: 0 !important;
        max-width: 100% !important;
    }

    body {
        background: white !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .card {
        box-shadow: none !important;
        border: none !important;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Tablet and below (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
    }

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

    .content-body {
        padding: 1.5rem;
    }
}

/* Mobile landscape and tablet portrait (max-width: 768px) */
@media (max-width: 768px) {

    /* Hide sidebar by default on mobile */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

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

    /* Adjust main wrapper */
    .main-wrapper {
        margin-left: 0;
    }

    /* Show menu toggle */
    .menu-toggle {
        display: block !important;
    }

    /* Header adjustments */
    .top-header {
        padding: 0 1rem;
    }

    .header-title {
        font-size: 1rem;
    }

    /* User info compact */
    .user-details {
        display: none;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
    }

    /* Grids become single column */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Page header stacks */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .page-header-actions {
        width: 100%;
    }

    .page-header-actions .btn {
        flex: 1;
        justify-content: center;
    }

    /* Content padding */
    .content-body {
        padding: 1rem;
    }

    /* Stat cards */
    .stat-card {
        padding: 1.25rem;
    }

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

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    /* Cards */
    .card {
        padding: 1.25rem;
    }

    /* Tables horizontal scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    /* Buttons full width */
    .btn-lg {
        width: 100%;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
    }

    .form-row>* {
        width: 100%;
    }

    /* Notification dropdown */
    .notif-dropdown {
        right: -50px;
        width: 300px;
    }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {

    /* Even smaller text */
    body {
        font-size: 0.875rem;
    }

    .header-title {
        font-size: 0.9rem;
    }

    /* Smaller padding */
    .content-body {
        padding: 0.75rem;
    }

    .card {
        padding: 1rem;
        border-radius: var(--radius-sm);
    }

    /* Stat cards compact */
    .stat-value {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }

    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Page header */
    .page-header-content h1 {
        font-size: 1.25rem;
    }

    .page-header-content h1 i {
        font-size: 1.1rem;
    }

    /* Notification */
    .notif-dropdown {
        position: fixed;
        left: 10px;
        right: 10px;
        width: auto;
    }

    /* Badges */
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    /* Tables */
    th,
    td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Touch-friendly hover states */
@media (hover: none) {
    .card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .sidebar-nav a:hover {
        transform: none;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .sidebar-header {
        height: 50px;
    }

    .top-header {
        height: 50px;
    }

    .sidebar-nav a {
        padding: 0.625rem 1rem;
    }
}