/**
 * infoBusiness - Main Stylesheet
 * Store Management System
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --purple-color: #9b59b6;
    
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --header-height: 60px;
    --footer-height: 50px;
    
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --box-shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
    
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

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

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

/* ============================================
   LAYOUT
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: white;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

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

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 10px;
    border-radius: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.sidebar-toggle:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.sidebar-toggle:active {
    background: #e0e0e0;
    transform: scale(0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

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

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

/* POS Button - White Text */
.header-actions .btn-primary {
    color: white !important;
}

.header-actions .btn-primary i,
.header-actions .btn-primary span {
    color: white !important;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.user-toggle:hover {
    background: #f0f0f0;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-name {
    font-weight: 500;
    color: #333;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    min-width: 200px;
    display: none;
    z-index: 1001;
    margin-top: 10px;
}

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

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.user-role {
    color: #666;
    font-size: 0.9rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: #f8f9fa;
}

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

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

/* Notifications */
.notifications-dropdown {
    position: relative;
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification Dropdown Menu */
.notification-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    min-width: 350px;
    max-width: 400px;
    display: none;
    z-index: 1001;
    margin-top: 10px;
    overflow: hidden;
}

.notification-menu.show {
    display: block;
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.notification-header h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.notification-header .mark-all-read {
    font-size: 0.85rem;
    color: var(--primary-color);
    cursor: pointer;
}

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

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #f0f7ff;
}

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

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.warning {
    background: #fff3cd;
    color: #856404;
}

.notification-icon.danger {
    background: #f8d7da;
    color: #721c24;
}

.notification-icon.info {
    background: #cce5ff;
    color: #004085;
}

.notification-icon.success {
    background: #d4edda;
    color: #155724;
}

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

.notification-content p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
}

.notification-content .time {
    font-size: 0.75rem;
    color: #999;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.notification-empty i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ddd;
}

.notification-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    text-align: center;
    background: #f8f9fa;
}

.notification-footer a {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: white;
    box-shadow: var(--box-shadow);
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar.collapsed .nav-header {
    display: none !important;
}

.sidebar.collapsed .nav-link span {
    display: none !important;
}

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

.sidebar.collapsed .nav-link i {
    font-size: 1.3rem;
    width: auto;
}

.sidebar.collapsed .sidebar-footer {
    display: none !important;
}

/* Tooltip for collapsed sidebar nav items */
.sidebar.collapsed .nav-item {
    position: relative;
}

.sidebar.collapsed .nav-link:hover::after {
    content: attr(title);
    position: absolute;
    left: 60px;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
}

.sidebar-nav {
    padding: 15px 0;
}

.nav-list {
    list-style: none;
}

.nav-header {
    padding: 15px 20px 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 1px;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #555;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.nav-item.active .nav-link {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1), transparent);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

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

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

.nav-link.text-danger:hover {
    background: rgba(220, 53, 69, 0.1);
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}

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

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 25px;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    transition: var(--transition);
}

body.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed) !important;
}

/* Footer */
.footer {
    margin-left: var(--sidebar-width);
    padding: 15px 25px;
    background: white;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    transition: var(--transition);
}

body.sidebar-collapsed .footer {
    margin-left: var(--sidebar-collapsed) !important;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.page-header p {
    color: #666;
}

/* ============================================
   QUICK ACTIONS
   ============================================ */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border-radius: var(--border-radius);
    color: white;
    text-align: center;
    transition: var(--transition);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
    color: white;
}

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

.btn-primary { background: linear-gradient(135deg, #667eea, #764ba2); }
.btn-success { background: linear-gradient(135deg, #28a745, #20c997); }
.btn-info { background: linear-gradient(135deg, #17a2b8, #6f42c1); }
.btn-warning { background: linear-gradient(135deg, #ffc107, #fd7e14); color: #333; }
.btn-warning:hover { color: #333; }

/* ============================================
   STATISTICS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.stat-card.alert-card {
    border: 2px solid var(--danger-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.bg-primary { background: linear-gradient(135deg, #667eea, #764ba2); }
.bg-success { background: linear-gradient(135deg, #28a745, #20c997); }
.bg-info { background: linear-gradient(135deg, #17a2b8, #6f42c1); }
.bg-warning { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.bg-danger { background: linear-gradient(135deg, #dc3545, #c82333); }
.bg-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.bg-secondary { background: linear-gradient(135deg, #6c757d, #5a6268); }
.bg-dark { background: linear-gradient(135deg, #343a40, #23272b); }

.stat-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 3px;
}

.stat-info p {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   DASHBOARD GRID
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.card-body {
    padding: 20px;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 30px;
}

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

/* ============================================
   TABLES
   ============================================ */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table-compact th,
.table-compact td {
    padding: 10px 12px;
    font-size: 0.9rem;
}

.table-danger {
    background: rgba(220, 53, 69, 0.1) !important;
}

.table-warning {
    background: rgba(255, 193, 7, 0.1) !important;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-cash { background: #d4edda; color: #155724; }
.badge-card { background: #cce5ff; color: #004085; }
.badge-mobile { background: #fff3cd; color: #856404; }
.badge-credit { background: #f8d7da; color: #721c24; }
.badge-paid { background: #d4edda; color: #155724; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-partial { background: #cce5ff; color: #004085; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-sm {
    padding: 6px 15px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    color: #666;
    transition: var(--transition);
}

.btn-icon:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: opacity 0.3s;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* ============================================
   QUICK LINKS
   ============================================ */
.quick-links {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.quick-links h3 {
    margin-bottom: 15px;
    color: #333;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    color: #555;
    transition: var(--transition);
}

.quick-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.quick-link i {
    font-size: 1.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

select.form-control {
    cursor: pointer;
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
}

.text-muted {
    color: #999;
}

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

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-title {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.card-title h2 {
    font-size: 1.3rem;
    color: #333;
}

.card-content {
    padding: 20px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    border-radius: 5px;
    background: white;
    color: #333;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
}

.pagination .active {
    background: var(--primary-color);
    color: white;
}

.pagination .disabled {
    color: #999;
    cursor: not-allowed;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content,
    .footer {
        margin-left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-name {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 260px;
    }
    
    /* Sidebar becomes overlay on mobile */
    .sidebar {
        position: fixed;
        left: -260px;
        top: var(--header-height);
        width: 260px;
        height: calc(100vh - var(--header-height));
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar.collapsed {
        left: -260px;
        width: 260px;
    }
    
    .sidebar.collapsed.show {
        left: 0;
    }
    
    /* Reset collapsed styles for mobile */
    .sidebar.collapsed .nav-header,
    .sidebar.collapsed .nav-link span,
    .sidebar.collapsed .sidebar-footer {
        display: block !important;
    }
    
    .sidebar.collapsed .nav-link {
        justify-content: flex-start !important;
        padding: 12px 20px !important;
    }
    
    /* Main content takes full width */
    .main-content {
        margin-left: 0 !important;
        padding: 15px;
    }
    
    body.sidebar-collapsed .main-content {
        margin-left: 0 !important;
    }
    
    /* Footer takes full width */
    .footer {
        margin-left: 0 !important;
    }
    
    body.sidebar-collapsed .footer {
        margin-left: 0 !important;
    }
    
    /* Overlay for mobile sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    /* Header adjustments */
    .header {
        padding: 0 15px;
    }
    
    .header-title h1 {
        font-size: 1.1rem;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .header-actions .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .header-actions .btn span {
        display: none;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .stat-info h3 {
        font-size: 1.3rem;
    }
    
    /* Page header */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .page-header h1 {
        font-size: 1.4rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 15px;
    }
    
    .card-title {
        padding: 15px 20px;
    }
    
    .card-content {
        padding: 15px 20px;
    }
    
    /* Tables */
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 10px 12px;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Dashboard grid */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Quick actions */
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Notification menu */
    .notification-menu {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    /* User dropdown */
    .user-dropdown {
        position: fixed;
        top: var(--header-height);
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* Small mobile (up to 480px) */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-title h1 {
        display: none;
    }
    
    .header-logo {
        font-size: 1.2rem;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .sidebar,
    .footer,
    .btn,
    .action-btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 0;
    }
}
