@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&display=swap');

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background-color: #0f172a; /* Fallback */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0; /* slate-200 */
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Alle anderen Stile wurden in custom.css konsolidiert oder entfernt, um Redundanz zu beseitigen. */
/* Dies beinhaltet Header, Footer, Buttons, mobile Navigation und seiten-spezifische Layouts. */
/* Die verbleibenden Stile für die Authentifizierungsseiten wurden nach custom.css verschoben. */

/* Header Styles */
.floating-header {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 95%;
    max-width: 1400px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    z-index: 1000;
    transition: opacity 0.3s ease;
    padding: 0.75rem;
    opacity: 1;
}

.floating-header.hidden {
    opacity: 0;
    pointer-events: none;
}

.floating-header .container {
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 1rem;
    flex-wrap: nowrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    gap: 0.75rem;
}

.logo i {
    color: #3b82f6;
    font-size: 1.75rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
    gap: 0.75rem;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.15);
}

.nav-link i {
    font-size: 1.1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex-shrink: 1;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    gap: 0.75rem;
}

.user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    gap: 0.75rem;
}

.btn-danger {
    background-color: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn i {
    font-size: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 40;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

#mobile-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #111827;
    padding: 1.5rem;
    transition: all 0.3s ease;
    z-index: 50;
    overflow-y: auto;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    pointer-events: none;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.mobile-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-link i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

.mobile-user-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.mobile-user-details {
    margin-left: 0.75rem;
}

.mobile-username {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.875rem;
}

.mobile-user-role {
    color: #9ca3af;
    font-size: 0.75rem;
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

.mobile-btn i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
}

.mobile-btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
}

.mobile-btn-primary:hover {
    background-color: #2563eb;
}

.mobile-btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.mobile-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.mobile-btn-danger {
    background-color: #dc2626;
    color: #ffffff;
}

.mobile-btn-danger:hover {
    background-color: #b91c1c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-header {
        top: 0.5rem;
        width: 98%;
    }

    .desktop-nav {
        display: none;
    }
    
    .header-right {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-left {
        gap: 1rem;
    }
    
    .logo span {
        display: none;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link i {
        margin-right: 0;
        font-size: 1.25rem;
    }
    
    .btn span {
        display: none;
    }
    
    .btn i {
        margin-right: 0;
    }
    
    #mobile-menu {
        display: block;
    }
    
    #mobile-menu.hidden {
        transform: translateX(100%);
    }
}

@media (max-width: 1100px) {
    .header-content {
        gap: 0.5rem;
    }
    .header-left {
        gap: 1rem;
    }
    .user-info {
        padding: 0.5rem 0.5rem;
    }
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 900px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    .header-right {
        justify-content: flex-end;
        width: 100%;
        margin-top: 0.25rem;
    }
}

@media (max-width: 1024px) {
    .header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }
    .header-left {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
    .mobile-menu-btn {
        margin-left: 0;
    }
}

@media (min-width: 1025px) {
    .mobile-menu-btn {
        display: none !important;
    }
    .desktop-nav,
    .header-right {
        display: flex !important;
    }
}

/* Main container */
.main-container {
    padding-top: 80px; /* Adjust this value based on header height */
    flex: 1;
}

/* Footer */
footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-logo:hover {
    opacity: 0.8;
}

.auth-logo i {
    font-size: 2rem;
}

.auth-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* bold */
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; /* gap-3 */
}

.auth-box label {
    display: block;
    color: #cbd5e1; /* slate-300 */
    margin-bottom: 0.5rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
}

.auth-box form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-dark {
    display: block;
    width: 100%;
    background-color: #1e293b; /* slate-800 */
    border: 1px solid #334155; /* slate-700 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 0.875rem 1rem; /* py-3.5 */
    color: white;
    transition: all 0.2s ease-in-out;
}

.input-dark:focus {
    outline: none;
    border-color: #3b82f6; /* blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-dark::placeholder {
    color: #64748b; /* slate-500 */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: #3b82f6; /* blue-500 */
    color: white;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #2563eb; /* blue-600 */
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #334155; /* slate-700 */
    color: #cbd5e1;
}

.btn-secondary:hover {
    background-color: #475569;
}

.auth-link-container {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8; /* slate-400 */
}

.auth-link-container a {
    color: #60a5fa;
    font-weight: 500;
    text-decoration: none;
}

.auth-link-container a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}



/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background-color: #334155;
    border-radius: 6px;
    border: 3px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #475569;
} 