/**
 * Standard Layout
 * Full-width content with top navigation
 */

.app-layout { display: flex; flex-direction: column; min-height: 100vh; }

.app-nav {
    background: white;
    padding: 1px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 9;
}

.app-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 1.25rem;
}

.app-nav .logo img { height: 40px; width: auto; }

.app-nav ul {
    display: flex;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.app-nav > .container > ul > li > a:not(.user-menu-btn) {
    display: block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: all 0.2s;
}

.app-nav > .container > ul > li > a:not(.user-menu-btn):hover,
.app-nav > .container > ul > li > a:not(.user-menu-btn).active {
    color: white;
}

.app-main { flex: 1; }

.app-footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}
.app-footer p { opacity: 0.8; margin: 0; }

/* Mobile menu for standard layout */
@media (max-width: 768px) {
    .app-nav .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .app-nav .mobile-menu-toggle {
        display: flex !important;
        background: none;
        border: none;
        font-size: 24px;
        padding: 10px;
        color: #333;
        cursor: pointer;
        z-index: 10;
        order: -1;
    }

    .app-nav .logo {
        flex: 1;
        order: 0;
    }

    .app-nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 70px 20px 20px;
        margin: 0;
        z-index: 1001;
        box-shadow: 4px 0 25px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .app-nav ul.open {
        left: 0;
    }

    .app-nav ul li {
        width: 100%;
    }

    .app-nav ul a {
        display: block;
        padding: 14px 18px;
        color: #333;
        border-radius: 8px;
    }

    .app-nav ul a:hover, .app-nav ul a.active {
        background: var(--primary-color);
        color: white;
    }

    /* Mobile overlay */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }

    .mobile-overlay.active {
        display: block;
        z-index: 9;
    }

    /* Notification bell - extract from sliding nav and position fixed */
    .nav-notify-menu {
        position: fixed !important;
        top: 12px;
        right: 62px;
        z-index: 1002;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .nav-notify-menu .notify-btn {
        background: white !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        font-size: 18px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* User menu - extract from sliding nav and position fixed */
    .nav-user-menu {
        position: fixed !important;
        top: 12px;
        right: 15px;
        z-index: 1002;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-user-menu .user-menu-wrapper {
        position: static;
    }

    .nav-user-menu .user-menu-btn {
        background: white !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        font-size: 22px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* User dropdown slides up from bottom on mobile */
    .user-dropdown {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        z-index: 10000 !important;
        box-shadow: 0 -5px 30px rgba(0,0,0,0.2) !important;
    }

    .user-dropdown.show {
        display: block !important;
        animation: slideUpDropdown 0.3s ease;
    }

    @keyframes slideUpDropdown {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    /* Language menu - keep inside sliding nav */
    .nav-lang-menu {
        width: 100%;
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid #eee;
    }

    .nav-lang-menu .lang-menu-wrapper {
        width: 100%;
    }

    .nav-lang-menu .lang-menu-btn {
        width: 100%;
        justify-content: center;
        background: #f5f5f5 !important;
        border-radius: 8px !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    .nav-lang-menu .lang-dropdown {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 100%;
        margin-top: 8px;
        box-shadow: none !important;
        border: 1px solid #eee !important;
    }

    /* Overlay for mobile dropdown */
    .user-dropdown-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
    }

    .user-dropdown-overlay.show {
        display: block;
        z-index: auto;
    }
}
