/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00264E;
    --secondary-color: #0168fa;
    --background-color: #f5f6fa;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --error-color: #c33;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--primary-color);
}

.login-box {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto 2rem auto;
}

.login-box h1 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(1, 104, 250, 0.1);
}

.login-box button {
    width: 100%;
    padding: 0.75rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.login-box button:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

.login-box button:active {
    transform: translateY(0);
}

.error-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #fee;
    color: var(--error-color);
    border-radius: 4px;
    display: none;
    border-left: 3px solid var(--error-color);
}

.error-message.show {
    display: block;
}

.success-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    display: none;
    border-left: 3px solid #28a745;
}

.success-message.show {
    display: block;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
    color: var(--text-color);
}

.modal-content h2 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-header .logo {
    height: 40px;
    width: auto;
}

.dashboard-header h1 {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
}

.user-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-info button {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.user-info button:hover {
    background: rgba(255,255,255,0.3);
}

.dashboard-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.dashboard-sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    flex-shrink: 0;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: var(--background-color);
}

.dashboard-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Navigation Styles */
.main-navigation {
    padding: 1rem 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background-color: rgba(1, 104, 250, 0.05);
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
}

.nav-link.active {
    background-color: rgba(1, 104, 250, 0.1);
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.nav-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s;
    color: var(--text-light);
}

.nav-item.expanded .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 38, 78, 0.02);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.nav-item.expanded .nav-submenu {
    max-height: 500px;
}

.nav-sublink {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 3.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-sublink:hover {
    background-color: rgba(1, 104, 250, 0.08);
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    padding-left: 3.25rem;
}

.nav-sublink.active {
    background-color: rgba(1, 104, 250, 0.12);
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 300px;
    }

    .dashboard-content {
        padding: 1rem;
    }
}

