:root {
    --primary: oklch(25.11% 0.006 258.36);
    --secondary: oklch(56.82% 0.004 247.89);
    --accent: oklch(84.61% 0.004 286.31);
    --light: #f8f9fa;
    --dark: #212529;
    --success: #6ede8a;
    --warning: #ffcb77;
    --danger: #ff6b6b;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        sans-serif;
}

body {
    background-color: oklch(25.11% 0.006 258.36);
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--primary);
    color: oklch(84.61% 0.004 286.31);
    padding: 1.5rem 0;
    text-align: center;
    /* box-shadow: var(--shadow); */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.card {
    background-color: oklch(35.02% 0.005 236.66);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

h1,
h2,
h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--accent);
}

.file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--secondary);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    transition: var(--transition);
    background-color: rgba(91, 192, 190, 0.05);
}

.file-upload:hover {
    border-color: var(--primary);
    background-color: rgba(91, 192, 190, 0.1);
}

#file-input {
    display: none;
}

.upload-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
}

.upload-btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: oklch(52.79% 0.005 271.32);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    /* border-left: 4px solid var(--secondary); */
}

.stat-title {
    font-size: 0.875rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-description {
    font-size: 0.875rem;
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--accent);
}

input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    background-color: oklch(52.79% 0.005 271.32);
    color: var(--accent);
    font-size: 1rem;
    transition: var(--transition);
}

input[type="number"]:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 192, 190, 0.25);
}

.reading-times {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.time-card {
    flex: 1;
    min-width: 200px;
    background-color: oklch(52.79% 0.005 271.32);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    text-align: center;
    /* border-top: 4px solid var(--secondary); */
}

.time-label {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.time-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-info {
    background-color: rgba(91, 192, 190, 0.2);
    /* border-left: 4px solid var(--secondary); */
    color: var(--accent);
}

.alert-warning {
    background-color: rgba(255, 203, 119, 0.2);
    border-left: 4px solid var(--warning);
    color: #856404;
}

.alert-danger {
    background-color: rgba(255, 107, 107, 0.2);
    border-left: 4px solid var(--danger);
    color: #721c24;
}

.flex-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.flex-item {
    flex: 1;
    min-width: 300px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge-primary {
    background-color: var(--primary);
    color: white;
}

.badge-secondary {
    background-color: var(--secondary);
    color: white;
}

.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--secondary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

footer {
    background-color: oklch(25.11% 0.006 258.36);
    color: oklch(56.82% 0.004 247.89);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
}

.hidden {
    display: none;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background-color: var(--light);
    font-weight: 600;
    color: var(--primary);
}

tr:hover {
    background-color: rgba(91, 192, 190, 0.05);
}

/* Progress bar */
.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-bar {
    height: 100%;
    background-color: oklch(74.61% 0.171 51.56);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

.progress-container {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(91, 192, 190, 0.1);
    border-radius: var(--border-radius);
}

.progress-status {
    margin-top: 0.5rem;
    font-weight: 500;
    color: var(--accent);
}

.progress-detail {
    font-size: 0.875rem;
    color: var(--accent);
    margin-top: 0.25rem;
}
