/* --- GLOBALE VARIABLEN --- */
:root {
    --primary-color: #2563eb;    /* Modernes Blau */
    --accent-color: #f6821f;     /* Cloudflare Orange */
    --bg-color: #f8fafc;         /* Hellgrauer Hintergrund */
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
}

/* --- BASIS STYLES --- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 900px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

h1 {
    color: var(--primary-color);
    font-size: 1.75rem;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 15px;
    margin-top: 0;
}

/* --- INDEX / DATEI-LISTE --- */
.file-list {
    list-style: none;
    padding: 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.file-item a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
}

.file-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- TABELLEN STYLES --- */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
}

thead {
    background-color: #f1f5f9;
}

th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

tr:hover {
    background-color: #f8fafc;
}

/* --- BADGES (STATUS) --- */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-done { background: #dcfce7; color: #166534; }
.status-progress { background: #fef9c3; color: #854d0e; }

/* --- BUTTONS & LINKS --- */
.back-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}
