* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #F8F8FF 0%, #F8F8FF 100%);
    min-height: 100vh;
}

#app {
    min-height: 100vh;
}



/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-form {
    text-align: center;
}

.login-form h2 {
    color: #667eea;
    margin-bottom: 10px;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

.login-form button {
    width: 100%;
    margin-top: 10px;
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
    font-size: 0.9em;
}

.hint {
    color: #6c757d;
    font-size: 0.85em;
    margin-top: 15px;
}

/* Header */
.header {
    background: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.header h1 {
    color: #FFF;
    font-size: 1.8em;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-weight: 600;
}

.sync-status {
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 20px;
    background: #f8f9fa;
    display: inline-block;
}

.sync-status.online {
    color: #28a745;
}

.sync-status.offline {
    color: #dc3545;
}

.sync-status.syncing {
    color: #007bff;
}

/* Main Content */
.main-content {
  /*  max-width: 1400px; */
    margin: 30px auto;
    padding: 0 20px;
}

/* Admin Panel */
.admin-panel {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-panel h3 {
    color: #495057;
    margin-bottom: 15px;
}

.admin-panel select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Einstellungen Panel */
.einstellungen-panel {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.einstellungen-panel h3 {
    color: #495057;
    margin-bottom: 15px;
}

.arbeitszeit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.wochentag-input {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.wochentag-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.wochentag-input input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Monatsnavigation */
.monats-steuerung {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.monats-steuerung button {
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.monats-steuerung button:hover {
    background: #e9ecef;
}

.monats-titel {
    font-size: 1.2em;
    text-decoration: none;
    font-weight: 600;
    color: #333;
}

.monats-titel a {
    font-size: 1em;
    text-decoration: none;
    font-weight: 600;
    color: #333;
}


.export-controls {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.export-controls input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* Tabelle */
.table-container {
    background: white;
    border-radius: 10px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    color: white;
    padding: 12px;
    font-weight: 600;
    white-space: nowrap;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
   text-align: center; 
}

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

input[type="time"], input[type="number"] {
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 90px;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.25);
}

.readonly-field {
    background-color: #e9ecef;
    font-weight: 600;
}

.wochenende {
    background-color: #fff3cd;
}

.feiertag {
    background-color: #f8d7da;
}

/* Summen Panel */
.summen-panel {
    background: linear-gradient(135deg, #003d66 0%, #003d66 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 40px;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.summen-item {
    text-align: center;
}

.summen-item .wert {
    font-size: 1.5em;
    font-weight: 600;
    display: block;
}

.summen-item .label {
    font-size: 0.9em;
    opacity: 0.9;
}

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

.dropdown-content {
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    margin-top: 5px;
    padding: 10px 0;
}

.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

.export-group {
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.export-group:last-child {
    border-bottom: none;
}

.export-group strong {
    display: block;
    padding: 8px 16px;
    color: #003d66;
    font-size: 0.85em;
}

/* Buttons */
.button-primary {
    background: #26674c;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
text-decoration: none;
}

.button-primary:hover {
    background: #218838;
    transform: translateY(-2px);
}

.button-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

.button-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.button-small {
    padding: 8px 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    animation: slideIn 0.3s ease;
    z-index: 3000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ... bestehende Styles aus vorheriger Version ... */

/* Neue Styles für Tätigkeitsfelder */
.activity-type {
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    min-width: 120px;
}

.activity-desc {
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 150px;
}

/* Status-Farben */
.status-krank {
    color: #dc3545;
    font-weight: 600;
}

.status-urlaub {
    color: #28a745;
    font-weight: 600;
}

.status-homeoffice {
    color: #17a2b8;
    font-weight: 600;
}

/* Login-Seite spezifisch */
.login-page {
    background: linear-gradient(135deg, #f7f7f7 0%, #f9f9f9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box h1 {
    color: #8d8d8d;
    text-align: center;
    margin-bottom: 20px;
}

.login-box p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.25);
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
}

.login-hint {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9em;
    color: #6c757d;
}

.login-hint p {
    margin: 5px 0;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Admin Panel */
.admin-panel {
    background: linear-gradient(135deg, #F0F8FF 0%, #F0F8FF 100%);
    color: #060606;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.admin-panel select {
    padding: 10px;
    border: none;
    border-radius: 4px;
    min-width: 250px;
}

/* Butto Export */

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

.dropdown-content {
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 1000;
    margin-top: 10px;
    padding: 10px 0;
}

.export-group {
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
}

.export-group:last-child {
    border-bottom: none;
}

.export-group strong {
    display: block;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.export-group a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    margin: 2px 0;
}

.export-group a:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.export-group a i {
    width: 20px;
    margin-right: 8px;
    color: #667eea;
}

.export-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}


/* zusatz aus allen Dateien */
.info-hinweis{
    font-size: 0.8em;
    margin: 20px;
    color: #667eea;
}




/* Responsive Design */
@media (max-width: 768px) {
    .monats-steuerung {
        flex-direction: column;
        align-items: stretch;
    }
    
    .export-controls {
        margin-left: 0;
    }
    
    .summen-panel {
        flex-direction: column;
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    table {
        font-size: 0.9em;
    }
    
    input[type="time"], input[type="number"] {
        width: 80px;
    }
}