body{font-family:Segoe UI, Arial, sans-serif;line-height:1.5;margin:0;padding:0;background:#f6f7fb;color:#222}
header{background:#0b5ed7;color:#fff;padding:18px}
main{padding:20px}
a{color:#0b5ed7}
footer{padding:12px 20px;font-size:0.9rem;color:#666}


/* Dropdown konténer */
.dropdown {
    position: relative;
}

/* Almenü alapállapotban */
.dropdown-content {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;

    /* Témafüggő háttér és szín */
    background: var(--bg-secondary);
    color: var(--text-color);

    /* Ha világos téma van, legyen enyhén szürke háttér */
    background-color: rgba(255, 255, 255, 0.95);

    min-width: 200px;
    overflow: visible;

    /* Animáció */
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
}

/* Sötét mód támogatás */
body.dark-mode .dropdown-content {
    background: var(--bg-secondary);
    color: var(--text-color);
}

/* Lenyílás hoverre */
.dropdown:hover .dropdown-content {
    max-height: 500px;
    opacity: 1;
}

/* Almenü elemek */
.dropdown-content li a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-color);
    white-space: nowrap;
}

.dropdown-content li a:hover {
    background: var(--link-color);
    color: #fff;
}

/* Elválasztó */
.dropdown-content .separator {
    border-top: 1px solid rgba(0,0,0,0.2);
    margin: 5px 0;
}

body.dark-mode .dropdown-content .separator {
    border-top: 1px solid rgba(255,255,255,0.3);
}
.dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
}

.dropbtn {
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.main-nav > a,
.main-nav .dropbtn {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,0.18);
    white-space: nowrap;
}

.main-nav > a:hover,
.main-nav .dropbtn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.28);
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #222;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: #0b5ed7;
    color: #fff;
}

.submenu {
    position: relative;
}

.submenu-btn {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #222;
    white-space: nowrap;
}

.submenu-btn:hover {
    background: #0b5ed7;
    color: #fff;
}

.submenu-content {
    position: static;
    min-width: 0;
    margin: 4px 8px 8px;
    background: var(--bg-secondary);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    z-index: 10001;
}

.submenu.open .submenu-content {
    opacity: 1;
    max-height: 300px;
}

.submenu-content a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #222;
    white-space: nowrap;
}

.submenu-content a:hover {
    background: #0b5ed7;
    color: #fff;
}

body.app-webview .header-brand,
body.app-webview .header-actions,
body.app-webview .main-nav,
body.app-webview .user-info {
    display: none !important;
}

body.app-webview header {
    padding: 10px 12px;
}

body.app-webview main {
    padding-top: 14px;
}
