/* Modern Light Dashboard Styles */

:root {
    --primary-color: #5B93FF;
    --primary-light: #E8F1FF;
    --success-color: #4CAF50;
    --danger-color: #FF5252;
    --warning-color: #FFA726;
    --info-color: #29B6F6;
    --purple: #AB47BC;
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 80px;
    --top-bar-height: 70px;
    --bg-primary: #F5F7FA;
    --bg-secondary: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --border-color: #E8EBF0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #5B93FF 0%, #AB47BC 100%);
    --gradient-success: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    --gradient-danger: linear-gradient(135deg, #FF5252 0%, #FF7043 100%);
    --gradient-warning: linear-gradient(135deg, #FFA726 0%, #FFB74D 100%);
    --gradient-info: linear-gradient(135deg, #29B6F6 0%, #4FC3F7 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-header h5 {
    display: none;
}

.sidebar.collapsed .sidebar-toggle {
    width: 100%;
    justify-content: center;
}

.sidebar.collapsed .sidebar-link span {
    display: none;
}

.sidebar.collapsed .sidebar-section-title {
    display: none;
}

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .sidebar-link {
    justify-content: flex-start;
    padding: 12px;
}

.sidebar.collapsed .sidebar-link i {
    margin-right: 0;
}

.sidebar.collapsed .sidebar-header .d-flex {
    justify-content: flex-start;
}

.sidebar.collapsed .sidebar-logo {
    display: none;
}

.sidebar.collapsed .user-info {
    justify-content: flex-start;
}

.sidebar.collapsed .logout-btn {
    margin-left: 0;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

.sidebar-toggle {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-size: 20px;
}

.sidebar-toggle:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-size: 18px;
}

.icon-btn:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.sidebar.collapsed .sidebar-link:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    margin-left: 10px;
    font-size: 13px;
    z-index: 1001;
    box-shadow: var(--shadow-md);
}

.sidebar-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-link i {
    font-size: 20px;
    width: 24px;
    margin-right: 12px;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 20px 16px 8px;
    letter-spacing: 0.5px;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.logout-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: var(--primary-light);
    color: var(--danger-color);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s ease;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}



/* Content Wrapper */
.content-wrapper {
    padding: 24px;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: white;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.card-body {
    padding: 24px;
}

/* Gradient Headers */
.card-header.gradient-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.card-header.gradient-success {
    background: var(--gradient-success);
    color: white;
    border: none;
}

.card-header.gradient-danger {
    background: var(--gradient-danger);
    color: white;
    border: none;
}

.card-header.gradient-warning {
    background: var(--gradient-warning);
    color: white;
    border: none;
}

.card-header.gradient-info {
    background: var(--gradient-info);
    color: white;
    border: none;
}

/* Stat Cards */
.stat-card {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-change {
    font-size: 13px;
    color: var(--success-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.stat-change.negative {
    color: var(--danger-color);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 147, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 147, 255, 0.4);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.2);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4);
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.2);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 167, 38, 0.4);
}

.btn-info {
    background: var(--gradient-info);
    color: white;
    box-shadow: 0 4px 12px rgba(41, 182, 246, 0.2);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 182, 246, 0.4);
}

.btn-secondary {
    background: #F1F5F9;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #E2E8F0;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #43A047;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #F44336;
    transform: translateY(-1px);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-light);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    text-align: left;
    padding: 16px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    letter-spacing: 0.5px;
    background: #F8FAFC;
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: var(--primary-light);
    transform: scale(1.01);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success, .bg-success {
    background: #E8F5E9 !important;
    color: var(--success-color) !important;
}

.badge-warning, .bg-warning {
    background: #FFF3E0 !important;
    color: var(--warning-color) !important;
}

.badge-danger, .bg-danger {
    background: #FFEBEE !important;
    color: var(--danger-color) !important;
}

.badge-primary, .bg-primary:not(.btn):not(.card-header) {
    background: var(--primary-light) !important;
    color: var(--primary-color) !important;
}

.badge-info, .bg-info {
    background: #E1F5FE !important;
    color: var(--info-color) !important;
}

/* Forms */
.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control, .form-select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(91, 147, 255, 0.1);
    background: white;
    transform: translateY(-1px);
}

/* Page Headers */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

h2 {
    font-size: 28px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 0;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    .print-area, .print-area * {
        visibility: visible;
    }
    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none !important;
    }
}

/* Receipt Thermal Print */
.thermal-receipt {
    width: 80mm;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.thermal-receipt table {
    width: 100%;
    border-collapse: collapse;
}

.thermal-receipt .text-center {
    text-align: center;
}

.thermal-receipt .text-right {
    text-align: right;
}

.thermal-receipt .border-top {
    border-top: 1px dashed #000;
    padding-top: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}
/* Responsive Design - Tablet and Mobile */

/* Tablet styles (768px - 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .sidebar:not(.collapsed) {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: var(--sidebar-collapsed-width);
    }
    
    .main-content.expanded {
        margin-left: 0;
    }
}

/* Mobile styles (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --top-bar-height: 60px;
    }
    
    /* Body overflow control */
    body {
        overflow-x: hidden;
    }
    
    body.sidebar-open {
        overflow: hidden;
    }
    
    /* Show mobile top bar */
    body > div[style*="position: fixed"] {
        display: flex !important;
    }
    
    /* Hide sidebar header on mobile */
    .sidebar-header {
        display: none !important;
    }
    
    /* Show sidebar toggle on mobile */
    .sidebar-toggle {
        display: flex !important;
    }
    
    /* Main content mobile - position adjustments */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        transition: all 0.3s ease;
        margin-top: 60px;
        position: relative;
        z-index: 1;
        background: var(--bg-primary);
    }
    
    .main-content.expanded {
        margin-left: 0;
    }
    
    /* Sidebar mobile - optimized */
    .sidebar {
        width: var(--sidebar-width);
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        margin-top: 0 !important;
        position: fixed;
        top: 60px;
        left: 0;
        height: calc(100vh - 60px);
        overflow-y: auto;
        background: var(--bg-secondary);
    }
    
    .sidebar:not(.collapsed) {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
    }
    
    .sidebar-header {
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
        display: none;
    }
    
    .sidebar-header h5 {
        font-size: 18px;
    }
    
    .sidebar.collapsed .sidebar-header h5,
    .sidebar.collapsed .sidebar-link span,
    .sidebar.collapsed .sidebar-section-title,
    .sidebar.collapsed .user-details {
        display: block;
    }
    
    .sidebar.collapsed .sidebar-toggle {
        width: 36px;
        justify-content: center;
    }
    
    .sidebar.collapsed .sidebar-logo {
        display: flex;
    }
    
    .sidebar.collapsed .sidebar-link {
        justify-content: flex-start;
        padding: 14px 16px;
        min-height: 48px;
    }
    
    .sidebar.collapsed .sidebar-link i {
        margin-right: 12px;
        font-size: 18px;
    }
    
    .sidebar.collapsed .sidebar-link span {
        font-weight: 500;
    }
    
    /* Sidebar nav mobile */
    .sidebar-nav {
        padding: 8px;
    }
    
    .sidebar-link {
        min-height: 48px;
        padding: 12px 16px;
        border-radius: 8px;
        margin-bottom: 2px;
        font-weight: 500;
        transition: all 0.2s ease;
        color: var(--text-secondary);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .sidebar-link:active {
        background: var(--primary-light);
        transform: scale(0.98);
        color: var(--primary-color);
    }
    
    .sidebar-link.active {
        background: var(--primary-light);
        color: var(--primary-color);
    }
    
    .sidebar-section-title {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        padding: 12px 16px;
        margin-top: 8px;
        color: var(--text-secondary);
    }
    
    /* Sidebar footer mobile */
    .sidebar-footer {
        padding: 16px;
        border-top: 1px solid var(--border-color);
        margin-top: auto;
    }
    
    .user-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .user-role {
        font-size: 12px;
    }
    
    /* Overlay for mobile sidebar - improved */
    body::before {
        content: '';
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100% - 60px);
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(2px);
    }
    
    body.sidebar-open::before {
        opacity: 1;
        visibility: visible;
    }
    
    /* Content wrapper mobile */
    .content-wrapper {
        padding: 16px 12px;
    }
    
    /* Header mobile */
    h2 {
        font-size: 22px !important;
    }
    
    .row.mb-4 {
        margin-bottom: 1rem !important;
    }
    
    /* Stat cards mobile */
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .stat-change {
        font-size: 11px;
    }
    
    .stat-card .d-flex > div:last-child {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    /* Cards mobile */
    .card {
        border-radius: 12px;
    }
    
    .card-header {
        padding: 16px;
    }
    
    .card-header h5 {
        font-size: 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* Tables mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 13px;
        min-width: 600px;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    /* Buttons mobile */
    .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .btn-sm {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .btn-lg {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    /* Quick actions mobile */
    .quick-actions .btn {
        padding: 20px 10px;
    }
    
    .quick-actions i {
        font-size: 24px !important;
    }
    
    /* Forms mobile */
    .form-label {
        font-size: 13px;
    }
    
    .form-control,
    .form-select {
        font-size: 14px;
    }
    
    /* Badges mobile */
    .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb {
        font-size: 12px;
    }
    
    /* Modal mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    
    /* Hide non-essential columns on mobile */
    .table .d-none-mobile {
        display: none;
    }
}

/* Extra small mobile (max-width: 480px) */
@media (max-width: 480px) {
    .top-bar-actions .icon-btn:not(:first-child) {
        display: none;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-card .d-flex {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-card .d-flex > div:last-child {
        align-self: flex-start;
    }
    
    .table {
        font-size: 12px;
        min-width: 500px;
    }
    
    .card-header .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    .btn-group {
        flex-wrap: wrap;
    }
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile scrollbar - thinner */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
}

/* Custom utility classes */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    /* Increase tap targets */
    a, button, .btn, input[type="checkbox"], input[type="radio"] {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Prevent text selection on buttons */
    .btn, button {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }
    
    /* Improve input field sizing */
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="date"],
    input[type="datetime-local"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Stack buttons on mobile */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
    
    /* Better spacing for mobile */
    .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    
    /* Optimize images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better focus states for accessibility */
    input:focus,
    select:focus,
    textarea:focus,
    button:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}
