.table-responsive::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.table-responsive {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 8px; 
    border: 1px solid #e9ecef;
}

#dataTable th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1); 
    color: #495057;
}

.pagination-controls {
    border-top: 1px solid #dee2e6;
    padding-top: 15px; 
    margin-top: 10px;
}

/* --- Modal Styles --- */

.image-modal-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    transition: transform 0.3s ease;
}

.image-modal-img:hover {
    transform: scale(1.02);
}

.modal-content {
    border-radius: 12px; 
    border: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.modal-header {
    background: linear-gradient(135deg, #198754 0%, #0d5134 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}

.modal-footer {
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e9ecef;
}

/* --- Logo Styles --- */

.logo-img {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}

.logo-main {
    max-width: 100%;
    height: auto;
    padding: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.logo-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); } 
}

.logo-animated {
    animation: logo-pulse 3s ease-in-out infinite;
}

footer img {
    opacity: 0.85;
    transition: all 0.3s ease;
}

footer img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* --- Stats Box Styles (Improved) --- */

.stats-box {
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 15px; 
    z-index: 1000;
    font-size: 11px;
    font-family: 'Segoe UI Mono', 'Courier New', monospace; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 200px; 
    transition: opacity 0.3s ease;
}

.stats-box:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.stats-box h6 {
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: 13px; 
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef; 
    padding-bottom: 6px;
    letter-spacing: 0.5px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    line-height: 1.4;
}

.stat-label {
    font-weight: 600;
    color: #6c757d;
}

.stat-value {
    font-weight: bold;
    color: #198754; 
}

#chartContainer {
    position: relative;
    border-radius: 8px;
    overflow: hidden; 
}


.monthly-options {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #0d6efd;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.stats-summary {
    font-family: 'Courier New', monospace;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.85rem;
}

.stats-summary strong {
    color: #0d6efd;
}

.month-picker {
    background-color: white;
    border: 2px solid #0d6efd;
    border-radius: 5px;
    padding: 5px;
    transition: all 0.3s ease;
}

.month-picker:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #0a58ca;
}


.monthly-options-simple {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 8px;
}

.stats-summary-monthly {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 5px;
    padding: 8px;
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.3;
}

.stats-summary-monthly strong {
    color: #0d6efd;
}

.month-selection {
    background-color: white;
    border: 2px solid #0d6efd;
    border-radius: 5px;
    padding: 4px 8px;
    transition: all 0.2s ease;
}

.month-selection:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    border-color: #0a58ca;
}



#progressContainer {
    margin-top: 1rem;
    transition: opacity 0.3s ease;
}

.progress {
    height: 25px;
    border-radius: 12px;
    background-color: #f0f0f0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.progress-bar {
    position: relative;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
    background-image: linear-gradient(45deg, 
        rgba(255,255,255,.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,.15) 50%, 
        rgba(255,255,255,.15) 75%, 
        transparent 75%, 
        transparent);
    background-size: 1rem 1rem;
}

#progressText {
    display: block;
    text-align: center;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}


.input-group .btn {
    border-top-right-radius: 0.25rem !important;
    border-bottom-right-radius: 0.25rem !important;
}