/* assets/css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: radial-gradient(circle at 100% 0%, #1E1B4B, #0A0F1C);
    min-height: 100vh;
    color: white;
    line-height: 1.5;
}

/* Navigation */
.navbar {
    background: rgba(26, 31, 47, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(79, 70, 229, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #C0C8E0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-name {
    color: #E0E8FF;
    font-weight: 500;
}

.avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4F46E5;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-time {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(26, 31, 47, 0.6);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.current-time {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4F46E5;
}

.current-date {
    color: #8A92A8;
    font-size: 0.95rem;
}

/* Serie Badge */
.serie-badge {
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: #4F46E5;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Heutige Info (wird in spezifischen CSS überschrieben) */
.today-info {
    background: rgba(26, 31, 47, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.today-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border: 1px solid #10B981;
}

.badge-neutral {
    background: rgba(255, 255, 255, 0.1);
    color: #E0E8FF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.today-date {
    color: #8A92A8;
}

/* Buttons */
.enter-btn {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -10px #4F46E5;
}

.enter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px -10px #4F46E5;
}

/* Legende */
.legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 1rem;
    background: rgba(26, 31, 47, 0.4);
    border-radius: 50px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8A92A8;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Popup (global, wird in spezifischen CSS erweitert) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-overlay.show {
    display: flex;
}

.popup {
    background: #1A1F2F;
    border-radius: 32px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    border: 1px solid #4F46E5;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.popup-header h2 {
    font-size: 1.8rem;
    color: white;
}

.close-popup {
    background: none;
    border: none;
    color: #8A92A8;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #EF4444;
}

.popup-time {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #4F46E5;
}

.popup-note {
    margin-bottom: 2rem;
}

.popup-note label {
    display: block;
    color: #C0C8E0;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.popup-note input,
.popup-note textarea {
    width: 100%;
    padding: 1rem;
    background: #0A0F1C;
    border: 1px solid #2A2F3F;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.popup-note input:focus,
.popup-note textarea:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.popup-buttons {
    display: flex;
    gap: 1rem;
}

.save-btn {
    flex: 2;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px #4F46E5;
}

.cancel-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    .user-menu {
        gap: 0.8rem;
    }
    .user-name {
        display: none;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-time {
        width: 100%;
        justify-content: center;
    }
}