/* ==================== DASHBOARD STYLES ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    line-height: 1.6;
}

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #ffb13b 0%, #00fffd 100%);
    padding: 20px;
}

.auth-container {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.auth-container h1 {
    font-size: 1.8rem;
    color: #004f53;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-container p {
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-weight: 600;
    color: #333;
}

.auth-form input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #ffb13b;
    box-shadow: 0 0 0 3px rgba(255, 177, 59, 0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ffb13b 0%, #00fffd 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 177, 59, 0.3);
}

.btn-logout {
    background: #f0f0f0;
    color: #333;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: #e0e0e0;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.error-message {
    color: #d32f2f;
    text-align: center;
    font-size: 0.9rem;
}

/* Dashboard */
.dashboard {
    min-height: 100vh;
    background: #f5f5f5;
}

.dashboard-nav {
    background: linear-gradient(135deg, #ffb13b 0%, #00fffd 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ddd;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #ffb13b;
}

.tab-btn.active {
    color: #ffb13b;
    border-bottom-color: #ffb13b;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content h2 {
    color: #004f53;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffb13b 0%, #00fffd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Charts */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    color: #004f53;
    margin-bottom: 1.5rem;
}

.chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 5px;
}

.chart-item span:first-child {
    font-weight: 600;
    color: #333;
}

.chart-item span:last-child {
    background: linear-gradient(135deg, #ffb13b 0%, #00fffd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-section input,
.filter-section select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    flex: 1;
    min-width: 150px;
}

.filter-section input:focus,
.filter-section select:focus {
    outline: none;
    border-color: #ffb13b;
}

/* Reports Container */
.reports-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.report-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.report-header {
    background: linear-gradient(135deg, #ffb13b 0%, #00fffd 100%);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.report-date {
    font-size: 0.8rem;
    opacity: 0.9;
}

.report-details {
    padding: 1.5rem;
}

.report-details p {
    margin-bottom: 0.75rem;
    color: #555;
}

.report-photo {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 1rem;
}

/* QR Code Section */
.qr-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.qr-code-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.qr-code-container canvas {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
}

.qr-section .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.qr-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-info h4 {
    color: #004f53;
    margin-bottom: 1rem;
}

.qr-info ol {
    margin-left: 1.5rem;
    color: #555;
}

.qr-info li {
    margin-bottom: 0.75rem;
}

/* Export Section */
.export-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.export-section h3 {
    color: #004f53;
    margin-bottom: 1rem;
}

.export-section p {
    color: #666;
    margin-bottom: 1.5rem;
}

.export-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.export-buttons .btn {
    flex: 1;
    min-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .reports-container {
        grid-template-columns: 1fr;
    }

    .filter-section {
        flex-direction: column;
    }

    .filter-section input,
    .filter-section select {
        width: 100%;
    }

    .export-buttons {
        flex-direction: column;
    }

    .export-buttons .btn {
        width: 100%;
    }
}
