/* Roboto Condensed für die gesamte Website */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap');

/* Globale Schriftart und -farbe für alle Elemente */
body, 
input, 
button, 
select, 
textarea, 
th, 
td, 
div, 
p, 
span, 
h1, h2, h3, h4, h5, h6, 
a, 
label, 
li, 
ul, 
ol {
    font-family: 'Roboto Condensed', sans-serif !important;
    color: rgba(0, 0, 51, 0.8) !important;
}

/* Ausnahmen für Elemente, bei denen die Textfarbe anders sein muss */
.btn-primary, 
.btn-secondary, 
.toggle-button,
.main-menu .menu-item:hover,
.logout-button {
    color: white !important;
}

/* Grundlegende Reset-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0f2f5;
}

/* Gemeinsame Container-Styles */
.content-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Gemeinsame Button-Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Hauptmenü Styles */
.main-menu-icon {
    position: fixed;
    top: 80px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
    background: white;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.menu-line {
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

.main-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 999;
    border-radius: 0 0 0 8px;
    padding: 20px 0;
}

.main-menu.active {
    right: 0;
}

.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.03);
    margin: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.menu-item:hover {
    color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.1) !important;
    transform: translateX(5px);
}

/* Hinzufügen der leuchtend blauen Farbe für Menüpunkte bei Hover */
.main-menu .menu-item:hover {
    color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.1);
}

a.menu-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .content-container {
        margin: 20px;
        padding: 20px;
    }
}

/* Gemeinsame Container-Styles */
.employee-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Gemeinsame Header-Styles */
.section-header, .employee-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.section-header h1, .employee-header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

/* Allgemeine Tabellen-Styles */
.kanban-table, .room-table, .attendance-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.attendance-table {
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-radius: 4px;
    overflow: hidden;
}

/* Kopfzeilen für Tabellen */
.table-header, .attendance-table thead tr {
    display: table-row;
    background: #f8f9fa;
}

.header-cell, .attendance-table th {
    padding: 12px 15px;
    font-weight: bold;
    border: 1px solid #dee2e6;
    position: relative;
    vertical-align: middle;
}

.attendance-table th {
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Allgemeine Tabellenzellen */
.table-cell, .attendance-table td {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

/* Einheitlicher Stil für Eingabefelder im Bearbeitungsmodus */
.edit-field {
    font-family: 'Roboto Condensed', sans-serif !important;
    font-size: 1em;
    font-weight: 400;
    color: rgba(0, 0, 51, 0.8);
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
    transition: box-shadow 0.15s;
}
.edit-field:focus {
    box-shadow: 0 0 2px #007bff;
    border-color: #007bff;
}

.attendance-table td {
    border-bottom: 1px solid #eee;
}

/* Hover-Effekte für Zeilen */
.employee-row:hover, .attendance-row:hover td {
    background-color: #f9f9f9;
}

/* Listen-Styles */
.employee-list {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.employee-item {
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 12px;
    background-color: white;
}

.employee-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Zeilen-Styles */
.employee-row {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

/* Mitarbeitername */
.employee-name {
    font-size: 1.3em;
    flex-grow: 1;
    font-weight: 700;
}

/* Toggle-Buttons und andere Aktionsbuttons */
.toggle-button {
    width: auto;
    height: auto;
    border-radius: 0;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #333 !important;
    margin-left: 15px;
    font-size: 0.7em;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.toggle-button:hover {
    background-color: transparent !important;
    transform: scale(1.1);
}

/* Dreieck nach unten (geschlossener Zustand) */
.toggle-button.closed::after {
    content: '▼';
    display: block;
    font-size: 14px;
}

/* Dreieck nach oben (geöffneter Zustand) */
.toggle-button.open::after {
    content: '▲';
    display: block;
    font-size: 14px;
}

/* Alte Plus/Minus-Symbole ausblenden */
.toggle-button.closed, .toggle-button.open {
    /* font-size: 0; */
}

/* Detailansichten */
.employee-details {
    padding: 25px 20px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

/* Standorte formatieren */
.location-name, 
.checkbox-item label, 
.locations-cell {
    text-transform: capitalize;
    font-weight: 400;
}

/* Formularbereiche */
.form-section {
    border-top: 1px solid #eee;
    padding: 20px;
    margin-top: 20px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.form-section h4 {
    margin-bottom: 15px;
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Checkbox-Gruppen */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background-color: #e9ecef;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

/* Status- und Fehlermeldungen */
.error-message {
    color: #dc3545;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 4px;
    font-size: 0.95em;
}

.no-data, .no-employees {
    font-style: italic;
    color: rgba(0, 0, 51, 0.6);
    text-align: center;
    padding: 15px;
    background-color: white;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .content-container, .employee-container {
        margin: 20px;
        padding: 20px;
    }
    
    .checkbox-group {
        gap: 10px;
    }
    
    .checkbox-item {
        flex-basis: 100%;
    }
}

/* Kanban-spezifische Styles hier belassen */

.kanban-table {
    display: table;
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    background: white;
}

/* Kopfzeile */
.table-header {
    display: table-row;
    background: #f8f9fa;
}

.header-cell {
    display: table-cell;
    padding: 15px;
    font-weight: bold;
    border: 1px solid #dee2e6;
    position: relative;
    min-width: 200px;
    vertical-align: middle;
}

/* Datumsspalte */
#date-column {
    position: sticky;
    left: 0;
    z-index: 10;
    background: #f8f9fa;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    padding: 8px;
    box-sizing: border-box;
}

#date-column .date-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#date-column .date-content .day {
    margin-bottom: 4px;
    font-weight: bold;
}

#date-column .date-content .date {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    #date-column {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
    }
    
    #date-column .header-content,
    #date-column .date-content {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        min-height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #date-column .date-content {
        height: 100%;
    }

    #date-column .date-content .day {
        margin-bottom: 8px;
    }
}

/* Kategorie-Spalten (Urlaub, Krank, Fortbildung) */
.category-column {
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-column.expanded {
    max-width: 200px;
    min-width: 200px;
}

.category-column.collapsed {
    max-width: fit-content;
    min-width: 24px; /* Minimale Breite für den Fall von Rendering-Problemen */
    padding: 4px;
}

.category-column.collapsed .header-content {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    cursor: pointer;
    padding: 4px 0;
    font-size: 14px;
}

.category-column.expanded .header-content {
    cursor: pointer;
    padding: 8px;
}

/* Projektspalten */
.project-column {
    min-width: 250px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-trigger {
    cursor: pointer;
    padding: 0 5px;
}

/* Tabellenzeilen und Zellen */
.table-row {
    display: table-row;
}

.table-cell {
    display: table-cell;
    height: 120px;
    padding: 10px;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

/* Raumplan Styling */
.room-table {
    display: table;
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    background: white;
}

/* Zeitabschnitte im Raumplan */
.time-header {
    display: table-cell;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    min-width: 60px !important;
    max-width: 60px !important;
    width: 60px !important;
    transition: all 0.3s ease;
    height: auto !important;
}

.time-header.vertical {
    max-width: 24px !important;
    min-width: 24px !important;
    width: 24px !important;
    padding: 4px;
    height: 80px !important;
}

.time-header.vertical .time-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    padding: 4px 0;
    font-size: 14px;
    display: block;
    min-height: 60px;
}

/* Standort-Header für den Raumplan */
.location-header-row {
    display: table-row;
    background: #f8f9fa;
}

.location-header-row .header-cell {
    display: table-cell;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    font-weight: bold;
    padding: 15px;
    position: relative;
}

/* Wichtig: Diese CSS-Regeln haben hohe Spezifität */
.room-table .location-header-row .header-cell {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
}

.room-table .table-row:first-of-type .table-cell#date-column {
    border-right: 1px solid #dee2e6;
}

/* Überschreibe die allgemeinen Zellvorgaben für die Zeit-Zeile */
.room-table .table-row:first-of-type {
    height: auto;
}

.time-cell {
    display: table-cell;
    height: 60px;
    padding: 5px;
    border: 1px solid #dee2e6;
    vertical-align: top;
    min-width: 80px;
}

.time-label {
    font-size: 0.8em;
    color: #666;
}

/* Anpassungen für das Hauptmenü */
.main-menu {
    padding-top: 20px;
}

.main-menu .menu-item {
    margin: 5px 0;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .welcome-container {
        margin: 20px;
        padding: 10px;
    }

    .welcome-title {
        font-size: 2em;
    }

    .nav-link {
        padding: 12px 15px;
        font-size: 1.1em;
    }
}

/* Standort-Dropdown Styles */
.location-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-dropdown {
    position: relative;
    display: inline-block;
}

.location-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    padding: 0 20px 0 0;
    cursor: pointer;
    font-size: inherit;
    font-weight: bold;
    font-family: inherit;
    color: inherit;
}

.location-dropdown select:focus {
    outline: none;
}

.location-dropdown select option {
    font-weight: normal;
}

.location-dropdown::after {
    content: '▼';
    font-size: 0.7em;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
}

/* Wochen-Navigation Styles */
.week-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.week-title {
    font-size: 0.9em;
    margin-bottom: 4px;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.week-nav-button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-size: 1em;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.week-nav-button:hover {
    color: #333;
}

.week-number {
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

/* Stile für den Color Picker */
.color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.color-box {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ccc;
    transition: transform 0.2s;
}

.color-box:hover {
    transform: scale(1.1);
}

/* Stil für die Farbe-zurücksetzen-Box */
.reset-color {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.reset-color span {
    color: #ff0000;
    font-weight: bold;
    font-size: 18px;
}

/* Stil für den Löschen-Button */
.delete-attendance {
    color: #dc3545 !important;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.delete-attendance:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Gemeinsamer Hover-Effekt für alle Menüs */
.menu-item:hover,
.kanban-card-menu .menu-item:hover,
.absence-menu .menu-item:hover,
.project-menu .menu-item:hover {
    color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.1) !important;
    transform: translateX(5px);
}

/* Logout-Button Styling */
.logout-button {
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 12px 20px;
    margin: 4px 8px;
    color: rgba(0, 0, 51, 0.8) !important;
}

.logout-button:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff !important;
} 