/* ============================================
   Pharma Management System - Custom Styles
   Professional Design System
   ============================================ */

:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #10b981;
    
    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Neutral Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    
    /* Sidebar - Amazon WorkMail Style */
    --app-strip-width: 50px;
    --app-strip-bg: #232f3e;
    --sidebar-width: 280px;
    --sidebar-bg: #2d3d4d;
    --sidebar-active: #151d24;
    --sidebar-active-border: #43a047;
    --green-header: #388e3c;
    --sidebar-hover: rgba(255, 255, 255, 0.08);
    --sidebar-text: #dedede;
    --sidebar-text-muted: rgba(255, 255, 255, 0.6);
    --sidebar-border: rgba(255, 255, 255, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* ============================================
   Global Styles
   ============================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Sidebar - Amazon WorkMail Style
   ============================================ */

/* App Strip (Far Left) */
.app-strip {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--app-strip-width);
    height: 100vh;
    background-color: var(--app-strip-bg);
    flex-shrink: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
}

.app-icon {
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.8;
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast);
}

.app-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.app-icon.active {
    background-color: var(--green-header);
    opacity: 1;
}

.app-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

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

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* Main Sidebar Container - Amazon WorkMail Style */
.sidebar {
    position: fixed;
    top: 0;
    left: var(--app-strip-width);
    width: var(--sidebar-width);
    height: 100vh;
    max-height: 100vh;
    background-color: var(--sidebar-bg);
    background-image:
        linear-gradient(to bottom, var(--sidebar-bg) 60%, transparent 100%),
        repeating-linear-gradient(135deg, #263442, #263442 20px, #2a3949 20px, #2a3949 40px);
    background-size: 100% 100%, 100% 300px;
    background-position: top left, bottom left;
    background-repeat: no-repeat;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width var(--transition-base), transform var(--transition-base), opacity var(--transition-base);
}

/* Collapsed Sidebar State */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .nav-section-header span,
.sidebar.collapsed .sidebar-footer .nav-link span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.3s ease-in-out, width 0.3s ease-in-out, margin 0.3s ease-in-out, padding 0.3s ease-in-out;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 7px 12px;
}

.sidebar.collapsed .nav-section-header {
    justify-content: center;
    padding: 0.625rem 0.5rem;
    gap: 0;
}

.sidebar.collapsed .nav-section-header > i:first-of-type {
    margin: 0 auto;
}

.sidebar.collapsed .nav-section-header span {
    display: none;
}

.sidebar.collapsed .section-toggle-icon {
    display: none;
}

.sidebar.collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
    transition: transform 0.3s ease-in-out;
}

/* Smooth toggle button animation */
.sidebar-toggle-btn i {
    transition: transform 0.3s ease-in-out;
}

/* Auto-hide Sidebar (DISABLED - sidebar stays expanded by default) */
/* Auto-hide functionality has been disabled - sidebar only collapses when user clicks toggle */
.sidebar.auto-hide {
    opacity: 1; /* Keep full opacity - no auto-hide */
}

.sidebar.auto-hide:hover {
    opacity: 1;
}

.sidebar.auto-hide.collapsed {
    opacity: 1; /* Keep full opacity even when collapsed */
}

.sidebar.auto-hide.collapsed:hover {
    opacity: 1;
}

/* Sidebar Header (Logo) - Amazon WorkMail Style */
.sidebar-header {
    padding: 1rem;
    background-color: var(--green-header);
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sidebar-text);
    text-decoration: none;
}

.sidebar-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: block;
}

.sidebar-logo-fallback {
    display: none;
    font-size: 1.875rem;
}

.sidebar-header .logo i {
    font-size: 1.875rem;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header .logo span {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Sidebar Toggle Button (Collapse/Expand) */
.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sidebar-toggle-btn i {
    transition: transform var(--transition-base);
}

.sidebar-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-brand {
    transition: opacity var(--transition-base);
    flex: 1;
    min-width: 0;
}

.sidebar-brand-text {
    transition: opacity var(--transition-base);
    display: inline-block;
}

/* Main Pharma Section - Amazon WorkMail Style */
.my-pharma-section {
    background-color: #232f3e;
    color: #fff;
    font-size: 0.85rem;
    border-bottom: 1px solid #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    z-index: 1;
}

/* Sidebar Navigation - Amazon WorkMail Style */
.sidebar-nav {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
    min-height: 0;
    max-height: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Ensure scrolling works in flex containers */
    display: flex;
    flex-direction: column;
}

/* Navigation Item Container */
.nav-item {
    margin-bottom: 0;
    width: 100%;
}

/* Navigation Link - Amazon WorkMail Style */
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 7px 16px;
    color: var(--sidebar-text) !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    transition: all 0.3s ease-in-out;
    position: relative;
    white-space: nowrap;
    border-left: 4px solid transparent;
    /* Better touch targets for mobile */
    min-height: 44px;
    /* Accessibility improvements */
    outline: none;
}

.sidebar .nav-link:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.8);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Icon Styling - Fixed Width for Alignment */
.sidebar-nav .nav-link i,
.sidebar .nav-link i {
    font-size: 1.125rem;
    width: 24px;
    min-width: 24px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Ensure Font Awesome icons are visible */
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent icon clipping */
    overflow: visible;
    position: relative;
}

/* Ensure all Font Awesome icons are properly rendered */
/* Ensure all Font Awesome and Bootstrap icons are properly rendered */
.sidebar i[class^="fas"],
.sidebar i[class^="far"],
.sidebar i[class^="fab"],
.sidebar i[class^="bi"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: auto;
    /* Ensure icons are visible */
    visibility: visible;
    opacity: 1;
}

/* For Bootstrap Icons specifically */
.sidebar i[class^="bi"] {
    font-family: "bootstrap-icons" !important;
    font-weight: normal !important; /* BI doesn't use 900 weight */
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure icons have proper spacing and don't collapse */
.sidebar .nav-link i,
.sidebar .nav-section-header i,
.sidebar-header i {
    min-width: 24px;
    min-height: 24px;
    line-height: 1;
}

/* Fix icon rendering issues - ensure icons are loaded */
@supports (font-variation-settings: normal) {
    .sidebar i[class^="fas"],
    .sidebar i[class^="far"],
    .sidebar i[class^="fab"],
    .sidebar i[class^="bi"] {
        font-variation-settings: normal;
    }
}

/* Fallback for icons that might not load - show placeholder */
.sidebar i[class^="fas"]:empty::before,
.sidebar i[class^="far"]:empty::before,
.sidebar i[class^="fab"]:empty::before,
.sidebar i[class^="bi"]:empty::before {
    content: "■";
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Ensure icons are visible even if Font Awesome has loading issues */
body.fa-loading-issue .sidebar i[class^="fas"],
body.fa-loading-issue .sidebar i[class^="far"],
body.fa-loading-issue .sidebar i[class^="fab"],
body.fa-loading-issue .sidebar i[class^="bi"] {
    min-width: 20px;
    min-height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Improve icon visibility on hover */
.sidebar .nav-link:hover i,
.sidebar .nav-section-header:hover i {
    transform: scale(1.1);
    transition: transform var(--transition-fast);
}

.sidebar .nav-link:active i,
.sidebar .nav-section-header:active i {
    transform: scale(0.95);
}

/* Text Span */
.sidebar-nav .nav-link span,
.sidebar .nav-link span {
    flex: 1;
    line-height: 1.5;
}

/* Hover State - Amazon WorkMail Style */
.sidebar-nav .nav-link:hover:not(.active),
.sidebar .nav-link:hover:not(.active) {
    background-color: var(--sidebar-hover);
    color: #fff !important;
}

/* Active State - Amazon WorkMail Style */
.sidebar-nav .nav-link.active,
.sidebar .nav-link.active {
    background-color: var(--sidebar-active);
    border-left: 4px solid var(--sidebar-active-border);
    color: #fff !important;
    font-weight: 700;
}

/* Focus State for Accessibility */
.sidebar .nav-link:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.8);
    outline-offset: 2px;
}

/* Logout Link Special Styling */
.sidebar .nav-link-logout {
    color: var(--sidebar-text-muted);
}

.sidebar .nav-link-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    transform: translateX(4px);
}

.sidebar .nav-link-logout.active {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Navigation Section */
.nav-section {
    margin: 0.5rem 0;
    flex-shrink: 0;
    width: 100%;
}

.nav-section:first-of-type {
    margin-top: 0.25rem;
}

/* Section Header - Amazon WorkMail Style */
.nav-section-header {
    padding: 0.625rem 1rem;
    margin: 0.5rem 0.25rem 0.25rem;
    color: var(--sidebar-text-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.3s ease-in-out;
    justify-content: space-between;
    /* Better touch targets */
    min-height: 44px;
    /* Accessibility */
    outline: none;
}

.nav-section-header:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.8);
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-section-header:hover {
    background: var(--sidebar-hover);
    color: rgba(255, 255, 255, 0.8);
}

/* Section Header Icon - First icon (section icon) */
.nav-section-header > i:first-of-type {
    font-size: 0.875rem;
    width: 20px;
    min-width: 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sidebar-text-muted);
    transition: color var(--transition-fast);
}

.nav-section-header:hover > i:first-of-type {
    color: rgba(255, 255, 255, 0.8);
}

/* Section Header Label Text */
.nav-section-header span {
    display: inline-block;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

/* Section Toggle Icon (Chevron) */
.section-toggle-icon {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
    color: rgba(255, 255, 255, 0.4);
    margin-left: auto;
    flex-shrink: 0;
    width: 16px;
    min-width: 16px;
    text-align: center;
}

.nav-section.collapsed .section-toggle-icon {
    transform: rotate(-90deg);
}

.nav-section-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out, margin 0.3s ease-in-out, padding 0.3s ease-in-out;
    opacity: 1;
}

.nav-section.collapsed .nav-section-content {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* No Results Message */
.sidebar-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.no-results-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.no-results-content p {
    font-size: 0.875rem;
    margin: 0;
}

/* Sidebar Footer - Amazon WorkMail Style */
.sidebar-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background-color: var(--sidebar-bg);
}

/* Sidebar Scrollbar Styling - Consolidated */
.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

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

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background var(--transition-fast);
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Body Scroll Lock (Mobile) */
body.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Main Content Adjustment for App Strip */
.main-content {
    margin-left: calc(var(--app-strip-width) + var(--sidebar-width));
    width: calc(100% - var(--app-strip-width) - var(--sidebar-width));
    max-width: calc(100% - var(--app-strip-width) - var(--sidebar-width));
    transition: margin-left var(--transition-base), width var(--transition-base), max-width var(--transition-base);
    min-height: 100vh;
    background-color: var(--bg-secondary);
}

/* Main Content Adjustment when Sidebar is Collapsed */
.sidebar.collapsed ~ .main-content {
    margin-left: calc(var(--app-strip-width) + 70px);
    width: calc(100% - var(--app-strip-width) - 70px);
    max-width: calc(100% - var(--app-strip-width) - 70px);
}

/* Ensure navbar/toolbar also adjusts */
.sidebar.collapsed ~ .main-content .navbar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure page content fits properly */
.sidebar.collapsed ~ .main-content .page-content-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    padding: 0;
}

/* Ensure all containers within main content adjust */
.sidebar.collapsed ~ .main-content .container,
.sidebar.collapsed ~ .main-content .container-fluid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Ensure tables and other content elements fit */
.sidebar.collapsed ~ .main-content table,
.sidebar.collapsed ~ .main-content .table-responsive {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure cards and other content containers fit */
.sidebar.collapsed ~ .main-content .card,
.sidebar.collapsed ~ .main-content .card-body {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ensure collapsed sidebar doesn't break on mobile */
@media (max-width: 991.98px) {
    .sidebar.collapsed {
        width: var(--sidebar-width);
    }
    
    .sidebar.collapsed ~ .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .sidebar.collapsed .sidebar-brand-text,
    .sidebar.collapsed .nav-link span,
    .sidebar.collapsed .nav-section-header span {
        opacity: 1;
        width: auto;
        overflow: visible;
        display: inline-block;
    }
    
    .sidebar.collapsed .nav-link {
        justify-content: flex-start;
        padding: 7px 16px;
    }
    
    .sidebar.collapsed .nav-section-header {
        justify-content: space-between;
        padding: 0.625rem 1rem;
        gap: 0.625rem;
    }
    
    .sidebar.collapsed .nav-section-header > i:first-of-type {
        margin: 0;
    }
    
    .sidebar.collapsed .section-toggle-icon {
        display: block;
    }
}

/* Tooltip for collapsed sidebar items */
.sidebar.collapsed .nav-link,
.sidebar.collapsed .nav-section-header {
    position: relative;
}

.sidebar.collapsed .nav-link::after,
.sidebar.collapsed .nav-section-header::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    /* Arrow pointing to the left */
    border-left: 4px solid transparent;
    border-right: 4px solid rgba(0, 0, 0, 0.95);
    margin-left: 4px;
}

.sidebar.collapsed .nav-link::after {
    border-right: 4px solid rgba(0, 0, 0, 0.95);
    border-left: none;
    margin-left: 0;
    margin-right: 4px;
}

.sidebar.collapsed .nav-link:hover::after,
.sidebar.collapsed .nav-section-header:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}

/* Ensure tooltips don't overflow on small screens */
@media (max-width: 991.98px) {
    .sidebar.collapsed .nav-link::after,
    .sidebar.collapsed .nav-section-header::after {
        display: none;
    }
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .app-strip {
        transform: translateX(-100%);
    }
    
    .sidebar {
        left: 0;
        transform: translateX(-100%);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .navbar {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-content-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Tablet Responsive */
@media (min-width: 992px) and (max-width: 1199.98px) {
    :root {
        --sidebar-width: 260px;
    }
    
    /* Adjust main content for tablet */
    .main-content {
        width: calc(100% - var(--app-strip-width) - var(--sidebar-width));
        max-width: calc(100% - var(--app-strip-width) - var(--sidebar-width));
    }
    
    .sidebar.collapsed ~ .main-content {
        width: calc(100% - var(--app-strip-width) - 70px);
        max-width: calc(100% - var(--app-strip-width) - 70px);
    }
    
    /* Ensure navbar and content fit on tablet */
    .sidebar.collapsed ~ .main-content .navbar,
    .sidebar.collapsed ~ .main-content .page-content-wrapper,
    .sidebar.collapsed ~ .main-content .container,
    .sidebar.collapsed ~ .main-content .container-fluid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    :root {
        --sidebar-width: 100%;
    }
    
    /* Ensure main content is full width on small mobile */
    .main-content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    
    .sidebar.collapsed ~ .main-content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    
    /* Ensure all content fits on small screens */
    .main-content .navbar,
    .main-content .page-content-wrapper,
    .main-content .container,
    .main-content .container-fluid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ============================================
   Main Content Area
   ============================================ */

/* Main content styling is defined above with proper transitions */

.navbar {
    background-color: var(--green-header);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: 56px;
    box-sizing: border-box;
    transition: width var(--transition-base), max-width var(--transition-base);
    display: flex;
    align-items: center;
}

.navbar .container-fluid {
    padding-left: 0;
    padding-right: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.sidebar-toggle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.navbar .btn-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.navbar .btn-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ============================================
   Navbar Enhancements - Search, Icons, Notifications
   ============================================ */

/* Search Bar */
.navbar-search-wrapper {
    flex: 1;
    max-width: 500px;
    margin: 0 1rem;
    position: relative;
}

.navbar-search {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-search .form-control {
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: none;
    padding-left: 0;
    padding-right: 1rem;
    background-color: #ffffff;
    font-size: 0.875rem;
    border-radius: 0;
}

.navbar-search .form-control:focus {
    box-shadow: none;
    border: none;
    background-color: #ffffff;
}

.navbar-search .input-group-text {
    border-right: none;
    border-top: none;
    border-bottom: none;
    border-left: none;
    padding-right: 0.5rem;
    padding-left: 1rem;
    background-color: #ffffff;
    border-radius: 0;
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
    margin-top: 0.5rem;
    min-width: 100%;
}

.search-results-section {
    padding: 0.5rem 0;
}

.search-results-section-header {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    align-items: center;
    letter-spacing: 0.5px;
}

.search-result-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid var(--bg-secondary);
}

.search-result-item:hover {
    background-color: var(--bg-secondary);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item i {
    font-size: 1.25rem;
    color: var(--text-secondary);
    width: 24px;
    text-align: center;
}

.search-result-item-content {
    flex: 1;
}

.search-result-item-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.search-result-item-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.search-results-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Navbar Icons */
.navbar-icon-wrapper {
    position: relative;
}

.navbar-icon-btn {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.navbar-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.navbar-icon-btn i {
    font-size: 1.25rem;
}

/* Notifications Badge */
#notifications-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notifications Dropdown */
.notifications-dropdown {
    max-height: 500px;
    overflow-y: auto;
}

.notifications-content {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bg-secondary);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.notification-item:hover {
    background-color: var(--bg-secondary);
}

.notification-item.unread {
    background-color: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--primary-color);
}

.notification-item-title {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.notification-item-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.notification-item-time {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Navbar User */
.navbar-user-wrapper {
    margin-left: 0.5rem;
}

.navbar-user-btn {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    text-decoration: none;
    border: none;
    background: transparent;
}

.navbar-user-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

.navbar-user-btn::after {
    margin-left: 0.5rem;
}

.navbar-user-name {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Mobile Responsive Navbar */
@media (max-width: 991.98px) {
    .navbar-search-wrapper {
        display: none;
    }
    
    .navbar-user-name {
        display: none !important;
    }
    
    .navbar-icon-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 0.5rem 0.75rem;
    }
    
    .navbar .container-fluid {
        gap: 0.5rem;
    }
    
    .navbar-icon-btn {
        padding: 0.375rem;
        font-size: 1.125rem;
    }
}

.navbar-text {
    color: #ffffff;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

.navbar-text i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

.navbar-text strong {
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

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

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body canvas {
    max-height: 400px;
    width: 100% !important;
    height: auto !important;
}

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

/* ============================================
   Buttons
   ============================================ */

.btn {
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all var(--transition-base);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
    color: #ffffff;
    border: none;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, var(--success-color) 100%);
}

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

/* Card empty state */
.card-body .text-center {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #f87171 100%);
    color: #ffffff;
}

.btn-secondary {
    background: var(--secondary-color);
    color: #ffffff;
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* ============================================
   Tables
   ============================================ */

.table {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

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

.table tbody tr {
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: #f8fafc;
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* ============================================
   Badges
   ============================================ */

.badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #f87171 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fbbf24 100%) !important;
    color: #ffffff !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
}

/* ============================================
   Forms
   ============================================ */

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control,
.form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    transition: all var(--transition-base);
    font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    border: none;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all var(--transition-base);
}

.alert:last-child {
    margin-bottom: 0;
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-content {
    flex: 1;
}

.alert-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.alert-clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.alert-clickable::after {
    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;
}

.alert-clickable:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.alert-clickable:hover::after {
    left: 100%;
}

.alert-warning.alert-clickable:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: var(--warning-color);
}

.alert-danger.alert-clickable:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left-color: var(--danger-color);
}

.alert-info.alert-clickable:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left-color: var(--info-color);
}

.alert-secondary.alert-clickable:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-left-color: var(--secondary-color);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

/* ============================================
   Page Headers
   ============================================ */

/* Page Content Wrapper */
.page-content-wrapper {
    padding: 1.5rem;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    transition: width var(--transition-base), max-width var(--transition-base);
}

.flash-messages-container {
    padding: 1.5rem 1.5rem 0;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-actions .btn {
    white-space: nowrap;
}

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

.page-header h1 i {
    color: var(--primary-color);
}

/* ============================================
   Stat Cards
   ============================================ */

.stat-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

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

/* Empty state for stat cards */
.stat-card.empty-state {
    opacity: 0.85;
    border-style: dashed;
}

.stat-card.empty-state:hover {
    opacity: 1;
}

.stat-card .stat-value small {
    display: block;
    margin-top: 0.25rem;
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary-color);
    flex-shrink: 0;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ============================================
   Loading States
   ============================================ */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

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

.spinner-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: 9999;
}

.spinner-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   Animations
   ============================================ */

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

.fade-in {
    animation: fadeIn var(--transition-base);
}

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

.slide-in {
    animation: slideIn var(--transition-base);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .page-content-wrapper {
        padding: 1rem;
    }
    
    .flash-messages-container {
        padding: 1rem 1rem 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: 1050;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    /* Overlay for mobile sidebar */
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        animation: fadeIn 0.3s ease;
    }
    
    .page-header {
        margin-bottom: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
}

/* Tablet adjustments */
@media (min-width: 992px) and (max-width: 1199.98px) {
    :root {
        --sidebar-width: 260px;
    }
}

/* Small screens */
@media (max-width: 575.98px) {
    :root {
        --sidebar-width: 100%;
    }
    
    .sidebar .logo {
        padding: 1rem;
        font-size: 1.25rem;
    }
    
    .sidebar .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   Bootstrap Grid Enhancements
   ============================================ */

.row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Ensure proper spacing for stat cards */
.row.mb-4 {
    margin-bottom: 1.5rem !important;
}

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

/* Fix for empty state messages */
.text-muted {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--primary-light)) border-box;
}

/* ============================================
   Subscription Plans
   ============================================ */

.plan-card {
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.plan-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 0.25rem 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: var(--shadow-md);
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.plan-price small {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ============================================
   Payment Gateway Cards
   ============================================ */

.gateway-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    cursor: pointer;
}

.gateway-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.gateway-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

/* ============================================
   DataTables Customization
   ============================================ */

.dataTables_wrapper {
    padding: 1rem 0;
}

.dataTables_filter input {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
}

.dataTables_length select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin: 0 0.5rem;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* ============================================
   Enhanced Dashboard Styles
   ============================================ */

.dashboard-wrapper {
    padding: 0;
    max-width: 100%;
}

.page-content-wrapper {
    padding: 1.5rem;
}

/* Dashboard Header - Matching Sidebar Theme */
.dashboard-header {
    background: transparent;
    border-radius: 0;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    position: relative;
    overflow: visible;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-header::before {
    display: none;
}

.dashboard-header::after {
    display: none;
}

.dashboard-header .header-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.dashboard-header .quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.dashboard-title i {
    font-size: 2.5rem;
    color: var(--green-header);
    opacity: 1;
}

.dashboard-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 1rem;
}

.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: none;
    border: 1px solid;
    cursor: pointer;
}

.btn-action-primary {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: var(--green-header);
    border: 1px solid var(--green-header);
}

.btn-action-primary:hover {
    background: var(--green-header);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.3);
    color: white;
    text-decoration: none;
}

.btn-action-success {
    background: transparent;
    color: var(--green-header);
    border: 1px solid var(--green-header);
}

.btn-action-success:hover {
    background: var(--green-header);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.3);
    color: white;
    text-decoration: none;
}

/* Enhanced Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    z-index: 1;
}

.stat-card-primary::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.stat-card-success::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.stat-card-warning::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.stat-card-info::before {
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    opacity: 0.05;
    background: radial-gradient(circle, currentColor 0%, transparent 70%);
    pointer-events: none;
}

.stat-card-primary .stat-card-background {
    color: #3b82f6;
}

.stat-card-success .stat-card-background {
    color: #10b981;
}

.stat-card-warning .stat-card-background {
    color: #f59e0b;
}

.stat-card-info .stat-card-background {
    color: #06b6d4;
}

.stat-card-content {
    padding: 1.75rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stat-icon-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-icon-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
    color: #3b82f6;
}

.stat-icon-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
    color: #10b981;
}

.stat-icon-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: #f59e0b;
}

.stat-icon-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
    color: #06b6d4;
}

.stat-trend {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.neutral {
    color: var(--text-secondary);
}

.stat-change i {
    font-size: 1rem;
}

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

@media (max-width: 992px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

/* Chart Section */
.chart-section {
    min-width: 0;
}

.chart-card {
    height: 100%;
}

.card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: white;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

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

.header-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.header-icon-alert {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    color: var(--warning-color);
}

.header-icon-trophy {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(252, 211, 77, 0.1) 100%);
    color: #fbbf24;
}

.header-icon-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%);
    color: var(--danger-color);
}

.card-title-modern {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

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

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.btn-link-modern:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

.card-body-modern {
    padding: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    overflow: hidden;
    height: 100%;
}

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

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
}

.chart-container canvas {
    max-height: 100% !important;
}

/* Alerts Section */
.alerts-section {
    min-width: 0;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    background: white;
}

.alert-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.alert-item-warning {
    border-left: 4px solid var(--warning-color);
}

.alert-item-warning:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.alert-item-danger {
    border-left: 4px solid var(--danger-color);
}

.alert-item-danger:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.alert-item-info {
    border-left: 4px solid var(--info-color);
}

.alert-item-info:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.alert-item-secondary {
    border-left: 4px solid var(--secondary-color);
}

.alert-item-secondary:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.alert-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-item-warning .alert-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.alert-item-danger .alert-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.alert-item-info .alert-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.alert-item-secondary .alert-icon {
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary-color);
}

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

.alert-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.alert-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.alert-count {
    font-weight: 700;
    color: var(--text-primary);
}

.alert-amount {
    font-weight: 700;
    color: var(--text-primary);
}

.alert-action {
    color: var(--text-secondary);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.alert-item:hover .alert-action {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* Table Modern */
.table-modern {
    overflow-x: auto;
}

.table-modern table {
    width: 100%;
    border-collapse: collapse;
}

.table-modern thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.table-modern th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.table-modern tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.table-modern tbody tr:hover {
    background: var(--bg-secondary);
}

.table-modern td {
    padding: 1rem;
    vertical-align: middle;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
}

.rank-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
}

.rank-2 {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
}

.rank-3 {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.rank-4,
.rank-5 {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
}

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

.medicine-info i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.quantity-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
}

.stock-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
}

.stock-low {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%);
    color: var(--danger-color);
}

.reorder-level {
    color: var(--text-secondary);
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-critical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(248, 113, 113, 0.1) 100%);
    color: var(--danger-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.empty-state-success {
    color: var(--success-color);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1.5rem;
    }
    
    .dashboard-bottom-actions {
        padding: 1rem;
    }
    
    .bottom-actions-buttons {
        grid-template-columns: 1fr;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* ============================================
   Dashboard Bottom Quick Actions
   ============================================ */

.dashboard-bottom-actions {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.bottom-actions-content {
    max-width: 1400px;
    margin: 0 auto;
}

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

.bottom-actions-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.bottom-actions-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9375rem;
}

.bottom-actions-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.btn-bottom-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid var(--border-color);
    background: white;
    position: relative;
    overflow: hidden;
}

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

.btn-bottom-action:hover::before {
    left: 100%;
}

.btn-bottom-action:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.btn-bottom-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.btn-bottom-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.btn-bottom-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.btn-bottom-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
}

.btn-bottom-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.btn-bottom-primary {
    border-color: rgba(37, 99, 235, 0.2);
}

.btn-bottom-primary:hover {
    border-color: #2563eb;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.btn-bottom-primary .btn-bottom-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #2563eb;
}

.btn-bottom-primary:hover .btn-bottom-icon {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    transform: scale(1.1);
}

.btn-bottom-primary .btn-bottom-arrow {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.btn-bottom-primary:hover .btn-bottom-arrow {
    background: #2563eb;
    color: white;
    transform: translateX(4px);
}

.btn-bottom-success {
    border-color: rgba(16, 185, 129, 0.2);
}

.btn-bottom-success:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.btn-bottom-success .btn-bottom-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #10b981;
}

.btn-bottom-success:hover .btn-bottom-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    transform: scale(1.1);
}

.btn-bottom-success .btn-bottom-arrow {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.btn-bottom-success:hover .btn-bottom-arrow {
    background: #10b981;
    color: white;
    transform: translateX(4px);
}

.btn-bottom-info {
    border-color: rgba(59, 130, 246, 0.2);
}

.btn-bottom-info:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.btn-bottom-info .btn-bottom-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    color: #3b82f6;
}

.btn-bottom-info:hover .btn-bottom-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    transform: scale(1.1);
}

.btn-bottom-info .btn-bottom-arrow {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.btn-bottom-info:hover .btn-bottom-arrow {
    background: #3b82f6;
    color: white;
    transform: translateX(4px);
}

.btn-bottom-warning {
    border-color: rgba(245, 158, 11, 0.2);
}

.btn-bottom-warning:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
}

.btn-bottom-warning .btn-bottom-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    color: #f59e0b;
}

.btn-bottom-warning:hover .btn-bottom-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    transform: scale(1.1);
}

.btn-bottom-warning .btn-bottom-arrow {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.btn-bottom-warning:hover .btn-bottom-arrow {
    background: #f59e0b;
    color: white;
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-bottom-actions {
        padding: 1.5rem;
    }
    
    .bottom-actions-buttons {
        grid-template-columns: 1fr;
    }
    
    .btn-bottom-action {
        padding: 1.25rem;
    }
    
    .btn-bottom-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* ============================================
   Point of Sale (POS) Styles
   ============================================ */

.pos-wrapper {
    min-height: calc(100vh - 56px);
    background: var(--bg-secondary);
    padding: 0;
}

/* POS Header - Matching Sidebar Theme */
.pos-header {
    background: transparent;
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    padding-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    position: sticky;
    top: 56px;
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.pos-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
}

.pos-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green-header);
    line-height: 1.2;
}

.pos-title i {
    font-size: 1.5rem;
}

.pos-subtitle {
    margin: 0.25rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.8125rem;
    font-weight: 400;
}

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

.btn-pos-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--green-header);
    border: 1px solid var(--green-header);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-pos-action:hover {
    background: var(--green-header);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.3);
}

.btn-pos-action-secondary {
    background: transparent;
    border-color: var(--green-header);
    color: var(--green-header);
}

/* Responsive adjustments for POS header */
@media (max-width: 768px) {
    .pos-header {
        padding: 0.5rem 1rem 1.25rem 1rem;
    }
    
    .pos-title {
        font-size: 1.125rem;
    }
    
    .pos-title i {
        font-size: 1.25rem;
    }
    
    .pos-subtitle {
        font-size: 0.75rem;
    }
    
    .btn-pos-action {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .btn-pos-action span {
        display: none;
    }
}

/* POS Container */
.pos-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 100%;
    height: calc(100vh - 140px);
    min-height: 600px;
}

@media (max-width: 1200px) {
    .pos-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* Left Panel */
.pos-left-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 0;
}

/* Search Section */
.pos-search-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1.25rem;
    z-index: 1;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 3px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all var(--transition-base);
    background: white;
    font-weight: 500;
}

.search-input:focus {
    border-width: 3px;
    border-color: var(--green-header);
    box-shadow: 0 0 0 4px rgba(56, 142, 60, 0.15), 0 4px 12px rgba(56, 142, 60, 0.2);
    transform: translateY(-1px);
}


.search-btn {
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--green-header) 0%, #2e7d32 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    font-size: 0.9375rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 142, 60, 0.3);
    background: linear-gradient(135deg, #2e7d32 0%, var(--green-header) 100%);
}

.search-btn.btn-scan {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.search-btn.btn-scan:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Barcode Scanner */
.barcode-scanner {
    margin-top: 1rem;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border-color);
}

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

.scanner-header h6 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.btn-close-scanner {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.btn-close-scanner:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.scanner-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1rem;
}

.scanner-container video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: contain;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scanner-line {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    animation: scanLine 2s linear infinite;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

@keyframes scanLine {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(50%);
    }
}

.scanner-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.scanner-status {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.scanner-status i {
    font-size: 1rem;
}

.barcode-image {
    max-width: 200px;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    background: white;
}

/* Search Results */
.search-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.search-result-item:hover {
    background: white;
    border-color: var(--green-header);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.search-result-item.result-item-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.search-result-item.result-item-disabled:hover {
    background-color: #f8f9fa;
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.result-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.result-item-info h6 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.result-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.result-item-price .price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--green-header);
}

.stock-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.stock-badge.stock-ok {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stock-badge.stock-low {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stock-badge.stock-out {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.result-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.result-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-loading,
.search-empty,
.search-error {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.search-loading i.spin {
    animation: spin 1s linear infinite;
}

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

/* Cart Section */
.pos-cart-section {
    flex: 1;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.cart-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.cart-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-count {
    background: var(--green-header);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.cart-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cart-table-headers {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-header-col {
    display: flex;
    align-items: center;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.cart-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.875rem 1rem;
}

.cart-item-row:hover {
    border-color: var(--green-header);
    box-shadow: var(--shadow-sm);
    transform: translateX(2px);
}

.cart-col-product,
.cart-col-qty,
.cart-col-price,
.cart-col-total,
.cart-col-actions {
    display: flex;
    align-items: center;
}

.cart-col-product {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.cart-item-info h6 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.price-tag {
    color: var(--green-header);
    font-weight: 600;
}

.batch-tag {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stock-indicator {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Medicine Badges */
.medicine-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-rx {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-controlled {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-otc {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.qty-btn:hover:not(:disabled) {
    background: var(--green-header);
    color: white;
}

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

.qty-input {
    width: 60px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.25rem;
}

.qty-input:focus {
    outline: none;
}

.cart-item-total {
    flex: 1;
    text-align: right;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-remove-item {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

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

/* Right Panel */
.pos-right-panel {
    position: sticky;
    top: 140px;
    height: fit-content;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.pos-summary-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.summary-section {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.section-header i {
    color: var(--green-header);
    font-size: 1.25rem;
}

/* Customer Type Selector */
.customer-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.customer-type-option {
    margin: 0;
    cursor: pointer;
}

.customer-type-option input[type="radio"] {
    display: none;
}

.customer-type-card {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: white;
}

.customer-type-card i {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.customer-type-card span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
}

.customer-type-option input[type="radio"]:checked + .customer-type-card {
    border-color: var(--green-header);
    background: rgba(56, 142, 60, 0.1);
}

.customer-type-option input[type="radio"]:checked + .customer-type-card i {
    color: var(--green-header);
}

.customer-type-card:hover {
    border-color: var(--green-header);
    transform: translateY(-1px);
}

/* Customer Search */
.customer-search-wrapper {
    position: relative;
    margin-top: 0.75rem;
}

.customer-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.customer-results-list {
    display: flex;
    flex-direction: column;
}

.customer-result-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.customer-result-item:hover {
    background: var(--bg-secondary);
}

.selected-customer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-color);
    border-radius: var(--radius-lg);
    margin-top: 0.75rem;
}

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

.customer-info i {
    font-size: 1.5rem;
    color: var(--success-color);
}

.btn-remove-customer {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

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

/* Summary Lines */
.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.summary-line:last-child {
    margin-bottom: 0;
}

.summary-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.summary-total {
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
}

.summary-total .summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-header);
}

.discount-input-wrapper {
    width: 100%;
}

.discount-type-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.discount-type-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.discount-type-btn.active {
    border-color: var(--green-header);
    background: rgba(56, 142, 60, 0.1);
    color: var(--green-header);
}

.discount-type-btn:hover {
    border-color: var(--green-header);
}

.discount-input-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.input-group-modern {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.input-prefix {
    padding: 0.625rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    border-right: 1px solid var(--border-color);
}

.discount-input {
    flex: 1;
    border: none;
    padding: 0.625rem;
    font-weight: 600;
}

.discount-input:focus {
    outline: none;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.payment-method-option {
    margin: 0;
    cursor: pointer;
}

.payment-method-option input[type="radio"] {
    display: none;
}

.payment-method-card {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.payment-method-card i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.payment-method-option input[type="radio"]:checked + .payment-method-card {
    border-color: var(--green-header);
    background: rgba(56, 142, 60, 0.1);
}

.payment-method-option input[type="radio"]:checked + .payment-method-card i {
    color: var(--green-header);
}

.payment-method-card:hover {
    border-color: var(--green-header);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Form Controls */
.form-control-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    background: white;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--green-header);
    box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.1);
    transform: translateY(-1px);
}

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

/* Action Buttons */
.pos-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-complete-sale {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-checkout-primary {
    background: linear-gradient(135deg, var(--green-header) 0%, #2e7d32 100%);
    box-shadow: 0 4px 16px rgba(56, 142, 60, 0.4);
    font-size: 1.25rem;
    padding: 1.25rem 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-checkout-primary small {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.btn-checkout-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 142, 60, 0.5);
}

.pos-action-secondary {
    display: flex;
    gap: 0.75rem;
}

.btn-hold-sale {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.btn-hold-sale:hover:not(:disabled) {
    border-color: var(--green-header);
    color: var(--green-header);
    transform: translateY(-1px);
}

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

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

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

.btn-complete-sale small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.btn-cancel-sale {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cancel-sale:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-spinner p {
    margin: 0;
    font-weight: 600;
}

/* Notifications */
.pos-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform var(--transition-base);
    min-width: 300px;
}

.pos-notification.show {
    transform: translateX(0);
}

.pos-notification-success {
    border-left: 4px solid var(--success-color);
}

.pos-notification-error {
    border-left: 4px solid var(--danger-color);
}

.pos-notification-info {
    border-left: 4px solid var(--info-color);
}

.pos-notification i {
    font-size: 1.25rem;
}

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

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

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

/* Responsive */
@media (max-width: 1200px) {
    .pos-container {
        grid-template-columns: 1fr;
    }
    
    .pos-right-panel {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .pos-header {
        padding: 1rem;
    }
    
    .pos-title {
        font-size: 1.5rem;
    }
    
    .pos-container {
        padding: 1rem;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Sales Listing Page Styles
   ============================================ */

.sales-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

/* Sales Header */
.sales-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.sales-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.sales-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.sales-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.sales-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

.btn-sales-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-sales-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-sales-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Sales Stats Grid */
.sales-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.sales-stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

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

.sales-stat-card .stat-icon-wrapper {
    flex-shrink: 0;
}

.sales-stat-card .stat-content {
    flex: 1;
}

.sales-stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.sales-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Filters Card */
.sales-filters-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin: 0 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.filters-form {
    width: 100%;
}

.filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

@media (max-width: 1200px) {
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .filter-actions {
        grid-column: 1 / -1;
    }
}

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

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label i {
    color: var(--primary-color);
}

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

.btn-filter-apply {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-filter-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, var(--success-color) 100%);
}

.btn-filter-clear {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-filter-clear:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Sales Table Card */
.sales-table-card,
.customers-table-card {
    background: white;
    border-radius: var(--radius-xl);
    margin: 0 2rem 2rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.table-header-left h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.table-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-left: 0.75rem;
}

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

.btn-table-action {
    padding: 0.625rem 1.25rem;
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-table-action:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.table-wrapper-modern {
    overflow-x: auto;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.table-modern th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.table-modern tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.table-modern tbody tr:hover {
    background: var(--bg-secondary);
}

.table-modern td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border-radius: var(--radius-sm);
}

/* Invoice Number */
.invoice-number {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.375rem 0.75rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.invoice-number i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

/* Date Time */
.date-time {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-time .date {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.date-time .time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Customer Info */
.customer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-info i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.customer-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.customer-phone {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.walk-in {
    color: var(--text-secondary);
    font-style: italic;
}

/* Items Count */
.items-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.items-count i {
    color: var(--info-color);
}

/* Amounts */
.amount,
.total-amount {
    font-weight: 600;
    color: var(--text-primary);
}

.total-amount {
    font-size: 1.125rem;
    color: var(--success-color);
    font-weight: 700;
}

.discount-amount {
    font-size: 0.875rem;
}

.discount-badge {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 4px -1px rgba(245, 158, 11, 0.2);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: capitalize;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
}

.customer-row:hover .status-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.15);
}

.status-badge.status-paid {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.3);
}

.status-badge.status-partial {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
    border-color: rgba(245, 158, 11, 0.3);
}

.status-badge.status-unpaid {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    text-decoration: none;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.btn-action-view {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.btn-action-view:hover {
    background: var(--info-color);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.4);
}

.btn-action-print {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.btn-action-print:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.4);
}

.btn-action-sale:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.4);
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-modern .empty-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    color: var(--text-secondary);
}

.empty-state-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state-modern p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.btn-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-empty-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
    text-decoration: none;
}

/* Pagination */
.pagination-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(5, 150, 105, 0.02) 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.625rem 1rem;
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
    color: white;
    border-color: var(--success-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px -2px rgba(16, 185, 129, 0.3);
}

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

.pagination-pages {
    display: flex;
    gap: 0.25rem;
}

.pagination-page {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.pagination-page:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.pagination-page.active {
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
    color: white;
    border-color: var(--success-color);
    box-shadow: 0 4px 8px -2px rgba(16, 185, 129, 0.3);
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--text-secondary);
}

/* Refunds Page Styles */
.refunds-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

/* Refunds Header */
.refunds-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.refunds-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.refunds-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.refunds-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.refunds-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

.refunds-filters-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin: 0 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.refunds-table-card {
    background: white;
    border-radius: var(--radius-xl);
    margin: 0 2rem 2rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.refund-number {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refund-number i {
    color: var(--green-header);
}

.invoice-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.invoice-link:hover {
    color: var(--green-header);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .sales-header {
        padding: 1rem 0;
        padding-bottom: 1.75rem;
    }
    
    .sales-title {
        font-size: 1.5rem;
    }
    
    .sales-stats-grid {
        padding: 1rem;
        grid-template-columns: 1fr;
    }
    
    .sales-filters-card,
    .sales-table-card {
        margin: 0 1rem 1rem;
    }
    
    .refunds-header {
        padding: 1rem 0;
        padding-bottom: 1.75rem;
    }
    
    .refunds-title {
        font-size: 1.5rem;
    }
    
    .refunds-filters-card,
    .refunds-table-card {
        margin: 0 1rem 1rem;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .pagination-modern {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-controls {
        justify-content: center;
    }
}

/* ============================================
   Customers Listing Page Styles
   ============================================ */

.customers-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

/* Customers Header */
.customers-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.customers-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.customers-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.customers-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.customers-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

.btn-customers-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-customers-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-customers-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Customers Stats Grid */
.customers-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.customers-stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.customers-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color), #34d399);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.customers-stat-card:hover::before {
    opacity: 1;
}

.customers-stat-card .stat-icon-wrapper {
    flex-shrink: 0;
}

.customers-stat-card .stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-base);
}

.customers-stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.2);
}

.customers-stat-card .stat-content {
    flex: 1;
}

.customers-stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.customers-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Filters Card */
.customers-filters-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin: 0 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Customer Name Cell */
.customer-name-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.customer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 8px -2px rgba(16, 185, 129, 0.2);
    transition: all var(--transition-base);
}

.customer-row:hover .customer-avatar {
    transform: scale(1.1);
    border-color: var(--success-color);
    box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.3);
}

.customer-avatar i {
    font-size: 2.25rem;
    color: var(--success-color);
    transition: all var(--transition-base);
}

.customer-row:hover .customer-avatar i {
    transform: rotate(5deg);
}

.customer-details {
    flex: 1;
    min-width: 0;
}

.customer-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.customer-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.customer-meta .separator {
    color: var(--border-color);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.contact-item i {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.contact-item a:hover {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
    text-decoration: none;
    transform: translateX(2px);
}

/* Location Info */
.location-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.location-item i {
    color: var(--text-secondary);
}

.location-address {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Purchase Amount */
.purchase-amount {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.purchase-amount strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.purchase-count {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Loyalty Points */
.loyalty-points {
    display: flex;
    align-items: center;
}

.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: var(--warning-color);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 2px 4px -1px rgba(251, 191, 36, 0.2);
    transition: all var(--transition-base);
}

.customer-row:hover .points-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 8px -2px rgba(251, 191, 36, 0.3);
    border-color: var(--warning-color);
}

.points-badge i {
    color: #fbbf24;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Last Purchase */
.last-purchase {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.last-purchase-date {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.last-purchase-amount {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Action Buttons */
.btn-action-sale {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.btn-action-sale:hover {
    background: var(--success-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .customers-header {
        padding: 1rem 0;
        padding-bottom: 1.75rem;
    }
    
    .customers-title {
        font-size: 1.5rem;
    }
    
    .customers-stats-grid {
        padding: 1rem;
        grid-template-columns: 1fr;
    }
    
    .customers-filters-card,
    .customers-table-card {
        margin: 0 1rem 1rem;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .customer-name-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .customer-avatar {
        width: 40px;
        height: 40px;
    }
    
    .customer-avatar i {
        font-size: 1.5rem;
    }
}

/* ============================================
   Form Pages Styles (Create/Edit)
   ============================================ */

.form-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

/* Form Header */
.form-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.form-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.form-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.form-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

.btn-form-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-form-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-form-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Form Card */
.form-card-wrapper {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.customer-form {
    max-width: 100%;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid rgba(16, 185, 129, 0.2);
}

.section-icon i {
    font-size: 1.75rem;
    color: var(--success-color);
}

.section-icon-medical {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.section-icon-medical i {
    color: var(--danger-color);
}

.section-icon-location {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.section-icon-location i {
    color: var(--info-color);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

/* Form Fields */
.form-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field-group.form-field-full {
    grid-column: 1 / -1;
}

.form-label-modern {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.form-label-modern i {
    color: var(--success-color);
    font-size: 1.125rem;
}

.form-label-modern .required {
    color: var(--danger-color);
    margin-left: 0.25rem;
}

.form-control-modern {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    background: white;
    font-family: inherit;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.form-control-modern::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-control-modern:disabled {
    background: var(--bg-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-control-modern.is-valid {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.form-control-modern.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.form-control-modern.is-invalid {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.form-control-modern.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-help {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.field-error {
    font-size: 0.8125rem;
    color: var(--danger-color);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--danger-color);
}

.field-error::before {
    content: '⚠';
    font-size: 1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    margin-top: 2rem;
}

.btn-form-cancel {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: white;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-form-cancel:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, var(--success-color) 100%);
}

.btn-form-submit:active {
    transform: translateY(0);
}

/* Form Notifications */
.form-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform var(--transition-base);
    min-width: 300px;
    border-left: 4px solid;
}

.form-notification.show {
    transform: translateX(0);
}

.form-notification-success {
    border-left-color: var(--success-color);
}

.form-notification-error {
    border-left-color: var(--danger-color);
}

.form-notification-info {
    border-left-color: var(--info-color);
}

.form-notification i {
    font-size: 1.25rem;
}

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

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

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

/* Reports Page Styles */
.reports-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.reports-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.reports-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.reports-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.reports-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.reports-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

/* Low Stock Page Styles */
.low-stock-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.low-stock-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.low-stock-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.low-stock-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.low-stock-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.low-stock-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

/* Expiry Page Styles */
.expiry-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.expiry-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.expiry-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.expiry-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.expiry-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.expiry-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

/* Purchases Report Page Styles */
.purchases-report-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.purchases-report-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.purchases-report-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.purchases-report-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.purchases-report-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.purchases-report-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

/* Supplier Balance Report Page Styles */
.supplier-balance-report-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.supplier-balance-report-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.supplier-balance-report-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.supplier-balance-report-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.supplier-balance-report-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.supplier-balance-report-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

.supplier-balance-report-header-actions {
    display: flex;
    gap: 0.75rem;
}

/* Suppliers Page Styles */
.suppliers-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.suppliers-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.suppliers-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.suppliers-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.suppliers-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.suppliers-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

/* Phase 2 Suppliers Page Styles */
.phase2-suppliers-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.phase2-suppliers-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.phase2-suppliers-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.phase2-suppliers-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.phase2-suppliers-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.phase2-suppliers-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

/* Financial Pages Styles */
.financial-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.financial-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.financial-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.financial-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.financial-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.financial-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Financial Chart of Accounts */
.financial-chart-accounts-page-wrapper,
.financial-journal-entries-page-wrapper,
.financial-bank-accounts-page-wrapper,
.financial-tax-configurations-page-wrapper,
.financial-petty-cash-page-wrapper,
.financial-bank-reconciliations-page-wrapper,
.financial-profit-loss-page-wrapper,
.financial-balance-sheet-page-wrapper,
.financial-trial-balance-page-wrapper,
.financial-cash-flow-page-wrapper,
.financial-budget-vs-actual-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.financial-chart-accounts-header,
.financial-journal-entries-header,
.financial-bank-accounts-header,
.financial-tax-configurations-header,
.financial-petty-cash-header,
.financial-bank-reconciliations-header,
.financial-profit-loss-header,
.financial-balance-sheet-header,
.financial-trial-balance-header,
.financial-cash-flow-header,
.financial-budget-vs-actual-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.financial-chart-accounts-header-content,
.financial-journal-entries-header-content,
.financial-bank-accounts-header-content,
.financial-tax-configurations-header-content,
.financial-petty-cash-header-content,
.financial-bank-reconciliations-header-content,
.financial-profit-loss-header-content,
.financial-balance-sheet-header-content,
.financial-trial-balance-header-content,
.financial-cash-flow-header-content,
.financial-budget-vs-actual-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.financial-chart-accounts-title,
.financial-journal-entries-title,
.financial-bank-accounts-title,
.financial-tax-configurations-title,
.financial-petty-cash-title,
.financial-bank-reconciliations-title,
.financial-profit-loss-title,
.financial-balance-sheet-title,
.financial-trial-balance-title,
.financial-cash-flow-title,
.financial-budget-vs-actual-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.financial-chart-accounts-title i,
.financial-journal-entries-title i,
.financial-bank-accounts-title i,
.financial-tax-configurations-title i,
.financial-petty-cash-title i,
.financial-bank-reconciliations-title i,
.financial-profit-loss-title i,
.financial-balance-sheet-title i,
.financial-trial-balance-title i,
.financial-cash-flow-title i,
.financial-budget-vs-actual-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.financial-chart-accounts-subtitle,
.financial-journal-entries-subtitle,
.financial-bank-accounts-subtitle,
.financial-tax-configurations-subtitle,
.financial-petty-cash-subtitle,
.financial-bank-reconciliations-subtitle,
.financial-profit-loss-subtitle,
.financial-balance-sheet-subtitle,
.financial-trial-balance-subtitle,
.financial-cash-flow-subtitle,
.financial-budget-vs-actual-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

.financial-chart-accounts-header-actions,
.financial-journal-entries-header-actions,
.financial-bank-accounts-header-actions,
.financial-tax-configurations-header-actions,
.financial-petty-cash-header-actions,
.financial-bank-reconciliations-header-actions,
.financial-profit-loss-header-actions,
.financial-balance-sheet-header-actions,
.financial-trial-balance-header-actions,
.financial-cash-flow-header-actions,
.financial-budget-vs-actual-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Management Pages Styles */
.inventory-page-wrapper,
.inventory-adjustments-page-wrapper,
.inventory-movements-page-wrapper,
.doctors-page-wrapper,
.pharmacy-users-page-wrapper,
.pharmacy-users-form-page-wrapper,
.payment-gateways-page-wrapper,
.payment-gateways-form-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.inventory-header,
.inventory-adjustments-header,
.inventory-movements-header,
.doctors-header,
.pharmacy-users-header,
.pharmacy-users-form-header,
.payment-gateways-header,
.payment-gateways-form-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.inventory-header-content,
.inventory-adjustments-header-content,
.inventory-movements-header-content,
.doctors-header-content,
.pharmacy-users-header-content,
.pharmacy-users-form-header-content,
.payment-gateways-header-content,
.payment-gateways-form-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.inventory-title,
.inventory-adjustments-title,
.inventory-movements-title,
.doctors-title,
.pharmacy-users-title,
.pharmacy-users-form-title,
.payment-gateways-title,
.payment-gateways-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.inventory-title i,
.inventory-adjustments-title i,
.inventory-movements-title i,
.doctors-title i,
.pharmacy-users-title i,
.pharmacy-users-form-title i,
.payment-gateways-title i,
.payment-gateways-form-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.inventory-subtitle,
.inventory-adjustments-subtitle,
.inventory-movements-subtitle,
.doctors-subtitle,
.pharmacy-users-subtitle,
.pharmacy-users-form-subtitle,
.payment-gateways-subtitle,
.payment-gateways-form-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

.doctors-header-actions,
.pharmacy-users-header-actions,
.pharmacy-users-form-header-actions,
.payment-gateways-header-actions,
.payment-gateways-form-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Loyalty Rules Pages Styles */
.loyalty-rules-page-wrapper,
.loyalty-rule-form-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.loyalty-rules-header,
.loyalty-rule-form-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.loyalty-rules-header-content,
.loyalty-rule-form-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.loyalty-rules-title,
.loyalty-rule-form-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.loyalty-rules-title i,
.loyalty-rule-form-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.loyalty-rules-subtitle,
.loyalty-rule-form-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

.loyalty-rules-header-actions,
.loyalty-rule-form-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Pharmacy Users Roles Page Styles */
.pharmacy-users-roles-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.pharmacy-users-roles-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.pharmacy-users-roles-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pharmacy-users-roles-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.pharmacy-users-roles-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.pharmacy-users-roles-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

.pharmacy-users-roles-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Legacy Reports Page Styles */
.legacy-reports-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.legacy-reports-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.legacy-reports-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.legacy-reports-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.legacy-reports-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.legacy-reports-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Legacy Sales Report Page Styles */
.legacy-sales-report-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.legacy-sales-report-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.legacy-sales-report-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.legacy-sales-report-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.legacy-sales-report-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.legacy-sales-report-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Legacy Stock Report Page Styles */
.legacy-stock-report-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.legacy-stock-report-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.legacy-stock-report-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.legacy-stock-report-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.legacy-stock-report-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.legacy-stock-report-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

.legacy-stock-report-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Legacy Financial Report Page Styles */
.legacy-financial-report-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.legacy-financial-report-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.legacy-financial-report-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.legacy-financial-report-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.legacy-financial-report-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.legacy-financial-report-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

.legacy-financial-report-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Legacy Customer Report Page Styles */
.legacy-customer-report-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.legacy-customer-report-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.legacy-customer-report-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.legacy-customer-report-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.legacy-customer-report-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.legacy-customer-report-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

.legacy-customer-report-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Phase 2 Purchases Page Styles */
.phase2-purchases-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.phase2-purchases-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.phase2-purchases-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.phase2-purchases-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.phase2-purchases-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.phase2-purchases-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

/* Bulk Import Page Styles */
.bulk-import-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.bulk-import-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.bulk-import-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.bulk-import-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.bulk-import-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.bulk-import-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

/* Phase 2 Medicines Page Styles */
.phase2-medicines-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.phase2-medicines-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.phase2-medicines-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.phase2-medicines-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.phase2-medicines-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.phase2-medicines-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

/* Segmentation Page Styles */
.segmentation-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.segmentation-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.segmentation-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.segmentation-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.segmentation-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.segmentation-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .form-header {
        padding: 1rem 0;
        padding-bottom: 1.75rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .reports-header {
        padding: 1rem 0;
        padding-bottom: 1.75rem;
    }
    
    .reports-title {
        font-size: 1.5rem;
    }
    
    .segmentation-header {
        padding: 1rem 0;
        padding-bottom: 1.75rem;
    }
    
    .segmentation-title {
        font-size: 1.5rem;
    }
    
    .phase2-medicines-header {
        padding: 1rem 0;
        padding-bottom: 1.75rem;
    }
    
    .phase2-medicines-title {
        font-size: 1.5rem;
    }
    
    .bulk-import-header {
        padding: 1rem 0;
        padding-bottom: 1.75rem;
    }
    
    .bulk-import-title {
        font-size: 1.5rem;
    }
    
    .low-stock-header,
    .expiry-header,
    .purchases-report-header,
    .supplier-balance-report-header,
    .suppliers-header,
    .phase2-purchases-header,
    .phase2-suppliers-header,
    .legacy-reports-header,
    .legacy-sales-report-header,
    .legacy-stock-report-header,
    .legacy-financial-report-header,
    .legacy-customer-report-header,
    .financial-header,
    .financial-chart-accounts-header,
    .financial-journal-entries-header,
    .financial-bank-accounts-header,
    .financial-tax-configurations-header,
    .financial-petty-cash-header,
    .financial-bank-reconciliations-header,
    .financial-profit-loss-header,
    .financial-balance-sheet-header,
    .financial-trial-balance-header,
    .financial-cash-flow-header,
    .financial-budget-vs-actual-header,
    .financial-chart-accounts-form-header,
    .financial-journal-entry-form-header,
    .financial-bank-account-form-header,
    .inventory-header,
    .inventory-adjustments-header,
    .inventory-movements-header,
    .doctors-header,
    .pharmacy-users-header,
    .pharmacy-users-form-header,
    .payment-gateways-header,
    .payment-gateways-form-header,
    .loyalty-rules-header,
    .loyalty-rule-form-header,
    .pharmacy-users-roles-header,
    .branding-header {
        padding: 1rem 0;
        padding-bottom: 1.75rem;
    }
    
    .low-stock-title,
    .expiry-title,
    .purchases-report-title,
    .supplier-balance-report-title,
    .suppliers-title,
    .phase2-purchases-title,
    .phase2-suppliers-title,
    .legacy-reports-title,
    .legacy-sales-report-title,
    .legacy-stock-report-title,
    .legacy-financial-report-title,
    .legacy-customer-report-title,
    .financial-title,
    .financial-chart-accounts-title,
    .financial-journal-entries-title,
    .financial-bank-accounts-title,
    .financial-tax-configurations-title,
    .financial-petty-cash-title,
    .financial-bank-reconciliations-title,
    .financial-profit-loss-title,
    .financial-balance-sheet-title,
    .financial-trial-balance-title,
    .financial-cash-flow-title,
    .financial-budget-vs-actual-title,
    .financial-chart-accounts-form-title,
    .financial-journal-entry-form-title,
    .financial-bank-account-form-title,
    .inventory-title,
    .inventory-adjustments-title,
    .inventory-movements-title,
    .doctors-title,
    .pharmacy-users-title,
    .pharmacy-users-form-title,
    .payment-gateways-title,
    .payment-gateways-form-title,
    .loyalty-rules-title,
    .loyalty-rule-form-title,
    .pharmacy-users-roles-title,
    .branding-title {
        font-size: 1.5rem;
    }
    
    .form-card-wrapper {
        padding: 1rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .form-fields-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-form-cancel,
    .btn-form-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Medicines Listing Page Styles
   ============================================ */

.medicines-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

/* Medicines Header */
.medicines-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.medicines-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.medicines-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.medicines-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.medicines-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

.btn-medicines-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-medicines-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-medicines-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Medicines Stats Grid */
.medicines-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 2rem;
}

.medicines-stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.medicines-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.medicines-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #3b82f6;
}

.medicines-stat-card:hover::before {
    opacity: 1;
}

/* Filters Card */
.medicines-filters-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin: 0 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Medicines Table Card */
.medicines-table-card {
    background: white;
    border-radius: var(--radius-xl);
    margin: 0 2rem 2rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Medicine Name Cell */
.medicine-name-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.medicine-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 2px 4px -1px rgba(59, 130, 246, 0.2);
}

.medicine-icon i {
    font-size: 1.5rem;
    color: var(--info-color);
}

.medicine-details {
    flex: 1;
    min-width: 0;
}

.medicine-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.medicine-brand {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.generic-name {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.barcode-text {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* Stock Badge */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.stock-low {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.3);
}

.stock-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
    border-color: rgba(245, 158, 11, 0.3);
}

.stock-good {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
    border-color: rgba(16, 185, 129, 0.3);
}

.reorder-level {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.price-amount {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.medicine-row:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
}

.medicine-row:hover .medicine-icon {
    transform: scale(1.1);
    border-color: var(--info-color);
    box-shadow: 0 4px 8px -2px rgba(59, 130, 246, 0.3);
}

.btn-action-edit {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.btn-action-edit:hover {
    background: var(--warning-color);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .medicines-header {
        padding: 1rem 0;
        padding-bottom: 1.75rem;
    }
    
    .medicines-title {
        font-size: 1.5rem;
    }
    
    .medicines-stats-grid {
        padding: 1rem;
        grid-template-columns: 1fr;
    }
    
    .medicines-filters-card,
    .medicines-table-card {
        margin: 0 1rem 1rem;
    }
    
    .table-modern th,
    .table-modern td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .medicine-name-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .medicine-icon {
        width: 40px;
        height: 40px;
    }
    
    .medicine-icon i {
        font-size: 1.25rem;
    }
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-input-modern {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-lg);
    color: var(--info-color);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
    justify-content: center;
}

.file-upload-label:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-color: var(--info-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px -2px rgba(59, 130, 246, 0.2);
}

.file-upload-label i {
    font-size: 1.25rem;
}

.file-preview {
    margin-top: 1rem;
}

.image-preview {
    position: relative;
    display: inline-block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    max-width: 300px;
}

.image-preview img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.remove-image:hover {
    background: var(--danger-color);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.remove-image i {
    font-size: 1.125rem;
}

/* ============================================
   Categories Page Styles
   ============================================ */

.categories-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

/* Categories Header */
.categories-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.categories-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.categories-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.categories-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.categories-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

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

.btn-categories-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-categories-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-categories-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Categories Content */
.categories-content-wrapper {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.categories-form-card,
.categories-list-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
}

.card-header-modern {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 3px solid rgba(16, 185, 129, 0.2);
}

.card-header-icon i {
    font-size: 1.5rem;
    color: var(--success-color);
}

.card-header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.card-header-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

.card-body-modern {
    padding: 1.5rem;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--success-color);
}

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

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(16, 185, 129, 0.2);
}

.category-icon i {
    font-size: 1.75rem;
    color: var(--success-color);
}

.category-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-category-delete {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-category-delete:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.category-card-body {
    flex: 1;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.category-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.category-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.category-stat,
.category-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.category-stat i {
    color: var(--success-color);
}

.category-date i {
    color: var(--info-color);
}

/* Responsive */
@media (max-width: 991.98px) {
    .categories-content-wrapper {
        padding: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 575.98px) {
    .categories-header {
        padding: 1rem 0;
        padding-bottom: 1.75rem;
    }
    
    .categories-title {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .card-header-modern {
        padding: 1rem;
    }
    
    .card-body-modern {
        padding: 1rem;
    }
}

/* ============================================
   Supplier View Page Styles
   ============================================ */

.supplier-view-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

/* Supplier Header */
.supplier-view-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.supplier-view-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.supplier-header-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.supplier-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.supplier-avatar-large i {
    font-size: 2.5rem;
    color: white;
}

.supplier-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.supplier-meta {
    margin: 0.5rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0.9;
    font-size: 0.9375rem;
}

.supplier-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-supplier-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-supplier-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-supplier-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-supplier-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-supplier-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-supplier-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-supplier-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
}

/* Supplier Stats Grid */
.supplier-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.supplier-stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.supplier-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.supplier-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #f59e0b;
}

.supplier-stat-card:hover::before {
    opacity: 1;
}

.stat-icon-balance {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.stat-icon-balance i {
    color: var(--warning-color);
}

.stat-icon-balance.stat-icon-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.stat-icon-balance.stat-icon-warning i {
    color: var(--danger-color);
}

.stat-icon-balance.stat-icon-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.stat-icon-balance.stat-icon-success i {
    color: var(--success-color);
}

.stat-icon-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.stat-icon-primary i {
    color: var(--info-color);
}

.stat-footer {
    margin-top: 0.5rem;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.stat-badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

/* Supplier Content */
.supplier-content-wrapper {
    padding: 0 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.supplier-info-card,
.supplier-purchases-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
}

/* Info Items */
.info-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.info-label i {
    color: var(--warning-color);
    font-size: 1rem;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.info-value a {
    color: var(--warning-color);
    text-decoration: none;
    transition: all var(--transition-base);
}

.info-value a:hover {
    color: #d97706;
    text-decoration: underline;
}

/* Purchase Table */
.purchase-row:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
}

.purchase-date {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-value {
    font-weight: 600;
    color: var(--text-primary);
}

.date-time {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.amount-total {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.amount-paid {
    font-weight: 600;
    color: var(--success-color);
}

.amount-balance {
    font-weight: 600;
    font-size: 0.9375rem;
}

.amount-balance-due {
    color: var(--danger-color);
}

.amount-balance-paid {
    color: var(--success-color);
}

/* Responsive */
@media (max-width: 991.98px) {
    .supplier-view-header {
        padding: 1.5rem;
    }
    
    .supplier-view-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .supplier-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .supplier-stats-grid {
        padding: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .supplier-content-wrapper {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .supplier-name {
        font-size: 1.5rem;
    }
    
    .supplier-avatar-large {
        width: 60px;
        height: 60px;
    }
    
    .supplier-avatar-large i {
        font-size: 2rem;
    }
    
    .supplier-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-supplier-action {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   Form Checkbox Styles
   ============================================ */

.form-check-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: white;
    transition: all var(--transition-base);
    cursor: pointer;
}

.form-check-modern:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.form-check-input-modern {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.125rem;
    accent-color: var(--primary-color);
}

.form-check-label-modern {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-label-modern i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.delivery-method {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.delivery-method-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.delivery-method-content i {
    font-size: 2rem;
    color: var(--primary-color);
}

.delivery-method-content div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.delivery-method-content strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.delivery-method-content small {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Doctor Selection Container */
.doctors-selection-container {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: white;
    max-height: 400px;
    overflow-y: auto;
}

.selection-header {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.btn-select-all,
.btn-select-none {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-select-all:hover,
.btn-select-none:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.doctors-checkbox-list {
    padding: 0.5rem;
}

.doctor-checkbox-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.doctor-checkbox-item:last-child {
    border-bottom: none;
}

.doctor-checkbox-item:hover {
    background: rgba(37, 99, 235, 0.05);
}

.doctor-checkbox-item .form-check-modern {
    padding: 0;
    border: none;
    background: transparent;
}

.doctor-checkbox-item .form-check-modern:hover {
    background: transparent;
}

.doctor-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doctor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.doctor-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.doctor-meta i {
    font-size: 0.875rem;
}

.empty-state-small {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.empty-state-small i {
    font-size: 2rem;
    color: var(--info-color);
}

/* ============================================
   Notification History Page Styles
   ============================================ */

.notification-history-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

.notification-history-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.notification-history-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.notification-history-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.notification-history-title i {
    font-size: 2.5rem;
}

.notification-history-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9375rem;
}

.notification-history-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-notification-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-notification-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-notification-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-notification-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-notification-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.notification-filters-card {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.notification-filters-form {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 2fr auto;
    gap: 1rem;
    align-items: end;
}

.notification-table-card {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.notification-row:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.notification-date {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.doctor-info-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.doctor-specialization {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.medicine-name {
    font-weight: 600;
    color: var(--text-primary);
}

.notification-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 600;
}

.notification-type-new_product {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.notification-type-stock_update {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info-color);
}

.notification-type-price_change {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.notification-type-general {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 991.98px) {
    .notification-history-header {
        padding: 1.5rem;
    }
    
    .notification-history-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .notification-filters-card,
    .notification-table-card {
        padding: 0 1rem;
    }
    
    .notification-filters-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .notification-history-title {
        font-size: 1.5rem;
    }
    
    .notification-history-title i {
        font-size: 2rem;
    }
    
    .btn-notification-action {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   Stock Summary Report Page Styles
   ============================================ */

.stock-summary-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

/* Stock Summary Header */
.stock-summary-header {
    background: transparent;
    padding: 1.5rem 0;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    color: var(--green-header);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.stock-summary-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stock-summary-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--green-header);
}

.stock-summary-title i {
    font-size: 2rem;
    color: var(--green-header);
    opacity: 1;
}

.stock-summary-subtitle {
    margin: 0.5rem 0 0 0;
    color: var(--green-header);
    opacity: 0.8;
    font-size: 0.875rem;
}

.stock-summary-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-stock-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-stock-export {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-stock-export:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

.btn-stock-warning {
    background: rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.btn-stock-warning:hover {
    background: rgba(245, 158, 11, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.btn-stock-danger {
    background: rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.btn-stock-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Stock Summary Stats */
.stock-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stock-stat-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.stock-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stock-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #3b82f6;
}

.stock-stat-card:hover::before {
    opacity: 1;
}

/* Stock Summary Content */
.stock-summary-content {
    padding: 0 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stock-filters-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.stock-filters-form {
    display: grid;
    grid-template-columns: 2fr 1.5fr auto;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-label i {
    color: var(--info-color);
}

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

.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-filter-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-filter-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.btn-filter-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-filter-secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
}

.stock-table-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Stock Table Styles */
.stock-table-row {
    transition: all var(--transition-base);
}

.stock-table-row:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    transform: scale(1.01);
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
}

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

.medicine-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.medicine-icon-small i {
    color: var(--info-color);
    font-size: 1.25rem;
}

.medicine-name-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.medicine-barcode {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.medicine-barcode i {
    font-size: 0.875rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 600;
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-secondary);
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    font-weight: 700;
    min-width: 60px;
    justify-content: center;
}

.stock-badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stock-badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.stock-badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.reorder-level {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Pagination Modern */
.pagination-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-modern .pagination {
    margin: 0;
    gap: 0.5rem;
}

.pagination-modern .page-link {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
}

.pagination-modern .page-link:hover {
    background: var(--bg-secondary);
    border-color: var(--info-color);
    color: var(--info-color);
    transform: translateY(-2px);
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
}

.pagination-modern .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 991.98px) {
    .stock-summary-header {
        padding: 1rem 0;
        padding-bottom: 1.75rem;
    }
    
    .stock-summary-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stock-summary-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .stock-summary-stats {
        padding: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .stock-summary-content {
        padding: 0 1rem 1rem;
    }
    
    .stock-filters-form {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        width: 100%;
    }
    
    .btn-filter {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .stock-summary-title {
        font-size: 1.5rem;
    }
    
    .stock-summary-title i {
        font-size: 2rem;
    }
    
    .stock-summary-stats {
        grid-template-columns: 1fr;
    }
    
    .btn-stock-action {
        flex: 1;
        justify-content: center;
    }
    
    .pagination-modern {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-modern .pagination {
        justify-content: center;
    }
}

/* ============================================
   Roles & Permissions Page Styles
   ============================================ */

.roles-page-wrapper {
    padding: 0;
    background: var(--bg-secondary);
    min-height: calc(100vh - 80px);
}

/* Roles Page Header */
.roles-page-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    padding: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.roles-page-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.roles-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.roles-page-title i {
    font-size: 2.5rem;
}

.roles-page-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.9375rem;
}

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

.btn-roles-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-roles-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-roles-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Roles Content */
.roles-content-wrapper {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

/* Role Card */
.role-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.role-card-header {
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.role-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.role-card:hover .role-card-header::before {
    opacity: 1;
}

.role-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.role-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.role-icon-wrapper i {
    font-size: 1.75rem;
    color: white;
}

.role-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.role-user-count {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.role-count-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.role-count-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Role Header Colors */
.role-header-owner {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.role-header-manager {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.role-header-pharmacist {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.role-header-cashier {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.role-header-super_admin {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.role-header-other {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* Role Card Body */
.role-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.role-description {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.role-permissions-section {
    flex: 1;
}

.permissions-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.permissions-header i {
    color: #8b5cf6;
    font-size: 1.125rem;
}

.permissions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.permission-module {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.permission-module-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.permission-module-header i {
    color: #8b5cf6;
    font-size: 1rem;
}

.permission-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.permission-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.permission-badge-all {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.permission-badge-item {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.permission-badge i {
    font-size: 0.875rem;
}

.permissions-empty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

.permissions-empty i {
    font-size: 1.25rem;
    color: var(--info-color);
}

/* Responsive */
@media (max-width: 991.98px) {
    .roles-page-header {
        padding: 1.5rem;
    }
    
    .roles-page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .roles-content-wrapper {
        padding: 1rem;
    }
    
    .roles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .roles-page-title {
        font-size: 1.5rem;
    }
    
    .roles-page-title i {
        font-size: 2rem;
    }
    
    .role-user-count {
        position: static;
        margin-top: 1rem;
        align-self: flex-start;
    }
    
    .role-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

