:root {
    --primary-color: #4A5568;
    --success-color: #00C853;
    --danger-color: #E53935;
    --warning-color: #FFA726;
    --dark: #1A202C;
    --gray: #718096;
    --light-gray: #FAFBFC;
    --white: #FFFFFF;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --border-radius: 12px;
    --gradient-primary-start: #4A5568;
    --gradient-primary-end: #2D3748;
    --text-dark: #1A202C;
    --text-muted: #718096;
    --border-light: #E2E8F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark);
    overflow-x: hidden;
    height: 100vh;
}

.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #00C853, #00A843);
}

.app-title {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.login-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@keyframes logoBreathing {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

.powered-by {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.75rem;
    color: #FFFFFF;
    font-weight: 300;
    letter-spacing: 0.5px;
    z-index: 10;
    margin: 0;
}

@media (max-width: 576px) {
    .login-logo {
        max-width: 160px;
    }

    .powered-by {
        font-size: 0.7rem;
        bottom: 15px;
        right: 15px;
    }
}

.login-container .text-muted {
    color: rgba(255,255,255,0.8) !important;
}

.login-container .card {
    max-width: 400px;
    width: 100%;
    border: none;
    border-radius: var(--border-radius);
}

/* Header */
.app-header {
    background: var(--white);
    padding: 15px 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-date {
    font-size: 1.1rem;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    transition: background 0.3s;
}

.btn-icon:hover {
    background: var(--light-gray);
}

/* Content Container */
.content-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 70px;
}

.view {
    display: none;
    padding: 20px;
}

.view.active {
    display: block;
}

/* Time Clock View */
.time-display {
    text-align: center;
    padding: 30px 0;
}

.current-time {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--dark);
    font-feature-settings: "tnum";
}

.work-location {
    margin-top: 10px;
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.estimated-time {
    color: var(--success-color);
}

/* Clock Button */
.clock-button-container {
    position: relative;
    padding: 40px 20px;
}

.clock-button-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.map-background {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle at center, rgba(0,200,83,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.clock-button {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    margin: 0 auto;
    display: block;
}

.clock-button.clock-in {
    background: linear-gradient(135deg, var(--success-color), #00A843);
    animation: pulseGreenSubtle 1.5s ease-in-out infinite;
}

.clock-button.clock-in:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.clock-button.pause-ending {
    background: linear-gradient(135deg, var(--success-color), #00A843);
    animation: pulseGreenSubtle 1.5s ease-in-out infinite;
}

.clock-button.pause-ending:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.clock-button.clock-out {
    background: linear-gradient(135deg, var(--danger-color), #C62828);
}

.clock-button.on-pause {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    animation: pulseOrange 1.5s ease-in-out infinite;
}

.clock-button.on-pause:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.clock-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.clock-button:active {
    transform: scale(0.98);
}

.clock-button.clock-success {
    animation: clockSuccess 1.5s ease;
    box-shadow: 0 0 20px rgba(0,200,83,0.5);
}

.clock-button.disabled,
.quick-action-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes pulseOrange {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2),
                    0 0 0 0 rgba(255, 152, 0, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(0,0,0,0.25),
                    0 0 20px 10px rgba(255, 152, 0, 0);
    }
}

/* Quick Action Buttons */
.quick-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.quick-action-btn i {
    font-size: 1.5rem;
}

.quick-action-btn:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quick-action-btn.active {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border-color: #F57C00;
}

.quick-action-btn.active:hover {
    background: linear-gradient(135deg, #F57C00, #E65100);
}

@keyframes clockSuccess {
    0% { transform: scale(1); }
    20% { transform: scale(1.1); }
    40% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Subtiler Pulse-Effekt für grünen Button */
@keyframes pulseGreenSubtle {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2),
                    0 0 0 0 rgba(0, 200, 83, 0.4);
    }
    50% {
        transform: scale(1.015);
        box-shadow: 0 12px 35px rgba(0,0,0,0.25),
                    0 0 0 8px rgba(0, 200, 83, 0);
    }
}

.clock-button::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
    z-index: -1;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 15px;
}

.quick-action-btn {
    background: var(--white);
    border: 1px solid #E0E0E0;
    border-radius: var(--border-radius);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.7rem;
    min-width: 70px;
    max-width: 90px;
}

.quick-action-btn:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.quick-action-btn i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.quick-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quick-action-btn.pause-active {
    background: linear-gradient(135deg, #FFA726, #FF6F00);
    border-color: #FF6F00;
    color: white;
}

.quick-action-btn.pause-active i {
    color: white;
}

.quick-action-btn.pause-active:hover {
    background: linear-gradient(135deg, #FF9800, #E65100);
}

/* Today Summary */
.today-summary {
    display: flex;
    gap: 15px;
    padding: 0 20px;
}

.summary-card {
    flex: 1;
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.summary-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.summary-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    flex: 1;
    background: none;
    border: none;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s;
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item span {
    font-size: 0.7rem;
}

.nav-item.active {
    color: var(--success-color);
}

.nav-item:hover {
    color: var(--success-color);
}

/* Dashboard */
.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Flextime card color coding */
.stat-card.flextime-positive {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-left: 4px solid var(--success-color);
}

.stat-card.flextime-positive .stat-value {
    color: var(--success-color);
}

.stat-card.flextime-negative {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border-left: 4px solid var(--danger-color);
}

.stat-card.flextime-negative .stat-value {
    color: var(--danger-color);
}

.stat-card.flextime-neutral {
    background: linear-gradient(135deg, #F5F5F5, #E0E0E0);
    border-left: 4px solid var(--gray);
}

.stat-card.flextime-neutral .stat-value {
    color: var(--gray);
}

/* Modern Dashboard Styles */
.dashboard-hero {
    position: relative;
    padding: 50px 20px 30px;
    text-align: center;
    margin-bottom: 20px;
}

.dashboard-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,200,83,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-value {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--dark);
    font-feature-settings: "tnum";
    margin-bottom: 5px;
}

.hero-value.positive {
    color: var(--success-color);
}

.hero-value.negative {
    color: var(--danger-color);
}

.hero-sublabel {
    font-size: 0.85rem;
    color: var(--gray);
}

.metric-card {
    margin: 0 20px 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.metric-card-gradient {
    background: linear-gradient(135deg, #667EEA, #764BA2);
    color: var(--white);
}

.metric-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.metric-sublabel {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 3px;
}

.metric-card-day,
.metric-card-week {
    margin: 0 20px 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.metric-card-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 15px;
    align-items: center;
}

.metric-item {
    text-align: center;
}

.metric-item-wide {
    text-align: left;
}

.metric-mini-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.metric-mini-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    font-feature-settings: "tnum";
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-modern {
    flex: 1;
    height: 8px;
    background: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), #00D66E);
    border-radius: 10px;
    transition: width 0.5s ease, background 0.3s ease;
}

.progress-fill.warning {
    background: linear-gradient(90deg, var(--warning-color), #FFB347);
}

.progress-fill.danger {
    background: linear-gradient(90deg, var(--danger-color), #FF6B6B);
}

.progress-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    min-width: 45px;
    text-align: right;
}

/* Settings */
.settings-list {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.setting-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    transition: background 0.3s;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item:hover {
    background: var(--light-gray);
}

.setting-item i:first-child {
    margin-right: 15px;
    font-size: 1.2rem;
}

.setting-item span {
    flex: 1;
}

.setting-item i:last-child {
    color: var(--gray);
}

/* Reports */
.report-filters {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.report-filters input {
    flex: 1;
}

/* Utilities */
.screen {
    min-height: 100vh;
}

.d-none {
    display: none !important;
}

/* Loading State */
.spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .current-time {
        font-size: 3rem;
    }

    .clock-button {
        width: 180px;
        height: 180px;
    }
}

/* PWA Standalone Mode */
@media all and (display-mode: standalone) {
    .app-header {
        padding-top: 30px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 10px;
    min-width: 250px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== MODERN UI IMPROVEMENTS ===== */

/* Bootstrap Badge Overrides */
.badge.bg-warning {
    background: linear-gradient(135deg, #FFA726, #FF6F00) !important;
    color: white !important;
}

/* Moderne Tabellen */
.table {
    border-collapse: separate;
    border-spacing: 0 8px;
    background: transparent;
}

.table thead th {
    border: none;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px;
    background: transparent;
}

.table tbody tr {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: none;
}

.table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.table tbody td {
    border: none;
    padding: 15px;
    vertical-align: middle;
}

.table tbody tr td:first-child {
    border-radius: 12px 0 0 12px;
}

.table tbody tr td:last-child {
    border-radius: 0 12px 12px 0;
}

/* Moderne Buttons */
.btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #00C853, #00A843);
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.25);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00A843, #00893A);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.35);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #E2E8F0;
    color: var(--text-dark);
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: var(--light-gray);
    color: var(--text-dark);
    border-color: #CBD5E0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-outline-success {
    border: 2px solid var(--success-color);
    color: var(--success-color);
}

.btn-outline-success:hover {
    background: var(--success-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.4);
}

.btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.btn-outline-info {
    border: 2px solid #17a2b8;
    color: #17a2b8;
}

.btn-outline-info:hover {
    background: #17a2b8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* Moderne Cards */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    padding: 20px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Moderne Badges */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #00C853, #00A843) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #E53935, #C62828) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #FFA726, #FF9800) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #26A69A, #00897B) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #757575, #616161) !important;
}

/* Moderne Formulare */
.form-control {
    border-radius: 12px;
    border: 2px solid #e8ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: var(--white);
}

.form-control:focus {
    border-color: #00C853;
    box-shadow: 0 0 0 0.25rem rgba(0, 200, 83, 0.15);
    transform: translateY(-1px);
}

.form-select {
    border-radius: 12px;
    border: 2px solid #e8ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-select:focus {
    border-color: #00C853;
    box-shadow: 0 0 0 0.25rem rgba(0, 200, 83, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-check-input {
    border-radius: 6px;
    border: 2px solid #e8ecef;
    width: 18px;
    height: 18px;
}

.form-check-input:checked {
    background-color: #00C853;
    border-color: #00C853;
}

/* Breadcrumb Modernisierung */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item {
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--gray);
    font-size: 1.2rem;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* List Group Modernisierung */
.list-group {
    border-radius: 15px;
    overflow: hidden;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(5px);
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Spinner Modernisierung */
.spinner-border {
    border-width: 3px;
}

.spinner-border.text-primary {
    border-color: rgba(102, 126, 234, 0.25);
    border-top-color: #667eea;
}

/* ===== MODERNE MODALS ===== */

/* Modal Backdrop mit Blur-Effekt */
.modal-backdrop {
    backdrop-filter: blur(8px);
    background: rgba(0,0,0,0.4) !important;
    transition: all 0.3s ease;
}

/* Modal Dialog Animationen */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translate(0, -50px) scale(0.9);
}

.modal.show .modal-dialog {
    transform: translate(0, 0) scale(1);
}

/* Glasmorphismus Modal Content */
.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.3),
        0 0 0 1px rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    background: rgba(255,255,255,0.95);
    overflow: hidden;
}

/* Gradient Modal Header */
.modal-header {
    background: var(--white);
    color: var(--text-dark);
    border-bottom: 1px solid #E2E8F0;
    padding: 20px 25px;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border-radius: 8px;
    opacity: 0.7;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.btn-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Modal Body Modernisierung */
.modal-body {
    padding: 30px;
    background: rgba(255,255,255,0.98);
}

/* Modal Footer */
.modal-footer {
    border: none;
    padding: 20px 30px 30px;
    background: rgba(255,255,255,0.98);
    gap: 10px;
}

.modal-footer .btn {
    min-width: 100px;
}

/* Animation für Modal-Elemente */
@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal.show .modal-content > * {
    animation: modalSlideIn 0.4s ease-out;
}

/* Spezielle Modal-Styles für verschiedene Typen */
.modal-content.success .modal-header {
    background: linear-gradient(135deg, #00C853, #00A843);
}

.modal-content.warning .modal-header {
    background: linear-gradient(135deg, #FFA726, #FF9800);
}

.modal-content.danger .modal-header {
    background: linear-gradient(135deg, #E53935, #C62828);
}

.modal-content.info .modal-header {
    background: linear-gradient(135deg, #26A69A, #00897B);
}

/* Floating Labels Effekt */
.floating-label {
    position: relative;
    margin-bottom: 20px;
}

.floating-label input,
.floating-label select,
.floating-label textarea {
    width: 100%;
    padding: 15px 15px 10px 15px;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    font-size: 16px;
    background: var(--white);
    transition: all 0.3s ease;
}

.floating-label label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 16px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--white);
    padding: 0 5px;
}

.floating-label input:focus,
.floating-label input:not(:placeholder-shown),
.floating-label select:focus,
.floating-label textarea:focus,
.floating-label textarea:not(:placeholder-shown) {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

/* Modal Größen-Varianten */
.modal-xl .modal-content {
    border-radius: 25px;
}

.modal-lg .modal-content {
    border-radius: 22px;
}

.modal-sm .modal-content {
    border-radius: 15px;
}

/* Responsive Modal Verbesserungen */
@media (max-width: 768px) {
    .modal-content {
        border-radius: 15px;
        margin: 10px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px 20px;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
}

/* Moderne Formulare - erweitert */
.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    padding: 1rem 0.75rem 0.25rem 0.75rem;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--gradient-primary-start);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25),
                0 4px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 2px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--gradient-primary-start);
    font-weight: 600;
}

.form-check {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.form-check-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    margin-top: 0.125em;
    margin-left: -2rem;
    border: 2px solid #CBD5E0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-check-input:hover {
    border-color: #00C853;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.form-check-input:checked {
    background: linear-gradient(135deg, #00C853, #00A843);
    border-color: #00C853;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.form-check-input:focus {
    border-color: #00C853;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 200, 83, 0.15);
}

.form-check-label {
    color: var(--text-dark);
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Form Switch Toggle Override */
.form-switch {
    padding-left: 3rem;
}

.form-switch .form-check-input {
    width: 40px;
    height: 22px;
    margin-left: -3rem;
    border-radius: 22px;
    background-image: none;
    position: relative;
}

.form-switch .form-check-input::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #CBD5E0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-switch .form-check-input:checked {
    background: linear-gradient(135deg, #00C853, #00A843);
    border-color: #00C853;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
}

.form-switch .form-check-input:checked::after {
    content: '';
    left: 20px;
    background: white;
    font-size: 0;
    transform: none;
    color: transparent;
}

.input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.input-group > .form-control,
.input-group > .form-select {
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.input-group-text {
    background: linear-gradient(135deg, var(--gradient-primary-start), var(--gradient-primary-end));
    color: white;
    border: none;
    font-weight: 600;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invalid-feedback {
    color: #dc3545;
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.invalid-feedback::before {
    content: "⚠";
    font-size: 1rem;
}

.valid-feedback {
    color: #198754;
    font-weight: 500;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.valid-feedback::before {
    content: "✓";
    font-size: 1rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* ===== MODERNE COMPANY PROFILE TABS ===== */
.company-tabs-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,250,252,0.9));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 12px;
    margin-bottom: 2rem;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.08),
        inset 0 1px 2px rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.8);
}

.company-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.company-tabs::-webkit-scrollbar {
    display: none;
}

.company-tabs .nav-link {
    background: rgba(255,255,255,0.6);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 14px 28px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-tabs .nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.company-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        transparent,
        rgba(102, 126, 234, 0.1),
        transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.company-tabs .nav-link:hover {
    background: rgba(255,255,255,0.9);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
}

.company-tabs .nav-link:hover::before {
    transform: translateX(100%);
}

.company-tabs .nav-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

.company-tabs .nav-link.active {
    background: linear-gradient(135deg, #00C853, #00A843);
    color: white;
    box-shadow:
        0 4px 15px rgba(0, 200, 83, 0.3),
        inset 0 1px 2px rgba(255,255,255,0.2);
    transform: translateY(-2px) scale(1.02);
    border-color: transparent;
}

.company-tabs .nav-link.active i {
    transform: scale(1.15) rotate(-5deg);
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1.15) rotate(-5deg); }
    50% { transform: scale(1.25) rotate(-5deg); }
}

/* Tab Content Styling */
.company-tab-content {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane {
    padding-top: 1rem;
}

.tab-pane .card {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.tab-pane .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* Tab Headers */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,250,252,0.9));
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.tab-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.tab-header .btn-group {
    display: flex;
    gap: 8px;
}

/* Loading Skeleton */
.skeleton-loader {
    background: linear-gradient(90deg,
        rgba(200,200,200,0.2) 25%,
        rgba(200,200,200,0.3) 50%,
        rgba(200,200,200,0.2) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gradient-primary-start);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Quick Actions */
.quick-action-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 100;
}

.quick-action-float .btn {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.quick-action-float .btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Responsive Tab Improvements */
@media (max-width: 768px) {
    .company-tabs-container {
        border-radius: 16px;
        padding: 8px;
        margin-bottom: 1.5rem;
    }

    .company-tabs .nav-link {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .company-tabs .nav-link i {
        font-size: 1rem;
    }

    .tab-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .tab-header h3 {
        font-size: 1.25rem;
    }
}

/* Tab Swipe Indicator for Mobile */
@media (max-width: 768px) {
    .company-tabs-container::after {
        content: '→';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gradient-primary-start);
        font-size: 1.5rem;
        animation: swipe-hint 2s infinite;
        pointer-events: none;
    }

    @keyframes swipe-hint {
        0%, 100% { transform: translateY(-50%) translateX(0); }
        50% { transform: translateY(-50%) translateX(5px); }
    }
}

/* Kostenstellen-Auswahl für Zeitstempelung */
.cost-center-selection {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.25rem;
    margin: 0 auto;
    max-width: 560px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.cost-center-selection .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.cost-center-selection .form-select {
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cost-center-selection .form-select:focus {
    border-color: var(--gradient-primary-start);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.cost-center-selection .form-select option {
    padding: 1rem 0.5rem;
    background: white;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.5;
}

.cost-center-selection .form-control {
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    resize: vertical;
}

.cost-center-selection .form-control:focus {
    border-color: var(--gradient-primary-start);
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

/* Custom Holiday Status Checkbox */
.holiday-status-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.holiday-status-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #CBD5E0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.holiday-status-check input[type="checkbox"]:hover {
    border-color: #00C853;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.holiday-status-check input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #00C853, #00A843);
    border-color: #00C853;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
}

.holiday-status-check input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.holiday-status-check input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.holiday-status-check .status-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    user-select: none;
}

.holiday-status-check input[type="checkbox"]:checked + .status-label {
    color: var(--success-color);
    font-weight: 600;
}

/* Responsive Verbesserungen */
@media (max-width: 768px) {
    .card {
        border-radius: 15px;
        margin-bottom: 15px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .table tbody tr {
        border-radius: 8px;
    }

    .form-control, .form-select {
        border-radius: 8px;
        padding: 10px 14px;
    }

    .form-floating > .form-control,
    .form-floating > .form-select {
        height: calc(3rem + 2px);
        border-radius: 10px;
    }

    .form-floating > label {
        padding: 0.75rem;
    }

    .cost-center-selection {
        margin: 0 0.5rem;
        padding: 1rem;
        border-radius: 12px;
    }

    .cost-center-selection .form-select {
        padding: 0.75rem;
        border-radius: 10px;
    }
}

/* Edit History Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.875rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E2E8F0;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #4A5568;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #E2E8F0;
}

.timeline-original .timeline-marker {
    background: #00C853;
}

.timeline-content {
    background: #F7FAFC;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #E2E8F0;
}

.timeline-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2D3748;
}

.timeline-content .badge {
    font-size: 0.75rem;
}

/* Historie View Tabs */
#historieView .nav-tabs {
    border-bottom: none;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

#historieView .nav-tabs .nav-item {
    margin-bottom: 0;
}

#historieView .nav-tabs .nav-link {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #4A5568;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#historieView .nav-tabs .nav-link:hover {
    background: rgba(74, 85, 104, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#historieView .nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #4A5568, #2D3748);
    border-color: #4A5568;
    color: white;
    box-shadow: 0 4px 16px rgba(74, 85, 104, 0.3);
}

#historieView .nav-tabs .nav-link.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(74, 85, 104, 0.4);
}

/* ===== CIRCULAR PROGRESS DASHBOARD ===== */

/* Arbeitszeit Section */
.arbeitszeit-section {
    padding: 0 20px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.circular-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.circular-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.circular-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.circular-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 15px;
}

/* Circular Progress */
.circular-progress {
    position: relative;
    width: 162px;
    height: 162px;
    margin: 0 auto;
}

.circular-progress svg {
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #E0E0E0;
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke: var(--success-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292; /* 2 * PI * 54 */
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease, stroke 0.3s ease;
}

.circle-progress.warning {
    stroke: var(--warning-color);
}

.circle-progress.danger {
    stroke: var(--danger-color);
}

.circle-progress.success {
    stroke: var(--success-color);
}

/* Specific gradients for each circle if using gradient */
#circleTodayProgress,
#circleWeekProgress {
    stroke: url(#circularGradient);
}

#circleWeekProgress {
    stroke: url(#circularGradientWeek);
}

/* Circular Text Overlay */
.circular-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.circular-percent {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1;
}

.circular-value {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 5px;
}

.circular-soll {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 10px;
}

/* Week Chart Section */
.week-chart-section {
    padding: 0 20px;
    margin-bottom: 30px;
}

.week-chart {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.chart-legend {
    display: flex;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--gray);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.soll {
    background: #E0E0E0;
}

.legend-color.ist {
    background: var(--success-color);
}

/* Bar Chart */
.chart-container {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 150px;
    padding: 10px 0;
}

.chart-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.chart-bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 100px;
    width: 100%;
    justify-content: center;
}

.chart-bar {
    width: 12px;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    min-height: 2px;
}

.chart-bar.soll {
    background: #E0E0E0;
}

.chart-bar.ist {
    background: var(--success-color);
}

.chart-bar:hover {
    opacity: 0.7;
}

.chart-day-label {
    font-size: 0.65rem;
    color: var(--gray);
    font-weight: 500;
}

/* Contract Total Card */
.contract-total-card {
    margin: 0 20px 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    color: var(--white);
    text-align: center;
}

.contract-total-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.contract-total-value {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Contract Total Compact */
.contract-total-compact {
    margin: 0 20px 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--white);
    transition: all 0.3s ease;
}

.contract-total-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.contract-total-compact i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.contract-info {
    flex: 1;
}

.contract-value {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.contract-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Responsive Circular Progress */
@media (max-width: 480px) {
    .circular-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .circular-progress {
        width: 162px;
        height: 162px;
    }

    .circular-percent {
        font-size: 1.6rem;
    }

    .circular-value {
        font-size: 0.95rem;
    }

    .chart-container {
        height: 120px;
    }

    .chart-bars {
        height: 80px;
    }

    .chart-bar {
        width: 8px;
    }

    .contract-total-compact {
        margin: 0 15px 20px;
        padding: 15px;
        gap: 15px;
    }

    .contract-total-compact i {
        font-size: 2rem;
    }

    .contract-value {
        font-size: 1.5rem;
    }
}
/* ===== WOCHENTAGSSPEZIFISCHE BETRIEBSZEITEN ===== */

.day-section {
    border-left: 3px solid #e9ecef;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.day-section:hover {
    border-left-color: #00C853;
}

.hours-list {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 0.25rem;
    min-height: 50px;
}

.standard-hour-row {
    background: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.standard-hour-row:last-child {
    margin-bottom: 0;
}

/* ===== DELETE ANIMATION FÜR STEMPEL ===== */

/* Rötliche Fade-Out Animation für gelöschte Stempel-Rows */
@keyframes fadeOutRed {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
        background-color: transparent;
    }
    20% {
        background-color: rgba(229, 57, 53, 0.25);
        transform: translateX(3px) scale(1.01);
    }
    40% {
        background-color: rgba(229, 57, 53, 0.4);
        opacity: 1;
    }
    70% {
        background-color: rgba(229, 57, 53, 0.5);
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
        background-color: rgba(229, 57, 53, 0.3);
    }
}

.table tbody tr.deleting {
    animation: fadeOutRed 0.6s ease forwards;
    pointer-events: none;
    position: relative;
}

.table tbody tr.deleting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(229, 57, 53, 0.15);
    pointer-events: none;
    z-index: 1;
    animation: overlayPulse 0.6s ease forwards;
}

@keyframes overlayPulse {
    0% {
        background-color: rgba(229, 57, 53, 0);
    }
    50% {
        background-color: rgba(229, 57, 53, 0.3);
    }
    100% {
        background-color: rgba(229, 57, 53, 0);
    }
}

/* Grünliche Flash-Animation für aktualisierte Stempel-Rows */
@keyframes flashGreen {
    0% {
        background-color: transparent;
    }
    15% {
        background-color: rgba(0, 200, 83, 0.25);
        transform: scale(1.01);
    }
    50% {
        background-color: rgba(0, 200, 83, 0.15);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

.table tbody tr.updating {
    animation: flashGreen 0.8s ease;
}

/* Grünliche Fade-In Animation für neue Stempel-Rows */
@keyframes fadeInGreen {
    0% {
        opacity: 0;
        transform: translateY(-4px);
        background-color: rgba(0, 200, 83, 0.3);
    }
    40% {
        opacity: 1;
        transform: translateY(0);
        background-color: rgba(0, 200, 83, 0.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        background-color: transparent;
    }
}

.table tbody tr.adding {
    animation: fadeInGreen 0.8s ease forwards;
}

/* Suggestion Badge auf Nav-Icon */
.suggestion-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    border-radius: 8px;
}

/* Suggestion-Zeilen in Historie */
.suggestion-row {
    background-color: rgba(255, 193, 7, 0.12) !important;
}

.suggestion-row:hover {
    background-color: rgba(255, 193, 7, 0.2) !important;
}

/* Suggestion Cards */
.suggestion-card {
    border-left: 4px solid #ffc107;
    transition: box-shadow 0.2s;
}

.suggestion-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.suggestion-card.approved {
    border-left-color: #198754;
}

.suggestion-card.rejected {
    border-left-color: #dc3545;
}

/* ===== Absence Calendar ===== */
.absence-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-light);
}

.absence-calendar-header {
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--white);
}

.absence-calendar-header.absence-calendar-weekend {
    color: var(--danger-color);
}

.absence-calendar-day {
    min-height: 80px;
    padding: 4px;
    background: var(--white);
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s;
}

.absence-calendar-day:hover {
    background-color: #f0f4ff;
}

.absence-calendar-day.other-month {
    background: var(--light-gray);
    color: #ccc;
}

.absence-calendar-day.today {
    outline: 2px solid var(--success-color);
    outline-offset: -2px;
}

.absence-calendar-day.weekend {
    background: #fafafa;
}

.absence-calendar-day.drag-selected {
    background-color: #d4e6ff !important;
}

.absence-calendar-day-number {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.absence-calendar-day.weekend .absence-calendar-day-number {
    color: var(--danger-color);
}

.absence-calendar-day.other-month .absence-calendar-day-number {
    color: #ccc;
}

/* Absence bars in calendar */
.absence-calendar-bar {
    display: block;
    font-size: 0.65rem;
    line-height: 1.4;
    padding: 1px 4px;
    margin-bottom: 1px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

/* Team absence bars (shown with name) */
.absence-calendar-bar.team {
    opacity: 0.7;
    font-style: italic;
}

/* Absence type colors */
.absence-color-ferien, .absence-calendar-bar.ferien {
    background-color: #2e7d32;
}

.absence-color-krankheit, .absence-calendar-bar.krankheit {
    background-color: #c62828;
}

.absence-color-krankheit_kind, .absence-calendar-bar.krankheit_kind {
    background-color: #e65100;
}

.absence-color-militaer, .absence-calendar-bar.militaer {
    background-color: #1565c0;
}

.absence-color-kompensation, .absence-calendar-bar.kompensation {
    background-color: #6a1b9a;
}

.absence-color-andere, .absence-calendar-bar.andere {
    background-color: #757575;
}

.absence-color-andere_nb, .absence-calendar-bar.andere_nb {
    background-color: #d84315;
}


/* Legend dots */
.absence-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .absence-calendar-day {
        min-height: 50px;
        padding: 2px;
    }

    .absence-calendar-day-number {
        font-size: 0.7rem;
    }

    .absence-calendar-bar {
        font-size: 0.55rem;
        padding: 0 2px;
    }

    .absence-calendar-header {
        font-size: 0.7rem;
        padding: 4px 2px;
    }

    .absence-calendar-team-dot {
        width: 5px;
        height: 5px;
    }
}
