/* Hauptstilregeln */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
}

/* Form-Stile */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Dashboard-Karten */
.dashboard-card {
    border-left: 4px solid #0d6efd;
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Dienstplan-Stile */
.shift-calendar {
    height: 600px;
    margin-top: 20px;
}

.shift-early {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.shift-late {
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.shift-night {
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .form-container {
        max-width: 100%;
    }
}

/* Stil für den Plus-Button */
.simple-add-btn {
    display: inline-block;
    background-color: #0d6efd;
    color: white !important;
    border: none;
    border-radius: 3px;
    padding: 4px 10px;
    margin-top: 3px;
    font-size: 0.85em;
    cursor: pointer;
    text-decoration: none;
}

.simple-add-btn:hover {
    background-color: #0b5ed7;
}

/* Stil für den Inline-Auswahldialog */
.inline-midwife-selector {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.inline-midwife-selector .card-body {
    padding: 10px;
}

/* Farbschema für Hebammen-Buttons im Inline-Dialog */
.midwife-select-btn.btn-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.midwife-select-btn.btn-outline-success {
    background-color: #e2f3ea;
    border-color: #c3e6d1;
    color: #0f5132;
}

.midwife-select-btn.btn-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

/* Stil für zugewiesene Hebammen */
.midwife-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 3px;
    padding: 3px 6px;
    margin: 2px;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    background-color: #cfe2ff;
    border: 1px solid #b6d4fe;
    color: #084298;
}

.midwife-badge .remove-btn {
    margin-left: 5px;
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
}

/* Qualifikationsbezogene Stile */
.qual-badges {
    display: inline-flex;
    margin-left: 4px;
    align-items: center;
}

.qual-icon {
    font-size: 0.85em;
    color: #6c757d;
    cursor: help;
    margin-left: 3px;
}

.missing-qualifications {
    background-color: #fff3cd !important;
    border-color: #ffecb5 !important;
    color: #664d03 !important;
}

/* Erweiterte Stile für Schichttypen */
.shift-title {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Tooltips für Qualifikationen */
[title] {
    position: relative;
    cursor: help;
}

[title]:hover::before {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #212529;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    z-index: 1;
    white-space: nowrap;
    font-size: 0.8em;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

[title]:hover::before {
    opacity: 1;
}

/* Stil für unterbesetzte Schichten */
.shift-container.understaffed {
    background-color: rgba(255, 200, 200, 0.3);
    border-left: 4px solid #dc3545;
}

.shift-container.understaffed .shift-title {
    color: #dc3545;
}

/* Stil für den Personalzähler */
.staff-count {
    font-size: 0.8em;
    margin-left: auto;
    padding: 2px 5px;
    border-radius: 3px;
}

.shift-container.understaffed .staff-count {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
}

/* Verbesserte Darstellung der Schicht-Header */
.shift-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 3px;
    border-bottom: 1px solid #eee;
}

.shift-title {
    font-weight: bold;
}

.shift-title.early {
    color: #198754; /* Bootstrap success color */
}

.shift-title.late {
    color: #ffc107; /* Bootstrap warning color */
}

.shift-title.night {
    color: #0dcaf0; /* Bootstrap info color */
}

/* Styling für Wunsch-Buttons */
.wish-button-container {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wish-button, .vacation-button {
    padding: 2px 5px;
    font-size: 0.8em;
}

/* Styling für Wunsch-Badges */
.wish-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 5px;
}

.wish-badges .badge {
    padding: 3px 5px;
    margin-bottom: 2px;
}

/* Styling für Urlaubstage */
.vacation-day {
    position: relative;
}

.vacation-pending {
    background-color: rgba(255, 193, 7, 0.2); /* Gelb/Warnung für ausstehend */
}

.vacation-approved {
    background-color: rgba(25, 135, 84, 0.2); /* Grün/Erfolg für genehmigt */
}

.vacation-rejected {
    background-color: rgba(220, 53, 69, 0.2); /* Rot/Gefahr für abgelehnt */
    text-decoration: line-through;
}

.vacation-icon {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 1.2em;
    color: #0d6efd; /* Blau/Primär */
}

/* Styling für die modalen Dialoge */
.modal-header.wish-header {
    background-color: #0d6efd;
    color: white;
}

.modal-header.vacation-header {
    background-color: #198754;
    color: white;
}

/* Dienstplanerstellung und -anzeige */
.shift-action-buttons {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.wish-btn {
    background-color: #ffc107;
    color: #212529 !important;
}

.vacation-btn {
    background-color: #198754;
    color: white !important;
}

/* Optimierung für die Darstellung der Tagesansicht im Admin-Dienstplan */
@media (max-width: 768px) {
    .shift-card {
        margin-bottom: 15px;
    }
    
    table.table-bordered td {
        display: block;
        width: 100%;
        text-align: center;
        height: auto !important;
    }
    
    table.table-bordered thead {
        display: none;
    }
    
    table.table-bordered td::before {
        content: attr(data-day);
        font-weight: bold;
        display: block;
        margin-bottom: 5px;
    }
}

/* CSS-Variablen und Farbschemata */
:root {
    /* Hauptfarbschema - kann später durch Benutzereinstellungen überschrieben werden */
    --primary-color: #0d6efd;
    --primary-color-dark: #0a58ca; 
    --primary-color-light: #cfe2ff;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    /* Zusätzliche UI-Farben */
    --border-color: #dee2e6;
    --hover-bg: rgba(13, 110, 253, 0.1);
    --active-menu-bg: var(--primary-color-light);
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    
    /* Textfarben */
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --text-muted: #6c757d;
    
    /* Abstände */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
}

/* Anwendung der Farbvariablen auf UI-Elemente */
.card-header.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color-dark);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Navigationsleiste Styling */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .navbar-brand, 
.navbar .nav-link {
    color: var(--text-light) !important;
}

.navbar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    border-bottom-width: 2px;
}

/* Admin Dashboard Karten */
.dashboard-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--primary-color);
    border-radius: 0.25rem;
    box-shadow: var(--card-shadow);
}

.dashboard-card .card-title {
    color: var(--primary-color);
}

/* Formulare im Adminbereich */
.admin-form label {
    font-weight: 500;
    color: var(--text-dark);
}

.admin-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Tabellen im Adminbereich */
.admin-table thead {
    background-color: var(--light-color);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-dark);
}

.admin-table tr:hover {
    background-color: var(--hover-bg);
}

/* Statusfarben */
.status-pending {
    color: var(--warning-color);
}

.status-approved {
    color: var(--success-color);
}

.status-rejected {
    color: var(--danger-color);
}

/* Logo-Styling */

/* Container für das Unternehmenslogo im Navbar */
.navbar-logo {
    max-height: 40px;
    max-width: 200px;
    display: block;
}

/* Responsive Anpassungen für das Logo */
@media (max-width: 768px) {
    .navbar-logo {
        max-height: 30px;
        max-width: 150px;
    }
}

/* Logo in der Einstellungsseite */
.current-logo-container {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.current-logo img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.no-logo-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    text-align: center;
}

.no-logo-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Upload-Button Styling */
.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: pointer;
    display: block;
}

/* Farbauswahl-Inputs verbessern */
input[type="color"] {
    height: 38px;
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

.form-control-color {
    max-width: 50px;
}

/* Anpassungen für den Farbauswahl-Container im Branding-Tab */
.color-picker-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.color-picker-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.color-picker-item label {
    margin-right: 10px;
    min-width: 100px;
}

/* Styling für das Logo im Login-Bereich */
.login-logo {
    max-width: 200px;
    margin: 0 auto 30px;
    display: block;
}


