/**
 * assets/theme.css
 * Zentrales Stylesheet für das PhV Abrechnungsportal
 * Enthält Basis-Stile und das Admin-Layout (Backend)
 */

 :root {
    /* Diese Variablen werden in der PHP-Datei überschrieben */
    --color-primary: #004a99;
    --color-accent: #e30613;
    --color-bg: #f8f9fa;
    --color-text: #333;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --radius-md: 8px;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* --- Layout Komponenten --- */
.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary { background-color: var(--color-primary); color: white; }
.btn-accent { background-color: var(--color-accent); color: white; }
.btn:hover { opacity: 0.9; }

/* --- Admin / Backend Layout --- */
.admin-nav {
    background: #1a1a1a;
    color: #fff;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 15px;
}

.sidebar-layout {
    display: flex;
    min-height: calc(100vh - 120px);
}

.sidebar {
    width: 250px;
    background: #fff;
    border-right: 1px solid #ddd;
    padding: 1.5rem;
}

.main-content {
    flex-grow: 1;
    padding: 2rem;
    background: #fdfdfd;
}

/* --- Sidebar Navigation --- */
.nav-list { list-style: none; padding: 0; margin: 0; }
.nav-item {
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
}

.nav-item:hover { background: #f0f0f0; }
.nav-item.active { background: var(--color-primary); color: white; }

/* --- Tabellen & Badges --- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; }
th { background: #f8f9fa; color: #666; font-size: 0.8rem; text-transform: uppercase; }

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-new { background: #e3f2fd; color: #0d47a1; }
.badge-paid { background: #e8f5e9; color: #1b5e20; }

/* --- Footer --- */
.main-footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    background: #fff;
    border-top: 1px solid #ddd;
}