/*
|--------------------------------------------------------------------------
| Nabil Pump Admin Panel - Custom Styles
|--------------------------------------------------------------------------
| A professional, modern admin panel design
| Using Bootstrap 5 with custom enhancements
|--------------------------------------------------------------------------
*/

/* ============================================
   CSS Variables / Custom Properties
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-dark: #3730a3;

    /* Secondary Colors */
    --secondary: #64748b;
    --secondary-hover: #475569;

    /* Accent Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #0ea5e9;
    --info-light: #e0f2fe;

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

    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --sidebar-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --sidebar-text: #94a3b8;
    --sidebar-text-hover: #ffffff;
    --sidebar-active-bg: rgba(79, 70, 229, 0.15);
    --sidebar-active-border: #4f46e5;

    /* Header */
    --header-height: 70px;
    --header-bg: #ffffff;

    /* Footer */
    --footer-height: 50px;

    /* 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 -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen, Ubuntu, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ============================================
   Admin Wrapper & Layout
   ============================================ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition-slow);
}

.content-wrapper {
    flex: 1;
    padding: 24px;
    padding-top: calc(var(--header-height) + 24px);
}

/* ============================================
   Sidebar Styles
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all var(--transition-slow);
    overflow: hidden;
}

/* Sidebar Logo */
.sidebar-logo {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--sidebar-text);
    font-weight: 400;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

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

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    padding: 0 24px;
    margin-bottom: 8px;
}

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

.nav-item {
    margin: 2px 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 16px;
    color: var(--sidebar-text);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    position: relative;
    font-weight: 500;
}

.nav-link i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.nav-link:hover {
    color: var(--sidebar-text-hover);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--sidebar-text-hover);
    background: var(--sidebar-active-bg);
}

.nav-link.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--sidebar-active-border);
    border-radius: 0 4px 4px 0;
}

.nav-arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.nav-badge {
    margin-left: auto;
    font-size: 0.6875rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.storage-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: var(--radius);
}

.storage-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--sidebar-text);
    font-size: 0.8125rem;
    margin-bottom: 12px;
}

.storage-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    margin-bottom: 8px;
}

.storage-progress .progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 999px;
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Header Styles
   ============================================ */
.top-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 998;
    border-bottom: 1px solid var(--gray-200);
    transition: left var(--transition-slow);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle {
    padding: 8px;
    color: var(--gray-600);
}

.page-title h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.025em;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-date {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-action-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    transition: all var(--transition-fast);
}

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

.header-action-btn i {
    font-size: 1.125rem;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--header-bg);
}

.btn-quick-add {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-weight: 500;
    border-radius: var(--radius);
}

/* Notification Dropdown */
.notification-dropdown {
    width: 360px;
    padding: 0;
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.notification-dropdown .dropdown-header {
    padding: 16px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

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

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: var(--primary-light);
}

.notification-item.unread:hover {
    background: #e0e7ff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin: 0;
    line-height: 1.4;
}

.notification-time {
    color: var(--gray-500);
    font-size: 0.75rem;
}

.notification-dropdown .dropdown-footer {
    padding: 12px 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* User Dropdown */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    border: none;
    transition: all var(--transition-fast);
}

.user-menu-btn:hover {
    background: var(--gray-200);
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.2;
}

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

.user-dropdown-menu {
    min-width: 240px;
    padding: 0;
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.user-dropdown-menu .dropdown-header {
    padding: 16px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.user-dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.user-dropdown-menu .dropdown-item:hover {
    background: var(--gray-100);
}

/* Search Modal */
.search-modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.search-modal-header i {
    font-size: 1.25rem;
    color: var(--gray-500);
}

.search-input {
    border: none;
    background: transparent;
    font-size: 1.125rem;
    padding: 0;
    box-shadow: none !important;
}

.search-modal-body {
    padding: 24px;
}

.search-section {
    margin-bottom: 24px;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.search-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.search-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.search-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.search-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.search-recent-item:hover {
    color: var(--primary);
}

/* ============================================
   Footer Styles
   ============================================ */
.main-footer {
    height: var(--footer-height);
    background: var(--header-bg);
    border-top: 1px solid var(--gray-200);
    padding: 0 24px;
    display: flex;
    align-items: center;
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.footer-copyright strong {
    color: var(--gray-700);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-link {
    font-size: 0.8125rem;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--gray-500);
}

.breadcrumb-item.active {
    color: var(--gray-700);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-400);
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}

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

.card-header {
    padding: 20px 24px;
    background: transparent;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   Stats Cards
   ============================================ */
.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

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

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

.stat-card.stat-success::before {
    background: var(--success);
}
.stat-card.stat-warning::before {
    background: var(--warning);
}
.stat-card.stat-danger::before {
    background: var(--danger);
}
.stat-card.stat-info::before {
    background: var(--info);
}

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.25rem;
}

.stat-card.stat-success .stat-card-icon {
    background: var(--success-light);
    color: var(--success);
}
.stat-card.stat-warning .stat-card-icon {
    background: var(--warning-light);
    color: var(--warning);
}
.stat-card.stat-danger .stat-card-icon {
    background: var(--danger-light);
    color: var(--danger);
}
.stat-card.stat-info .stat-card-icon {
    background: var(--info-light);
    color: var(--info);
}

.stat-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

.stat-card-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 8px;
}

.stat-card-change.positive {
    color: var(--success);
}
.stat-card-change.negative {
    color: var(--danger);
}

/* ============================================
   Tables
   ============================================ */
.table-wrapper {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.table {
    margin: 0;
}

.table thead th {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    padding: 14px 16px;
}

.table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.875rem;
    color: var(--gray-700);
}

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

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

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

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

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

.btn-light {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-700);
}

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

/* ============================================
   Forms
   ============================================ */
.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-control,
.form-select {
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    padding: 10px 14px;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

/* ============================================
   Badges
   ============================================ */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
}

.badge-success {
    background: var(--success-light) !important;
    color: #065f46 !important;
}

.badge-warning {
    background: var(--warning-light) !important;
    color: #92400e !important;
}

.badge-danger {
    background: var(--danger-light) !important;
    color: #991b1b !important;
}

.badge-info {
    background: var(--info-light) !important;
    color: #0369a1 !important;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border-radius: var(--radius);
    border: none;
    padding: 16px 20px;
    font-size: 0.875rem;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
}

.alert-info {
    background: var(--info-light);
    color: #0369a1;
}

/* ============================================
   Nozzle Grid (For Sales)
   ============================================ */
.nozzle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.nozzle-card {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: var(--radius-md);
    padding: 24px;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.nozzle-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%
    );
}

.nozzle-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.35);
}

.nozzle-card.diesel {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.nozzle-card.diesel:hover {
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.35);
}

.nozzle-card.petrol {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.nozzle-card.petrol:hover {
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.35);
}

.nozzle-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
}

.nozzle-status {
    font-size: 0.8125rem;
    opacity: 0.9;
    position: relative;
}

.nozzle-fuel {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 16px;
    position: relative;
}

.nozzle-rate {
    font-size: 0.875rem;
    opacity: 0.85;
    margin-top: 4px;
    position: relative;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1199.98px) {
    :root {
        --sidebar-width: 260px;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

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

    .top-header {
        left: 0;
    }

    .content-wrapper {
        padding: 16px;
        padding-top: calc(var(--header-height) + 16px);
    }
}

@media (max-width: 767.98px) {
    :root {
        --header-height: 60px;
    }

    .page-title h1 {
        font-size: 1.125rem;
    }

    .page-subtitle {
        display: none;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

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

    .footer-right {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .nozzle-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-primary {
    color: var(--primary) !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-muted {
    color: var(--gray-500) !important;
}

.bg-primary-light {
    background: var(--primary-light) !important;
}
.bg-success-light {
    background: var(--success-light) !important;
}
.bg-warning-light {
    background: var(--warning-light) !important;
}
.bg-danger-light {
    background: var(--danger-light) !important;
}
.bg-info-light {
    background: var(--info-light) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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