/* Meglévő stílusok */
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #000; }
.logo-link:hover { opacity: 0.8; }
.logo-img { height: 40px; transition: transform 0.5s ease; }
.logo-name { font-family: Arial, sans-serif; font-size: 1.4rem; font-weight: bolder; color: #000; }

/* Alap beállítások */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

/* Header */
.portal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 15px; }
.header-right { color: #333; font-weight: bold; }
.menu-toggle { background: none; border: none; font-size: 1.2rem; color: #333; cursor: pointer; display: none; }

/* Sidebar */
.portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="250" height="100%" viewBox="0 0 250 1000" preserveAspectRatio="none"><rect width="100%" height="100%" fill="%230a0a1a"/><defs><radialGradient id="g1" cx="30%" cy="30%" r="70%"><stop offset="0%" stop-color="%234a00e0" stop-opacity="0.3"/><stop offset="100%" stop-color="%238e2de2" stop-opacity="0.1"/></radialGradient><radialGradient id="g2" cx="70%" cy="70%" r="60%"><stop offset="0%" stop-color="%2300c6ff" stop-opacity="0.2"/><stop offset="100%" stop-color="%230072ff" stop-opacity="0.05"/></radialGradient><linearGradient id="g3" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%238a2be2" stop-opacity="0.1"/><stop offset="100%" stop-color="%2300bfff" stop-opacity="0.05"/></linearGradient><path id="s" d="M0,-5L1.5,-1.5L5,0L1.5,1.5L0,5L-1.5,1.5L-5,0L-1.5,-1.5Z"/></defs><rect width="100%" height="100%" fill="url(%23g1)"/><rect width="100%" height="100%" fill="url(%23g2)"/><path d="M20,800Q125,600 250,700" stroke="url(%23g3)" stroke-width="2" fill="none" stroke-linecap="round" opacity="0.6"/><path d="M10,600Q150,800 250,600" stroke="url(%23g3)" stroke-width="1.5" fill="none" stroke-linecap="round" opacity="0.5"/><use href="%23s" x="30%" y="30%" fill="%238e2de2" opacity="0.8" transform="scale(2)"/><use href="%23s" x="80%" y="20%" fill="%2300c6ff" opacity="0.7" transform="scale(1.5)"/><use href="%23s" x="25%" y="80%" fill="%23ffffff" opacity="0.9" transform="scale(2.5)"/><pattern id="grid" width="80" height="80" patternUnits="userSpaceOnUse"><path d="M0,0L80,80M80,0L0,80" stroke="%234a00e0" stroke-width="0.5" opacity="0.1"/></pattern><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') no-repeat center top;
    background-size: 100% 100%;
    border-right: 1px solid #222;

    display: flex;
    flex-direction: column;
    z-index: 99;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    padding-top: 65px;
}

.sidebar-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
    bottom: 0;
    margin-bottom: 10px;
}

.sidebar-link {
    display: block;
    padding: 15px 40px 15px 20px;
    margin: 0px 10px;
    margin-top: 5px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeIn 0.5s ease forwards;
    border-radius: 5px;
}

.sidebar-link:hover {
    transform: translateX(5px);
    background: rgb(224 224 224 / 0.4);
}

.sidebar-divider {
    height: 1px;
    background: rgb(224 224 224 / 0.4);
    margin: 10px 20px;
}

/*.sidebar-link::after {
    content: '›';
    position: absolute;
    right: 20px;
    color: #ccc;
    font-size: 1.4rem;
}
*/
.sidebar-link.active { background: rgb(224 224 224 / 0.4); }
.sidebar-link.active::after { color: rgb(224 224 224); }

/* Animációk */
@keyframes fadeIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Késleltetés */
.sidebar-link:nth-child(1) { animation-delay: 0.1s; }
.sidebar-link:nth-child(2) { animation-delay: 0.2s; }
.sidebar-link:nth-child(3) { animation-delay: 0.3s; }
.sidebar-link:nth-child(4) { animation-delay: 0.4s; }
.sidebar-link:nth-child(5) { animation-delay: 0.5s; }
.sidebar-link:nth-child(6) { animation-delay: 0.6s; }

/* Logo animáció */
.logo-link:hover .logo-img {
    transform: rotate(10deg) scale(1.1);
}

/* Main content */
:root {
    --portal-sidebar-width: 250px;
    --portal-main-height: 94vh;
}

.portal-main {
    box-sizing: border-box;
    width: calc(100% - var(--portal-sidebar-width));
    height: var(--portal-main-height);
    margin-inline-start: var(--portal-sidebar-width);
    padding: 0;
}

#contentFrame {
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
}

main {
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-name { font-size: 1.2rem; }
    .logo-img { height: 35px; }
    .menu-toggle { display: block; }
    .portal-sidebar {
        transform: translateX(-100%);
    }
    .portal-sidebar.active {
        transform: translateX(0);
    }
    .portal-main {
        margin-left: 0;
        padding:0;
        width: 100%;
    }
    :root {
        --portal-main-height: 82vh;
    }
}