/* TelAudit - Mobile Optimization Styles */

/* Mobile-first viewport setting */
@viewport {
    width: device-width;
    zoom: 1.0;
}

/* Mobile-only responsive text for buttons */
@media (max-width: 767.98px) {
    .mobile-text-short {
        display: inline !important;
    }
    
    .mobile-text-full {
        display: none !important;
    }
}

/* ===== ENHANCED MINIMAL SETTINGS PAGE MOBILE STYLES ===== */
@media (max-width: 767.98px) {
    /* Compact minimal header */
    .settings-header {
        border-radius: 10px !important;
        margin-bottom: 12px !important;
        padding: 12px !important;
        background: linear-gradient(135deg, #0d6efd, #3a8dff);
        position: relative;
        overflow: hidden;
    }
    
    .settings-container {
        padding: 10px !important;
    }
    
    .settings-header-title {
        font-size: 1.1rem !important;
        margin-bottom: 2px !important;
    }
    
    .settings-header-subtitle {
        font-size: 0.75rem !important;
        opacity: 0.8;
        margin: 0 !important;
    }
    
    .settings-header-top {
        margin-bottom: 10px !important;
    }
    
    /* Compact stats cards */
    .settings-stats {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
        margin-top: 8px !important;
    }
    
    .settings-stat {
        flex: 1 1 calc(33% - 5px) !important;
        padding: 6px !important;
        border-radius: 8px !important;
        min-width: 80px !important;
    }
    
    .settings-stat-icon {
        width: 28px !important;
        height: 28px !important;
        border-radius: 6px !important;
        font-size: 0.8rem !important;
        margin-right: 4px !important;
    }
    
    .settings-stat-text .stat-value {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
    }
    
    .settings-stat-text .stat-label {
        font-size: 0.65rem !important;
    }
    
    /* Compact mobile tabs */
    .settings-tabs-mobile {
        background-color: #f8f9fa;
        border-radius: 8px !important;
        padding: 4px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    }
    
    .settings-tab-mobile {
        padding: 4px 2px !important;
        border-radius: 6px !important;
    }
    
    .settings-tab-mobile-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 6px !important;
        margin-bottom: 3px !important;
    }
    
    .settings-tab-mobile-text {
        font-size: 0.65rem !important;
    }
    
    /* Compact cards */
    .settings-card {
        border-radius: 10px !important;
        margin-bottom: 12px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    }
    
    .settings-card-header {
        padding: 10px !important;
    }
    
    .settings-card-header-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        font-size: 0.9rem !important;
    }
    
    .settings-card-header-text h3 {
        font-size: 0.95rem !important;
        margin-bottom: 1px !important;
    }
    
    .settings-card-header-text p {
        font-size: 0.7rem !important;
        opacity: 0.8;
        margin: 0 !important;
    }
    
    .settings-card-body {
        padding: 10px !important;
    }
    
    /* Compact action cards */
    .action-cards {
        gap: 8px !important;
    }
    
    .action-card {
        padding: 10px !important;
        border-radius: 8px !important;
    }
    
    .action-card-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
        font-size: 0.9rem !important;
    }
    
    .action-card h4 {
        font-size: 0.9rem !important;
        margin-bottom: 2px !important;
    }
    
    .action-card p {
        font-size: 0.7rem !important;
        margin-bottom: 8px !important;
    }
    
    .action-card-action .btn {
        width: 34px !important;
        height: 34px !important;
        border-radius: 6px !important;
        font-size: 0.8rem !important;
    }
    
    /* System info cards */
    .system-info-grid {
        gap: 8px !important;
    }
    
    .system-info-card {
        padding: 10px !important;
        border-radius: 8px !important;
    }
    
    .system-info-title {
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
    }
    
    .system-info-item {
        font-size: 0.75rem !important;
        padding: 4px 0 !important;
    }
    
    /* Chart stats */
    .chart-stats {
        gap: 6px !important;
        margin-bottom: 10px !important;
    }
    
    .chart-stat {
        padding: 8px !important;
        border-radius: 8px !important;
    }
    
    .chart-stat-value {
        font-size: 0.85rem !important;
        margin-bottom: 2px !important;
    }
    
    .chart-stat-label {
        font-size: 0.65rem !important;
    }
    
    /* Table styles */
    .table th {
        font-size: 0.75rem !important;
        padding: 8px 6px !important;
    }
    
    .table td {
        font-size: 0.75rem !important;
        padding: 6px !important;
    }
    
    .table .me-2 {
        width: 20px !important;
        height: 20px !important;
        margin-right: 6px !important;
    }
    
    .table .fa-sm {
        font-size: 0.65rem !important;
    }
    
    /* Form elements */
    .settings-card .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
    }
    
    .settings-card .form-select,
    .settings-card .form-control {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        border-radius: 6px !important;
        height: auto !important;
    }
    
    /* Alert styles */
    .settings-card .alert-info {
        padding: 8px !important;
        border-radius: 8px !important;
        font-size: 0.75rem !important;
    }
    
    .settings-card .alert-info i {
        font-size: 1.2rem !important;
    }
    
    /* System action cards */
    .system-actions-section .action-card {
        padding: 10px !important;
    }
    
    .system-actions-section .action-card h4 {
        font-size: 0.9rem !important;
        margin-top: 6px !important;
    }
    
    .system-actions-section .action-card p {
        font-size: 0.7rem !important;
        margin-bottom: 8px !important;
    }
    
    .system-actions-section .btn {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }
    
    .settings-card .mb-3 {
        margin-bottom: 8px !important;
    }
    
    .settings-card .mb-4 {
        margin-bottom: 10px !important;
    }
}

/* ===== MOBILE BUTTON GROUP STYLES ===== */
@media (max-width: 767.98px) {
    /* Hide Audit Form button on mobile */
    .hide-on-mobile {
        display: none !important;
    }
    
    /* Modern app-like button styles */
    .mobile-button-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        width: 100%;
    }
    
    .mobile-button-group .btn {
        flex: 0 0 auto;
        width: calc(50% - 8px); /* 2 buttons per row with gap */
        min-width: 120px;
        max-width: 160px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 8px;
        border-radius: 10px;
        font-weight: 500;
        font-size: 0.9rem;
        box-shadow: 0 3px 8px rgba(0,0,0,0.12);
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
        margin-bottom: 2px;
        z-index: 1;
    }
    
    .mobile-button-group .btn:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
        z-index: -1;
    }
    
    .mobile-button-group .btn:active {
        transform: translateY(2px);
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    }
    
    .mobile-button-group .btn i {
        font-size: 1.1rem;
        margin-right: 6px;
    }
    
    /* Button colors with subtle gradients */
    .mobile-button-group .btn-primary {
        background: linear-gradient(145deg, #1a73e8 0%, #1565c0 100%);
        border: none;
    }
    
    .mobile-button-group .btn-success {
        background: linear-gradient(145deg, #34A853 0%, #2d9348 100%);
        border: none;
    }
    
    .mobile-button-group .btn-info {
        background: linear-gradient(145deg, #4285F4 0%, #3b78e7 100%);
        border: none;
    }
    
    .mobile-button-group .btn-secondary {
        background: linear-gradient(145deg, #5f6368 0%, #4a4e52 100%);
        border: none;
    }
    
    .mobile-button-group .btn-outline-danger {
        background: #fff;
        border: 1px solid #EA4335;
        color: #EA4335;
    }
    
    .mobile-button-group .btn-outline-danger:active {
        background-color: rgba(234, 67, 53, 0.1);
    }
    
    /* Ripple effect for touch feedback */
    .mobile-button-group .btn:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }
    
    .mobile-button-group .btn:active:after {
        animation: ripple 0.6s ease-out;
    }
    
    @keyframes ripple {
        0% {
            transform: scale(0, 0);
            opacity: 0.5;
        }
        20% {
            transform: scale(25, 25);
            opacity: 0.3;
        }
        100% {
            opacity: 0;
            transform: scale(40, 40);
        }
    }
    
    .mobile-card {
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        margin-bottom: 16px;
        background: #fff;
        padding: 8px 4px;
    }
    
    .mobile-card .card-body {
        padding: 12px 8px;
    }
}

/* ===== MODERN FILE INPUT STYLING ===== */
/* For both desktop and mobile */
.modern-file-input-container {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.modern-file-input-container label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.modern-file-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.modern-file-input {
    position: relative;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px dashed #d0d0d0;
    background-color: #f8f9fa;
    font-size: 1rem;
    color: #333;
    transition: all 0.2s ease;
    outline: none;
    cursor: pointer;
}

.modern-file-input:hover,
.modern-file-input:focus {
    border-color: #1a73e8;
    background-color: #f0f7ff;
}

.modern-file-input::-webkit-file-upload-button {
    visibility: hidden;
    position: absolute;
}

.modern-file-input::before {
    content: 'Browse';
    display: inline-block;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 12px 16px;
    background: linear-gradient(145deg, #1a73e8 0%, #1565c0 100%);
    color: white;
    font-weight: 500;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
}

.modern-file-input:active::before {
    background: #1565c0;
}

.file-name-display {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a73e8;
    display: flex;
    align-items: center;
    display: none;
}

.file-name-display.visible {
    display: flex;
}

.file-name-display i {
    margin-right: 6px;
    font-size: 1.1rem;
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .mobile-button-group {
        flex-wrap: wrap;
        gap: 10px !important;
        justify-content: flex-start !important;
    }
    
    .mobile-button-group .btn {
        width: auto;
        min-width: 120px;
        max-width: none;
        flex: 0 0 auto;
    }
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 767.98px) {
    /* Header Mobile Optimization */
    .site-header {
        padding: 0.75rem 0;
        position: relative;
    }
    
    .site-header .container {
        width: 100%;
        padding: 0 0.75rem;
        max-width: 100%;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-subtitle {
        font-size: 0.8rem;
    }
    
    /* Filter Card Mobile Styles */
    .filter-card {
        margin-bottom: 1rem;
    }
    
    .filter-card .card-header {
        cursor: pointer;
        padding: 0.75rem 1rem;
        background: #f8f9fa;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .filter-card .card-header h6 {
        margin: 0;
        display: flex;
        align-items: center;
        color: #495057;
    }
    
    .filter-card .card-header h6 i {
        margin-right: 0.5rem;
        color: #1a73e8;
    }
    
    .filter-card .filter-toggle-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        color: #6c757d;
        background: transparent;
        border: none;
        transition: all 0.2s ease;
    }
    
    .filter-card .filter-toggle-btn:hover {
        color: #1a73e8;
    }
    
    .filter-card .filter-card-body {
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .filter-card .filter-card-body.collapsed {
        display: none;
    }
    
    .filter-card .filter-toggle-btn i {
        transition: transform 0.3s ease;
    }
    
    .filter-card .filter-toggle-btn i.fa-chevron-up {
        transform: rotate(180deg);
    }
    
    /* Pagination Mobile Styles */
    .pagination-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        max-width: 100%;
        background: transparent;
        padding: 15px 10px;
        box-shadow: none;
        border-top: none;
    }
    
    .rows-per-page {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        font-size: 14px;
        color: #2f3640;
    }
    
    .rows-per-page label {
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .page-size-select {
        background: #dcdde1;
        border: none;
        border-radius: 8px;
        padding: 6px 10px;
        font-size: 14px;
        cursor: pointer;
        transition: background 0.3s, color 0.3s;
        min-width: 60px;
        height: auto;
        color: #2f3640;
        background-image: none;
        -webkit-appearance: menulist;
        appearance: menulist;
    }
    
    .page-size-select:hover,
    .page-size-select:focus {
        background: #00a8ff;
        color: white;
        border: none;
        box-shadow: none;
    }
    
    .pagination-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 10px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .pagination .page-item {
        margin: 0;
    }
    
    .pagination .page-link {
        border: none;
        background: #dcdde1;
        color: #2f3640;
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s, color 0.3s;
        width: auto;
        height: auto;
    }
    
    .pagination .page-link:hover {
        background: #00a8ff;
        color: white;
    }
    
    .pagination .page-item.active .page-link {
        background: #00a8ff;
        color: white;
        font-weight: bold;
        box-shadow: none;
    }
    
    .pagination .page-item.disabled .page-link {
        background: #dcdde1;
        color: #7f8fa6;
        opacity: 0.7;
    }
    
    /* Style for prev/next buttons */
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        background: #9c88ff;
        color: white;
    }
    
    /* Dropdown styles */
    .page-size-select {
        width: auto !important;
        min-width: 3.5rem;
        font-size: 0.75rem;
        padding: 0.25rem 1.5rem 0.25rem 0.5rem;
        height: 1.8rem;
        border-radius: 4px;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        font-weight: 500;
        color: #495057;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.5rem center;
        background-size: 10px;
    }
    
    .page-size-select:focus {
        border-color: #1a73e8;
        box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
        outline: none;
    }
    
    /* Remove extra padding meant for fixed pagination */
    main.container {
        padding-bottom: 1rem !important;
    }
    
    /* Update pagination fixed class to be non-fixed */
    .pagination-fixed {
        position: relative;
        bottom: auto;
        width: 100%;
        background-color: #fff;
        z-index: 10;
    }
    
    /* Modern minimal pagination for mobile */
    .mobile-pagination {
        margin-top: 0.5rem;
        border-top: none;
    }
    
    .mobile-pagination .rows-per-page {
        display: flex;
        align-items: center;
        font-size: 0.7rem;
        color: #666;
        gap: 0.25rem;
    }
    
    .mobile-pagination .rows-per-page label {
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .mobile-pagination .pagination .page-link {
        box-shadow: none;
        border: 1px solid #eee;
        margin: 0 1px;
    }
    
    .mobile-pagination .pagination .page-item.active .page-link {
        border-color: #1a73e8;
    }
    
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1030;
        padding: 0.5rem 0;
    }
    
    .nav-list {
        width: 100%;
        justify-content: space-around;
        padding: 0 0.5rem;
    }
    
    .nav-item {
        flex: 1;
        max-width: 20%;
        text-align: center;
    }
    
    .nav-link {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 0.25rem;
        font-size: 0.65rem;
        color: #555 !important;
        border-radius: 0;
    }
    
    .nav-link.active {
        color: #1a73e8 !important;
        background-color: transparent;
        position: relative;
    }
    
    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 25%;
        width: 50%;
        height: 3px;
        background-color: #1a73e8;
        border-radius: 1.5px;
    }
    
    .nav-icon {
        margin-right: 0;
        margin-bottom: 0.25rem;
        font-size: 1.2rem;
    }
}

/* ===== FORM IMPROVEMENTS ===== */
@media (max-width: 767.98px) {
    /* Form layout */
    .audit-form-container {
        display: block;
    }
    
    .audit-form-column {
        width: 100%;
    }
    
    /* Form fields */
    .form-row {
        margin: 0 -0.5rem;
    }
    
    .form-row > [class*="col-"] {
        padding: 0 0.5rem;
    }
    
    /* Make inputs larger for touch targets */
    .form-control, 
    .form-select, 
    .btn {
        font-size: 1rem;
        min-height: 2.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Checkboxes and radio buttons */
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
        margin-top: 0.15rem;
    }
    
    /* Form labels */
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
}

/* ===== TABLE IMPROVEMENTS ===== */
@media (max-width: 767.98px) {
    /* Horizontally scrollable tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.625rem 0.5rem;
        white-space: nowrap;
    }
    
    /* Remove fixed columns on mobile for reports page but keep fixed header */
    .reports-page .table-fixed-columns thead th,
    .reports-page .table thead th {
        position: sticky;
        top: 0;
        z-index: 15;
        background-color: #f8f9fa;
    }
    
    /* Remove sticky positioning from all columns on mobile */
    .reports-page .id-column,
    .reports-page .branch-column,
    .reports-page .farmer-column,
    .reports-page .action-column,
    .reports-page .username-column {
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        left: auto !important;
        right: auto !important;
        box-shadow: none !important;
        z-index: 1 !important;
    }
    
    /* Card-based table alternative for very small screens */
    @media (max-width: 575.98px) {
        .mobile-card-view .table {
            border: 0;
        }
        
        .mobile-card-view .table thead {
            display: none;
        }
        
        .mobile-card-view .table tr {
            display: block;
            border: 1px solid #dee2e6;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }
        
        .mobile-card-view .table td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-align: right;
            padding: 0.625rem 0.75rem;
            border-bottom: 1px solid #eee;
        }
        
        .mobile-card-view .table td:last-child {
            border-bottom: 0;
        }
        
        .mobile-card-view .table td::before {
            content: attr(data-label);
            font-weight: 500;
            text-align: left;
            color: #555;
        }
    }
}

/* ===== CARD IMPROVEMENTS ===== */
@media (max-width: 767.98px) {
    .card {
        margin-bottom: 1rem;
        border-radius: 0.75rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Collapsible cards for better space usage */
    .mobile-collapsible .card-header {
        cursor: pointer;
        position: relative;
    }
    
    .mobile-collapsible .card-header::after {
        content: '\f107';
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }
    
    .mobile-collapsible .card-header.collapsed::after {
        transform: translateY(-50%) rotate(-90deg);
    }
}

/* ===== MOBILE ACTION BUTTONS ===== */
@media (max-width: 767.98px) {
    .mobile-action-buttons {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 0.75rem;
        z-index: 1030;
        display: flex;
        justify-content: space-around;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-action-buttons.active {
        transform: translateY(0);
    }
    
    .mobile-action-buttons .btn {
        flex: 1;
        margin: 0 0.25rem;
        padding: 0.5rem;
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-action-buttons .btn i {
        margin-right: 0.5rem;
    }
}

/* ===== MOBILE PRINT STYLES ===== */
@media print {
    .print-page {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .print-page .print-container,
    .print-page .print-header,
    .print-page .print-body,
    .print-page .print-footer {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .print-page * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

/* ===== MOBILE LOGOUT BUTTON ===== */
.mobile-logout-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Mobile Specific Styles */
@media (max-width: 767.98px) {
    /* General mobile optimizations */
    body {
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    footer .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header/Nav adjustments for mobile */
    .site-header {
        padding: 0.75rem 0;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .site-subtitle {
        font-size: 0.8rem;
    }
    
    /* Card styling for mobile */
    .card {
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Profile page specific */
    .profile-avatar {
        margin-bottom: 1rem !important;
    }
    
    .profile-avatar i {
        font-size: 4rem !important;
    }
    
    /* Make forms more mobile-friendly */
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .input-group {
        margin-bottom: 0.75rem;
    }
    
    .input-group-text {
        padding: 0.5rem 0.75rem;
    }
    
    .form-control, .form-select {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
        height: 40px;
    }
    
    /* Button adjustments for mobile */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        border-radius: 0.375rem;
        width: 100%;
    }
    
    .d-flex.justify-content-end {
        justify-content: center !important;
        width: 100%;
    }
    
    .d-flex.justify-content-end .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Full-width cards on mobile */
    .col-md-4, .col-md-8 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Better spacing for stacked cards */
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    /* Easier to tap form elements */
    input, select, textarea, button {
        min-height: 44px;
    }
    
    /* Card headers more compact */
    .card-header .d-flex.align-items-center .me-3 {
        margin-right: 0.75rem !important;
    }
    
    .bg-primary.bg-opacity-10, 
    .bg-warning.bg-opacity-10 {
        padding: 0.5rem !important;
    }
    
    .card-header .card-title {
        font-size: 1.1rem;
    }
    
    /* Fix dropdown menu for mobile */
    .dropdown-menu {
        width: 100%;
        max-width: 250px;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    
    .dropdown-menu.show {
        margin-top: 0.25rem !important;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
    }
}

/* Reports Mobile Card View */
@media (max-width: 767.98px) {
    .table-responsive {
        display: none;
    }
    
    .mobile-cards-container {
        margin-top: 1rem;
    }
    
    /* Card styling for mobile */
    @media (max-width: 767.98px) {
        .card {
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            margin-bottom: 16px;
            border: none;
        }
        
        .card-header {
            border-radius: 10px 10px 0 0 !important;
            padding: 12px 16px;
        }
        
        .card-body {
            padding: 12px 16px;
        }

        /* Mobile report cards */
        .mobile-report-card {
            border-radius: 10px;
            box-shadow: 0 3px 12px rgba(0,0,0,0.08);
            margin-bottom: 14px;
            border: none;
            transition: transform 0.2s, box-shadow 0.2s;
            background: white;
        }
        
        .mobile-report-card:active {
            transform: translateY(1px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        
        .mobile-report-card .card-body {
            padding: 14px;
        }
        
        .mobile-report-card h6 {
            font-size: 0.95rem;
            margin-bottom: 8px;
            font-weight: 600;
            color: #333;
        }
        
        /* Improved metrics row styling */
        .mobile-card-data .metrics-row {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            margin: 8px 0 12px;
            padding: 8px;
            background-color: #f8f9fa;
            border-radius: 8px;
        }
        
        .mobile-card-data .metric-item {
            flex: 1;
            text-align: center;
            padding: 6px 4px;
            border-radius: 6px;
            position: relative;
        }
        
        .mobile-card-data .metric-item:not(:last-child)::after {
            content: '';
            position: absolute;
            right: 0;
            top: 25%;
            height: 50%;
            width: 1px;
            background-color: rgba(0,0,0,0.1);
        }
        
        .mobile-card-data .metric-value {
            font-weight: 600;
            font-size: 0.9rem;
            color: #333;
            display: block;
            margin-bottom: 2px;
        }
        
        .mobile-card-data .metric-label {
            font-size: 0.7rem;
            color: #666;
            display: block;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        /* Action buttons */
        .mobile-report-card .action-buttons {
            display: flex;
            justify-content: flex-end;
            margin-top: 10px;
            gap: 6px;
        }
        
        .mobile-report-card .btn {
            padding: 5px 10px;
            font-size: 0.75rem;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 32px;
            min-height: 32px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            border: none;
        }
        
        .mobile-report-card .btn i {
            font-size: 0.85rem;
            margin-right: 4px;
        }
    }
}

/* Modern Minimalistic Filter Card for Mobile */
@media (max-width: 767.98px) {
    /* New modern filter card */
    .filter-card {
        border: none !important;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 4px 16px rgba(0, 0, 0, 0.06) !important;
        border-radius: 16px !important;
        margin-bottom: 1.25rem;
        overflow: hidden;
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    .filter-card .card-header {
        background: linear-gradient(to right, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.1));
        border-bottom: none;
        padding: 0.875rem 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .filter-card .card-header h6 {
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.3px;
        color: #222;
        display: flex;
        align-items: center;
    }
    
    .filter-card .card-header h6 i {
        font-size: 0.9rem;
        margin-right: 8px;
        color: #0d6efd;
        background: white;
        height: 24px;
        width: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .filter-card .filter-toggle-btn {
        background: white;
        border-radius: 8px;
        width: 28px;
        height: 28px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        color: #0d6efd;
        transition: all 0.2s ease;
    }
    
    .filter-card .filter-toggle-btn:hover,
    .filter-card .filter-toggle-btn:focus {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    }
    
    .filter-card .filter-toggle-btn i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .filter-card .filter-card-body {
        padding: 1.25rem;
        transition: all 0.3s ease;
    }
    
    .filter-card .filter-card-body.collapsed {
        padding: 0 1.25rem;
        height: 0;
        overflow: hidden;
    }
    
    /* Modern form elements */
    .filter-card .form-label {
        font-size: 0.8rem;
        font-weight: 500;
        color: #555;
        margin-bottom: 0.4rem;
    }
    
    .filter-card .form-control,
    .filter-card .form-select {
        border-radius: 12px;
        border: 1px solid #e9ecef;
        padding: 0.75rem 1rem;
        height: auto;
        font-size: 0.9rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
        transition: all 0.2s ease;
    }
    
    .filter-card .form-control:focus,
    .filter-card .form-select:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    }
    
    .filter-card .input-group {
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .filter-card .input-group-text {
        background-color: #f8f9fa;
        border-color: #e9ecef;
        border-top-left-radius: 12px !important;
        border-bottom-left-radius: 12px !important;
        color: #6c757d;
        padding: 0 1rem;
    }
    
    .filter-card .bg-primary.input-group-text {
        background-color: #0d6efd !important;
    }
    
    .filter-card .form-control {
        border-top-right-radius: 12px !important;
        border-bottom-right-radius: 12px !important;
    }
    
    /* Modern buttons */
    .filter-card .btn {
        border-radius: 12px;
        padding: 0.625rem 1.25rem;
        font-weight: 500;
        letter-spacing: 0.3px;
        transition: all 0.2s ease;
    }
    
    .filter-card .btn-primary {
        background-color: #0d6efd;
        border: none;
        box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
    }
    
    .filter-card .btn-primary:hover,
    .filter-card .btn-primary:focus {
        background-color: #0b5ed7;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(13, 110, 253, 0.25);
    }
    
    .filter-card .btn-outline-secondary {
        border-color: #e9ecef;
        color: #6c757d;
    }
    
    .filter-card .btn-outline-secondary:hover,
    .filter-card .btn-outline-secondary:focus {
        background-color: #f8f9fa;
        color: #212529;
        border-color: #dee2e6;
    }
    
    /* Select2 improvements */
    .filter-card .select2-container--bootstrap-5 .select2-selection {
        border-radius: 12px;
        height: auto;
        min-height: 42px;
        border: 1px solid #e9ecef;
    }
    
    .filter-card .select2-container--bootstrap-5.select2-container--focus .select2-selection,
    .filter-card .select2-container--bootstrap-5.select2-container--open .select2-selection {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    }
}

/* Modern Mobile Header for Reports Page */
@media (max-width: 767.98px) {
    .reports-page .card > .card-header {
        background: linear-gradient(135deg, #0d6efd, #0b5ed7);
        border-radius: 16px 16px 0 0 !important;
        padding: 1.25rem;
        border: none;
        position: relative;
        overflow: hidden;
    }
    
    .reports-page .card > .card-header::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        z-index: 1;
    }
    
    .reports-page .card > .card-header::after {
        content: '';
        position: absolute;
        bottom: -30px;
        left: -30px;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        z-index: 1;
    }
    
    .reports-page .mobile-header-content {
        position: relative;
        z-index: 2;
    }
    
    .reports-page .mobile-header-title {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .reports-page .mobile-header-title .icon-container {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        height: 36px;
        width: 36px;
        border-radius: 12px;
        margin-right: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .reports-page .mobile-header-title i {
        color: white;
        font-size: 1rem;
    }
    
    .reports-page .mobile-header-title h5 {
        color: white !important;
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .reports-page .mobile-header-actions {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }
    
    .reports-page .mobile-header-actions .action-btn {
        flex: 1;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.875rem;
        transition: all 0.2s ease;
        text-decoration: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    .reports-page .mobile-header-actions .action-btn i {
        margin-right: 6px;
        font-size: 1rem;
    }
    
    .reports-page .mobile-header-actions .action-btn.print-btn {
        background-color: #20c997;
        color: white;
    }
    
    .reports-page .mobile-header-actions .action-btn.export-btn {
        background-color: white;
        color: #0d6efd;
    }
    
    .reports-page .mobile-header-actions .action-btn:active {
        transform: scale(0.98);
    }
}

/* Admin Page Mobile Styles - Matching Reports Page */
@media (max-width: 767.98px) {
    /* Admin page header styling */
    .user-management-header .card-header {
        background: linear-gradient(135deg, #0d6efd, #0b5ed7);
        border-radius: 16px 16px 0 0 !important;
        padding: 1.25rem;
        border: none;
        position: relative;
        overflow: hidden;
    }
    
    .user-management-header .card-header::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        z-index: 1;
    }
    
    .user-management-header .card-header::after {
        content: '';
        position: absolute;
        bottom: -30px;
        left: -30px;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        z-index: 1;
    }
    
    /* Mobile admin header content */
    .admin-mobile-header-content {
        position: relative;
        z-index: 2;
    }
    
    .admin-mobile-header-title {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .admin-mobile-header-title .icon-container {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.2);
        height: 36px;
        width: 36px;
        border-radius: 12px;
        margin-right: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .admin-mobile-header-title i {
        color: white;
        font-size: 1rem;
    }
    
    .admin-mobile-header-title h1 {
        color: white !important;
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    /* Add user button */
    .admin-mobile-header-actions {
        margin-top: 1rem;
    }
    
    .admin-mobile-header-actions .btn {
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 24px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        background-color: white;
        color: #0d6efd;
        width: 100%;
    }
    
    .admin-mobile-header-actions .btn i {
        margin-right: 8px;
        font-size: 1rem;
    }
    
    .admin-mobile-header-actions .btn:active {
        transform: scale(0.98);
    }
    
    /* User cards for mobile */
    .mobile-user-card-container {
        margin-top: 1rem;
    }
    
    .mobile-user-card {
        border-radius: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: none;
        overflow: hidden;
        background: linear-gradient(to bottom, #ffffff, #f8f9fa);
        margin-bottom: 1rem;
    }
    
    .mobile-user-card .card-body {
        padding: 1.25rem;
    }
    
    .mobile-user-card .user-details {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .mobile-user-card .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background-color: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        color: #6c757d;
    }
    
    .mobile-user-card .user-info {
        flex: 1;
    }
    
    .mobile-user-card .user-name {
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 0.25rem;
        color: #333;
    }
    
    .mobile-user-card .user-username {
        font-size: 0.85rem;
        color: #6c757d;
    }
    
    .mobile-user-card .user-role {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
    }
    
    .mobile-user-card .user-meta {
        background: #f8f9fa;
        border-radius: 0.75rem;
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .mobile-user-card .meta-item {
        display: flex;
        justify-content: space-between;
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }
    
    .mobile-user-card .meta-label {
        color: #6c757d;
    }
    
    .mobile-user-card .meta-value {
        font-weight: 500;
        color: #333;
    }
    
    .mobile-user-card .action-buttons {
        display: flex;
        gap: 0.5rem;
    }
    
    .mobile-user-card .action-btn {
        flex: 1;
        padding: 0.5rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: 600;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .mobile-user-card .action-btn i {
        margin-right: 4px;
    }
    
    .mobile-user-card .edit-btn {
        background-color: #0d6efd;
        color: white;
    }
    
    .mobile-user-card .password-btn {
        background-color: #ffc107;
        color: #212529;
    }
    
    .mobile-user-card .delete-btn {
        background-color: #dc3545;
        color: white;
    }
}

/* Settings Page Mobile Styles */
@media (max-width: 767.98px) {
    /* Settings header */
    .settings-container {
        padding: 0 0.75rem;
    }

    .settings-header {
        border-radius: 16px;
        margin-bottom: 1.25rem;
        padding: 1.25rem;
        background: linear-gradient(135deg, #0d6efd, #3a8dff);
        position: relative;
        overflow: hidden;
    }
    
    .settings-header::before, 
    .settings-header::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .settings-header::before {
        width: 150px;
        height: 150px;
        top: -50px;
        right: -60px;
    }
    
    .settings-header::after {
        width: 100px;
        height: 100px;
        bottom: -30px;
        left: -40px;
    }
    
    .settings-header-title {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
    }
    
    .settings-header-subtitle {
        opacity: 0.85;
        font-size: 0.9rem;
    }
    
    .settings-header-top {
        margin-bottom: 1.25rem !important;
    }
    
    .settings-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .settings-stat {
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .settings-stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    .settings-stat-text .stat-value {
        font-size: 1.1rem;
    }
    
    .settings-stat-text .stat-label {
        font-size: 0.75rem;
    }
    
    /* Mobile tabs */
    .settings-tabs-mobile {
        display: flex;
        justify-content: space-between;
        background-color: #f8f9fa;
        border-radius: 12px;
        padding: 0.5rem;
        margin-bottom: 1.25rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .settings-tab-mobile {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 0.25rem;
        border-radius: 8px;
        transition: all 0.25s ease;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        user-select: none;
        z-index: 1;
    }
    
    .settings-tab-mobile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(13, 110, 253, 0.04);
        transform: scaleY(0);
        transform-origin: bottom;
        transition: transform 0.3s ease;
        z-index: -1;
        border-radius: 8px;
    }
    
    .settings-tab-mobile:active {
        transform: scale(0.95);
    }
    
    .settings-tab-mobile:active::before {
        transform: scaleY(1);
    }
    
    .settings-tab-mobile.active {
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
    }
    
    .settings-tab-mobile.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 3px;
        background-color: #0d6efd;
        border-radius: 3px;
        animation: tabIndicatorPulse 2s infinite;
    }
    
    @keyframes tabIndicatorPulse {
        0% { opacity: 0.7; width: 15px; }
        50% { opacity: 1; width: 25px; }
        100% { opacity: 0.7; width: 15px; }
    }
    
    .settings-tab-mobile-icon {
        background: linear-gradient(135deg, #f0f4ff, #e6eeff);
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0.5rem;
        color: #6c757d;
        transition: all 0.25s ease;
        position: relative;
        overflow: hidden;
    }
    
    .settings-tab-mobile-icon::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
        top: -50%;
        left: -50%;
        opacity: 0;
        transition: all 0.5s ease;
    }
    
    .settings-tab-mobile:active .settings-tab-mobile-icon::after {
        opacity: 1;
        transform: translate(50%, 50%);
    }
    
    .settings-tab-mobile.active .settings-tab-mobile-icon {
        background: linear-gradient(135deg, #e6efff, #d4e4ff);
        color: #0d6efd;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(13, 110, 253, 0.15);
    }
    
    .settings-tab-mobile-text {
        font-size: 0.75rem;
        font-weight: 600;
        color: #6c757d;
        transition: all 0.25s ease;
    }
    
    .settings-tab-mobile.active .settings-tab-mobile-text {
        color: #0d6efd;
    }
    
    /* Settings cards */
    .settings-card {
        border-radius: 12px;
        margin-bottom: 1.25rem;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    }
    
    .settings-card-header {
        padding: 1rem;
        align-items: center;
    }
    
    .settings-card-header-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }
    
    .settings-card-header-text h3 {
        font-size: 1.1rem;
    }
    
    .settings-card-header-text p {
        font-size: 0.8rem;
    }
    
    .settings-card-body {
        padding: 1.25rem 1rem;
    }
    
    /* Action cards */
    .action-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-card {
        position: relative;
        border-radius: 12px;
        background: linear-gradient(to bottom, #ffffff, #f8f9fa);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .action-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 4px;
        width: 100%;
        background: linear-gradient(90deg, rgba(13,110,253,0.8) 0%, rgba(13,110,253,0.2) 100%);
        transition: all 0.3s ease;
        opacity: 0.7;
    }
    
    .action-card:active {
        transform: scale(0.98);
    }
    
    .action-card-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .action-card-icon::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
        top: -50%;
        left: -50%;
        opacity: 0;
        transition: all 0.5s ease;
    }
    
    .action-card:active .action-card-icon::after {
        opacity: 1;
        transform: translate(50%, 50%);
    }
    
    .action-card h4 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    
    .action-card p {
        font-size: 0.85rem;
        color: #6c757d;
        margin-bottom: 1rem;
    }
    
    .action-card-action {
        align-self: flex-end;
    }
    
    .action-card-action .btn {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .action-card-action .btn:active {
        transform: scale(0.95);
    }
    
    /* System info section */
    .system-info-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .system-info-card {
        background-color: #f8f9fa;
        border-radius: 12px;
        padding: 1rem;
    }
    
    .system-info-title {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        color: #495057;
    }
    
    .system-info-title i {
        margin-right: 0.5rem;
        color: #0d6efd;
    }
    
    .system-info-item {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .system-info-key {
        color: #6c757d;
    }
    
    .system-info-value {
        font-weight: 500;
        color: #212529;
    }
    
    /* System actions section */
    .system-actions-section .action-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
        border: none;
        background: linear-gradient(135deg, #ffffff, #f8f9fa);
        position: relative;
        overflow: hidden;
    }
    
    .system-actions-section .action-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 4px;
        background-color: var(--primary-color);
        border-radius: 0 4px 4px 0;
    }
    
    .system-actions-section .action-card:nth-child(2)::after {
        background-color: var(--success-color);
    }
    
    .system-actions-section .action-card:nth-child(3)::after {
        background-color: var(--warning-color);
    }
    
    .system-actions-section .action-card:nth-child(4)::after {
        background-color: var(--info-color);
    }
    
    .system-actions-section .action-card .btn {
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 500;
        padding: 0.6rem 0.75rem;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    /* Charts and storage section */
    .chart-container {
        margin: 1.5rem 0;
        height: 180px;
    }
    
    .chart-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }
    
    .chart-stat {
        background-color: #f8f9fa;
        border-radius: 12px;
        padding: 0.75rem;
        text-align: center;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .chart-stat::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        opacity: 0.7;
    }
    
    .chart-stat:active {
        transform: scale(0.98);
    }
    
    .chart-stat.database::before {
        background-color: var(--primary-color);
    }
    
    .chart-stat.files::before {
        background-color: var(--success-color);
    }
    
    .chart-stat.cache::before {
        background-color: var(--info-color);
    }
    
    .chart-stat-value {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        transition: all 0.2s ease;
    }
    
    .chart-stat:active .chart-stat-value {
        transform: scale(1.05);
    }
    
    .chart-stat-label {
        font-size: 0.75rem;
        color: #6c757d;
    }
    
    /* Form elements */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    
    .form-control,
    .form-select {
        border-radius: 10px;
        padding: 0.6rem 1rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
        font-size: 0.9rem;
    }
    
    /* Alerts */
    .alert {
        border-radius: 12px;
        padding: 0.9rem 1rem;
        margin-bottom: 1.25rem;
    }
    
    .alert-icon {
        margin-right: 0.5rem;
    }
    
    /* Enhanced action cards */
    .action-card {
        position: relative;
        border-radius: 12px;
        background: linear-gradient(to bottom, #ffffff, #f8f9fa);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .action-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 4px;
        width: 100%;
        background: linear-gradient(90deg, rgba(13,110,253,0.8) 0%, rgba(13,110,253,0.2) 100%);
        transition: all 0.3s ease;
        opacity: 0.7;
    }
    
    .action-card:active {
        transform: scale(0.98);
    }
    
    .action-card-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .action-card-icon::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%);
        top: -50%;
        left: -50%;
        opacity: 0;
        transition: all 0.5s ease;
    }
    
    .action-card:active .action-card-icon::after {
        opacity: 1;
        transform: translate(50%, 50%);
    }
    
    .action-card h4 {
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }
    
    .action-card p {
        font-size: 0.85rem;
        color: #6c757d;
        margin-bottom: 1rem;
    }
    
    .action-card-action {
        align-self: flex-end;
    }
    
    .action-card-action .btn {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .action-card-action .btn:active {
        transform: scale(0.95);
    }
    
    /* Enhanced chart stats */
    .chart-stat {
        background-color: #f8f9fa;
        border-radius: 12px;
        padding: 0.75rem;
        text-align: center;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .chart-stat::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        opacity: 0.7;
    }
    
    .chart-stat:active {
        transform: scale(0.98);
    }
    
    .chart-stat.database::before {
        background-color: var(--primary-color);
    }
    
    .chart-stat.files::before {
        background-color: var(--success-color);
    }
    
    .chart-stat.cache::before {
        background-color: var(--info-color);
    }
    
    .chart-stat-value {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        transition: all 0.2s ease;
    }
    
    .chart-stat:active .chart-stat-value {
        transform: scale(1.05);
    }
    
    .chart-stat-label {
        font-size: 0.75rem;
        color: #6c757d;
    }
    
    /* Form submit button effects */
    .settings-card .btn-primary, 
    .settings-card .btn-success, 
    .settings-card .btn-danger, 
    .settings-card .btn-info,
    .settings-card .btn-warning {
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .settings-card .btn-primary::after, 
    .settings-card .btn-success::after, 
    .settings-card .btn-danger::after, 
    .settings-card .btn-info::after,
    .settings-card .btn-warning::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 70%);
        top: -50%;
        left: -50%;
        opacity: 0;
        transition: all 0.5s ease;
    }
    
    .settings-card .btn-primary:active::after, 
    .settings-card .btn-success:active::after, 
    .settings-card .btn-danger:active::after, 
    .settings-card .btn-info:active::after,
    .settings-card .btn-warning:active::after {
        opacity: 1;
        transform: translate(50%, 50%);
    }
}