/* Header styles from Slovenská rádiologická spoločnosť */

.header {
    padding: 20px 0 20px 0;
}

.table {
    display: table;
    width: 100%;
}

.table-cell {
    display: table-cell;
    vertical-align: middle;
}

.logo {
    font-family: semplicitapro, sans-serif;
    font-style: normal;
    font-size: 36px;
    font-weight: 700;
}

.logo img {
    max-height: 80px;
}

.rightmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rightmenu ul li {
    list-style-type: none;
    display: inline-block;
    margin-right: 15px;
}

.rightmenu a {
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
}

.rightmenu a:hover {
    color: var(--primary);
}

/* Dropdown styles */
.rightmenu .dropdown {
    position: relative;
}

.rightmenu .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    display: none;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.rightmenu .dropdown-menu.show {
    display: block;
}

.rightmenu .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
    font-size: 15px;
}

.rightmenu .dropdown-item:hover,
.rightmenu .dropdown-item:focus {
    color: #fff;
    background-color: var(--primary);
}

.rightmenu .dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.rightmenu .dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #e9ecef;
}

.rightmenu .dropdown-toggle::after {
    display: none;
}

.float-right {
    float: right;
}

/* Menu styles */
.menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu li {
    list-style-type: none;
    display: inline-block;
    margin-right: 1.2%;
    margin-top: 15px;
}

.menu a {
    display: block;
    line-height: 2em;
    font-weight: 500;
    font-size: 13px;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
}

.menu a:hover {
    color: #2daae2;
}

.menu a.active {
    color: #000;
    font-weight: 700;
    border-bottom: 1px solid black;
}

.menu_icon{
    width: 25px;
    height: 25px;
    margin-bottom: 2px;
}


/* Hamburger Button */
#show-sidebar {
    display: none;
    z-index: 1000;
    background: transparent;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    color: #fff;
}

#show-sidebar span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

/* Close Button in Sidebar */
#close-sidebar {
    display: none; /* Hidden on desktop */
}

.header_top{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Menu Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* Sidebar Navigation */
#sidebar {
    /* Desktop: display inline */
    position: relative;
    background: transparent;
    padding: 0;
}

.mobile_menu{
    display: none;
}

/* Sidebar Menu Items - Mobile only */
@media (max-width: 991px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background: var(--secondary);
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 999;
        padding: 60px 15px 20px 15px;
    }

    body.menu-open #sidebar {
        left: 0;
    }

    #sidebar .menu li {
        display: block;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #sidebar .menu a {
        color: #fff;
        padding: 10px 0;
        display: block;
        font-size: 14px;
        text-transform: uppercase;
        text-decoration: none;
    }

    #sidebar .menu a:hover {
        color: var(--primary);
    }

    #sidebar .menu a.active {
        color: var(--primary);
        font-weight: 700;
    }

    .mobile_menu{
        display: block;
        background: var(--dark);
    }

    .mobile_menu .fa-bars{
        font-weight: bold;
        color: var(--light);
    }
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
    .table-cell {
        display: block;
    }

    .rightmenu ul li {
        margin-right: 8px;
    }

    .logo {
        font-size: 16px;
        font-weight: 700;
        word-wrap: break-word;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .logo a {
        white-space: nowrap;
    }

    .logo img {
        margin-right: 10px;
        height: 50px;
    }

    .menu li {
        margin-right: 3%;
    }
}

@media (max-width: 991px) {
    .logo{
        margin-top: 10px;
    }
    .logo img {
        max-height: 50px;
    }

    .rightmenu ul li {
        margin-right: 8px;
    }

    /* Show hamburger menu */
    #show-sidebar {
        display: block;
    }

    #close-sidebar:focus,
    #close-sidebar {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 30px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        line-height: 30px;
        text-align: center;
        outline: none;
    }

    #close-sidebar:hover {
        color: var(--primary);
    }

    .header_top {
        flex-direction: column-reverse;
        justify-content: unset;
        align-items: unset;
        >div{
            flex: 0 0 100%;
        }
        .rightmenu{
            text-align: right;
        }
    }

    .header{
        padding-bottom: 0;
    }
}

@media (max-width: 800px) {
    .header {
        padding: 10px 0 0;
    }

    .rightmenu ul li {
        margin-right: 5px;
        font-size: 12px;
    }

}
