/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #e2e8f0;
    background-color: #0f172a;
}

/* Navbar */
.navbar {
    background-color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

    .navbar-brand:hover {
        opacity: 0.9;
    }

.navbar-logo {
    height: 120px;
    width: auto;
    filter: brightness(0.95);
}

.navbar-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e2e8f0;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
}

.language-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem; /* Ger luft runt både ikon och text */
    background-color: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 0.5rem; /* Rundade hörn, men inte helt rund */
    cursor: pointer;
    transition: all 0.2s;
    gap: 0.5rem; /* Avstånd mellan ikon och text */
}

.language-icon {
    font-size: 1.2rem;
}

.language-text {
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 500;
}

    .language-button:hover {
        background-color: rgba(51, 65, 85, 0.8);
        transform: translateY(-1px);
    }

.language-icon {
    font-size: 1.2rem;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: transparent;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

    .profile-button:hover {
        transform: translateY(-1px);
    }

.profile-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #60a5fa, #818cf8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-initial {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Dropdown Menus */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background-color: #1e293b;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
    min-width: 200px;
    padding: 0.5rem;
    transform-origin: top right;
}

    .dropdown-menu.show {
        display: block;
        animation: dropdownFade 0.2s ease forwards;
    }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

    .dropdown-item:hover {
        background-color: rgba(51, 65, 85, 0.8);
        color: #60a5fa;
    }

.dropdown-icon {
    font-size: 1.1rem;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(148, 163, 184, 0.1);
    margin: 0.5rem 0;
}

.dropdown-item.logout {
    color: #ef4444;
}

    .dropdown-item.logout:hover {
        background-color: rgba(239, 68, 68, 0.1);
    }

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Container */
.dashboard-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 3rem 1rem;
}

.dashboard-header {
    max-width: 64rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    font-size: 1.125rem;
    color: #94a3b8;
}

/* Training Section */
.training-section {
    max-width: 64rem;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.training-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.training-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.3s;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

    .training-button:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
        background: rgba(30, 41, 59, 0.9);
    }

.button-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 1rem;
    padding: 1rem;
}

    .button-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
        filter: brightness(0.9) contrast(1.1);
    }

.training-button:hover .button-icon img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.button-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.button-score {
    font-size: 1rem;
    color: #60a5fa;
    font-weight: 500;
}

/* Button Variants */
.training-button.signs {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.training-button.environment {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.training-button.theory {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Progress Section */
.progress-section {
    max-width: 64rem;
    margin: 4rem auto 0;
    padding: 0 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.progress-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.progress-ring {
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), inset 0 0 0 2px #60a5fa;
    position: relative;
}

    .progress-ring::before {
        content: '';
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        border-radius: 50%;
        background: linear-gradient(135deg, #60a5fa, #818cf8);
        z-index: -1;
        opacity: 0.2;
    }

.progress-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.progress-label {
    font-size: 1rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-title {
        display: none;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .training-buttons {
        grid-template-columns: 1fr;
    }

    .progress-ring {
        width: 160px;
        height: 160px;
    }

    .progress-number {
        font-size: 2.5rem;
    }
}
 