/*
 * Custom Styles for Gutachten Plattform
 * Verstärkt Bootstrap 5 mit Material-Design-Akzenten
 */

:root {
    --color-admin: #dc3545;      /* Rot/Danger */
    --color-gutachter: #0d6efd;  /* Blau/Primary */
    --color-beobachter: #198754; /* Grün/Success */
    --color-text: #495057;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: var(--color-text);
}

/* --- Allgemeine Komponenten --- */

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    font-weight: 600;
}

/* --- Buttons --- */

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:hover, .btn-success:hover, .btn-danger:hover {
    transform: translateY(-1px);
}

/* --- Formulare und Inputs --- */

.form-control, .form-select {
    border-radius: 6px;
    padding: 10px 15px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.border-dashed {
    border-style: dashed !important;
}


/* --- Rollenspezifische Sidebar-Styles --- */

/* Standard-Sidebar (wird durch Rollen überschrieben) */
.sidebar {
    transition: width 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar a {
    border-left: 4px solid transparent;
}

.sidebar a.active {
    border-left-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* ADMIN Sidebar (Rot) */
.sidebar-admin {
    background-color: var(--color-admin) !important;
}

.sidebar-admin a:hover {
    background-color: #c82333;
}

/* GUTACHTER Sidebar (Blau) */
.sidebar-gutachter {
    background-color: var(--color-gutachter) !important;
}

.sidebar-gutachter a:hover {
    background-color: #0b5ed7;
}

/* BEOBACHTER Sidebar (Grün) */
.sidebar-beobachter {
    background-color: var(--color-beobachter) !important;
}

.sidebar-beobachter a:hover {
    background-color: #157347;
}

/* --- Tabellen Styling --- */

.table thead {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* --- Abzeichen (Badges) --- */

.badge {
    padding: 0.5em 0.8em;
    border-radius: 1.25rem;
    font-weight: 600;
}