/* WasteIO Dashboard Styles - FHT.2025 Style */

@font-face {
    font-family: 'FCIconic-KHOR';
    src: url('fonts/FCIconic-KHOR.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: auto;
    font-family: 'FCIconic-KHOR', Arial, sans-serif !important;
}

body {
    font-family: 'FCIconic-KHOR', Arial, sans-serif;
    background: #ffffff;
    color: #333;
}

.header {
    background: white;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 10px;
}

.logo {
    height: 65px;
    width: auto;
}

.title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.business-info {
    margin-left: auto;
    text-align: right;
    font-size: 14px;
    color: #6b7280;
}

.time-info {
    margin-top: 8px;
    font-size: 12px;
    color: #5c5c5c;
}

.time-info span {
    display: block;
    margin-bottom: 2px;
}

.business-name {
    font-weight: 600;
    color: #000000;
}

.dashboard {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 100px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Mobile: Single column */
@media (max-width: 768px) {
    .dashboard {
        padding: 15px;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .card {
        padding: 15px;
    }
    
    .card-content {
        height: 250px;
    }
    
    .header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .business-info {
        margin-left: 0;
        text-align: center;
    }
    
    .logo {
        height: 40px;
    }
    
    .title {
        font-size: 20px;
    }
}

/* Tablet: 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1025px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .card-content {
        height: 350px;
    }
}

/* Large Desktop: 3 columns with larger cards */
@media (min-width: 1440px) {
    .dashboard {
        padding: 30px;
    }
    
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .card {
        padding: 25px;
    }
    
    .card-content {
        height: 400px;
    }
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.card-header {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    min-height: 60px;
}

.header-text {
    flex: 1;
    line-height: 1.2;
}

.header-text div:first-child {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
}

.header-text div:last-child {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
}

.card-content {
    height: 300px;
    position: relative;
}

.chart-container {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-wrapper {
    position: relative;
    height: 100%;
}

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

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: center;
}

.recent-activity {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: center;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.activity-label {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 14px;
    color: #6b7280;
}

.activity-value {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.system-status {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: center;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.status-label {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 14px;
    color: #6b7280;
}

.status-value {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.status-value.connected {
    color: #10b981;
}

/* FHT.2025 Style Waste Breakdown Card */
.waste-breakdown {
    display: flex;
    flex-direction: column;
}

.waste-total-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.waste-total-label {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
}

.waste-total-unit {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 20px;
    color: #6b7280;
}

.waste-bottom-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    margin-top: auto;
}

.waste-total-value {
    font-size: 60px;
    font-weight: bold;
    color: #1f2937;
    text-align: right;
    margin-top: 3rem;
}

.waste-breakdown-bar {
    display: flex;
    width: 100%;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #c1c1c1;
    background-color: #f9fafb;
}

.breakdown-segment {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breakdown-segment:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.breakdown-segment:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.breakdown-percentage {
    font-size: 10px;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.breakdown-percentages {
    text-align: left;
    width: 100%;
}

.breakdown-percentage-label {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 12px;
    color: #6b7280;
    text-align: left;
    font-weight: 500;
    flex-shrink: 0;
}

.waste-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.waste-item-label {
    font-size: 14px;
    color: #1f2937;
}

.waste-item-unit {
    font-size: 12px;
    color: #6b7280;
}

.waste-item-value {
    font-size: 32px;
    font-weight: bold;
    color: #1f2937;
    text-align: right;
    margin-bottom: 5px;
}

.waste-item-percentage {
    font-size: 14px;
    color: #1f2937;
}

.waste-item-progress {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
}

.waste-breakdown-container {
    position: relative;
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 20px 0;
}

.waste-breakdown-container.fade-in {
    opacity: 1;
}

.waste-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.auto-rotate-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #c1c1c1;
    margin-top: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.countdown-clock {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: conic-gradient(#6b7280 0deg, #e5e7eb 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #1f2937;
    font-weight: bold;
    transition: background 0.1s ease;
}

/* LO-FI Wireframe Layout Styles */
.waste-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.waste-item-label {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.waste-item-unit {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 14px;
    color: #6b7280;
}

.waste-content-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 15px;
    height: calc(100% - 60px);
    min-height: 200px;
}

.waste-image-section {
    flex: 0 0 150px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.waste-image-container {
    width: 150px;
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    position: relative;
}

.waste-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.waste-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.waste-stats-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    min-height: 200px;
}

.waste-total-value {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 80px;
    font-weight: bold;
    color: #000000;
    text-align: right;
    line-height: 1;
    margin-bottom: auto;
    margin-top: 5rem;
}

.waste-progress-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-bottom: 10px;
}

.waste-item-progress {
    width: 100%;
    height: 20px;
    background-color: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.waste-item-percentage {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-align: left !important;
    margin-top: 10px;
    display: block;
    width: 100%;
}

.waste-total-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: calc(100% - 60px);
    min-height: 200px;
    margin-top: 15px;
}

.waste-total-section .waste-image-section {
    align-self: center;
    margin-top: 20px;
}

.waste-breakdown-bar {
    display: flex;
    width: 100%;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #c1c1c1;
    background-color: #f9fafb;
}

.breakdown-segment {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breakdown-segment:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.breakdown-segment:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.breakdown-percentages {
    display: flex;
    text-align: left;
    margin-top: 10px;
    width: 100%;
}

.breakdown-percentage-label {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 12px;
    color: #6b7280;
    text-align: left;
    font-weight: 500;
    flex-shrink: 0;
}

/* Section Separator */
.section-separator {
    margin: 30px auto;
    width: 100%;
    height: 2px;
    background-color: #c0c0c0;
    border: none;
}

/* Table Title */
.table-title {
    display: block;
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    text-align: left;
    margin: 20px 0 40px;
}

/* Chart Legend Text Wrapping */
.chartjs-legend {
    max-width: 200px !important;
}

.chartjs-legend li {
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
}

.chartjs-legend li span {
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* Table Section Styles - Moved below cards */
.table-section {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    margin-top: 20px;
}

.table-header {
    background: #343a40;
    color: white;
    padding: 20px;
    text-align: center;
}

.table-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
}

.table th {
    background: #f8f9fa;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    text-align: center;
}

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

.table tbody tr:first-child {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

.status-icon.sorted {
    background: #d4edda;
    color: #155724;
}

.status-icon.incorrect {
    background: #f8d7da;
    color: #721c24;
}

.timestamp {
    font-size: 0.9rem;
    color: #6c757d;
}

.tally-counter {
    font-weight: bold;
    color: #495057;
    text-align: center;
}

.colored-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 auto;
}

.subtype-cell {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.header-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #333;
    display: inline-block;
    margin: 0 auto;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #495057;
}

.entries-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entries-per-page select {
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-button {
    padding: 8px 15px;
    border: 1px solid #ced4da;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pagination-button:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
}

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

.page-info {
    padding: 8px 15px;
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

/* Waste category colors matching the preview output table */
.colored-dot.recyclableWaste { background-color: hsl(54, 93%, 61%); }      /* Yellow-Green */
.colored-dot.combustibleWaste { background-color: hsl(29, 99%, 60%); }     /* Orange */
.colored-dot.generalWaste { background-color: hsl(209, 100%, 36%); }       /* Blue */
.colored-dot.organicWaste { background-color: hsl(129, 47%, 48%); }        /* Green */
.colored-dot.constructionWaste { background-color: hsl(60, 4%, 38%); }     /* Brown */
.colored-dot.electronicWaste { background-color: hsl(120, 100%, 49%); }    /* Bright Green */
.colored-dot.hazardousWaste { background-color: hsl(358, 75%, 55%); }      /* Red */
.colored-dot.infectiousWaste { background-color: hsl(354, 84%, 64%); }     /* Pink-Red */
.colored-dot.landfillWaste { background-color: hsl(0, 0%, 0%); }           /* Black */
.colored-dot.gardenWaste { background-color: hsl(90, 55%, 71%); }          /* Light Green */
.colored-dot.nonrecyclableWaste { background-color: hsl(53, 100%, 86%); }  /* Light Yellow */
.colored-dot.noncombustibleWaste { background-color: hsl(206, 4%, 34%); }  /* Dark Gray */
.colored-dot.packagingWaste { background-color: hsl(225, 2%, 65%); }       /* Gray */
.colored-dot.usedCookingOilWaste { background-color: hsl(25, 38%, 40%); }  /* Brown */

/* Fallback for unknown categories */
.colored-dot.other { background-color: #6c757d; }

.thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.thumbnail-placeholder {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.8rem;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 10px;
    margin: 20px 0;
}

.most-sorted-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
}

.most-sorted-category {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
    text-align: left;
    flex: 1;
}

.most-sorted-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.most-sorted-count {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
}

.most-sorted-percent {
    font-size: 1.4rem;
    color: #000;
}

.colored-ring {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.stats-text h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.stat-label {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 1.1rem;
    color: #666;
}

.stat-value {
    font-family: 'FCIconic-KHOR', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
}

.stat-value.total { color: #6c757d; }
.stat-value.sorted { color: #28a745; }
.stat-value.incorrect { color: #dc3545; }

.table-section {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.table-header {
    background: #343a40;
    color: white;
    padding: 20px;
    text-align: center;
}

.table-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.table-header p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
}

.table th {
    background: #f8f9fa;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    text-align: center;
}

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

.table tbody tr:first-child {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

.status-icon.sorted {
    background: #d4edda;
    color: #155724;
}

.status-icon.incorrect {
    background: #f8d7da;
    color: #721c24;
}

.timestamp {
    font-size: 0.9rem;
    color: #6c757d;
}

.tally-counter {
    font-weight: bold;
    color: #495057;
    text-align: center;
}

.colored-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin: 0 auto;
}

.subtype-cell {
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.header-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #333;
    display: inline-block;
    margin: 0 auto;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #495057;
}

.entries-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.entries-per-page select {
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-button {
    padding: 8px 15px;
    border: 1px solid #ced4da;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pagination-button:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
}

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

.page-info {
    padding: 8px 15px;
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

/* Waste category colors matching the preview output table */
.colored-dot.recyclableWaste { background-color: hsl(54, 93%, 61%); }      /* Yellow-Green */
.colored-dot.combustibleWaste { background-color: hsl(29, 99%, 60%); }     /* Orange */
.colored-dot.generalWaste { background-color: hsl(209, 100%, 36%); }       /* Blue */
.colored-dot.organicWaste { background-color: hsl(129, 47%, 48%); }        /* Green */
.colored-dot.constructionWaste { background-color: hsl(60, 4%, 38%); }     /* Brown */
.colored-dot.electronicWaste { background-color: hsl(120, 100%, 49%); }    /* Bright Green */
.colored-dot.hazardousWaste { background-color: hsl(358, 75%, 55%); }      /* Red */
.colored-dot.infectiousWaste { background-color: hsl(354, 84%, 64%); }     /* Pink-Red */
.colored-dot.landfillWaste { background-color: hsl(0, 0%, 0%); }           /* Black */
.colored-dot.gardenWaste { background-color: hsl(90, 55%, 71%); }          /* Light Green */
.colored-dot.nonrecyclableWaste { background-color: hsl(53, 100%, 86%); }  /* Light Yellow */
.colored-dot.noncombustibleWaste { background-color: hsl(206, 4%, 34%); }  /* Dark Gray */
.colored-dot.packagingWaste { background-color: hsl(225, 2%, 65%); }       /* Gray */
.colored-dot.usedCookingOilWaste { background-color: hsl(25, 38%, 40%); }  /* Brown */

/* Fallback for unknown categories */
.colored-dot.other { background-color: #6c757d; }

.thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.thumbnail-placeholder {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.8rem;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.error {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    background: #f8d7da;
    border-radius: 10px;
    margin: 20px 0;
}

.auth-status {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-status span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.auth-status button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

.auth-status button:hover {
    background: rgba(255,255,255,0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-section {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .pie-chart-container,
    .stats-text {
        padding: 10px;
    }
    
    .chart-wrapper {
        max-width: 320px;
        height: 220px;
    }
    
    .table-container {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
    }
    
    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-info,
    .pagination-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .countdown-timer {
        right: 10px;
    }
    
    .countdown-circle {
        width: 40px;
        height: 40px;
    }
    
    .countdown-svg {
        width: 40px;
        height: 40px;
    }
    
    .countdown-text {
        font-size: 10px;
    }
    
    .dashboard-content {
        padding: 10px;
    }
    
    .pie-chart-container,
    .stats-text {
        padding: 10px;
    }
    
    .chart-wrapper {
        max-width: 260px;
        height: 200px;
    }
    
    .table th,
    .table td {
        padding: 6px 4px;
        font-size: 0.8rem;
    }
    
    .thumbnail {
        width: 30px;
        height: 30px;
    }
    
    .colored-dot {
        width: 12px;
        height: 12px;
    }
    
    .pagination-container {
        padding: 15px 10px;
    }
    
    .pagination-button {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .page-info {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

