﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar {
    background: #ee0025;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    max-width: 100%;
}

.navbar-brand {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

    .navbar-brand img {
        width: 50%;
        padding-right: 10px;
    }

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.0rem;
}

    .nav-link:hover {
        color: darkorange;
    }

    .nav-link.active {
        color: gold;
        font-weight: bold;
    }

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 6px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: dimgray;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

    .dropdown-item:hover {
        color: red;
        padding-left: 15px;
    }

    .dropdown-item.active {
        color: red;
        font-weight: bold;
    }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    border: 0px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    background-color: white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.main-content {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.footer {
    background: #333333;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

@media screen and (max-width: 885px) {
    .menu-toggle {
        display: block;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 10px;
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1001;
        background-color: white;
    }

        .navbar-nav.show {
            display: flex !important;
        }

    .nav-item {
        width: 100%;
        min-width: 150px;
        background-color: white;
        margin-left: auto;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        color: dimgray;
        font-size: 0.9rem;
        text-align: left;
    }

        .nav-link:hover {
            color: red;
        }

        .nav-link.active {
            color: red;
            font-weight: bold;
        }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #f8f8f8;
        display: none;
        margin-left: 20px;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        margin-right: 6px;
    }
}
