.page {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-image: url(images/bg.png);
    background-size: cover;
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--secondary-color), var(--main-color));
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    transition: width 0.3s ease;
}

    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

        .sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.5);
        }


.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-content {
    flex: 1;
    overflow-y: auto;
}

    .main-content::-webkit-scrollbar {
        width: 8px;
    }

    .main-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .main-content::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

        .main-content::-webkit-scrollbar-thumb:hover {
            background: #555;
        }


.top-bar {
    height: 60px;
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.top-bar-content {
    height: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

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

.app-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    margin: 0;
}

    .app-title:hover {
        color: #0056b3;
    }


.top-bar-right {
    display: flex;
    align-items: center;
}

.user-menu {
    position: relative;
}

.user-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .user-menu-button:hover {
        background-color: #f0f0f0;
        transform: scale(1.05);
    }

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

    .user-menu-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #212529;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
    }

    .dropdown-item:first-child {
        border-radius: 8px 8px 0 0;
    }

    .dropdown-item:last-child {
        border-radius: 0 0 8px 8px;
    }

.dropdown-icon {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.dropdown-divider {
    height: 1px;
    background-color: #dee2e6;
    margin: 0.5rem 0;
}


.footer {
    padding: 1rem;
    background-color: #e9ecef;
    border-top: 1px solid #dee2e6;
    text-align: center;
    flex-shrink: 0;
}

    .footer p {
        margin: 0;
        color: #6c757d;
    }


@media (max-width: 768px) {
    .top-bar-content {
        padding: 0 1rem;
    }



}

/* Très petits écrans */
@media (max-width: 480px) {
    .app-title {
        display: none;
    }
}
