﻿html, body {
    height: 100%;
    margin: 0;
}

.body-wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

header {
    background-color: #1ab192;
    color: white;
    padding: 0.25rem 2rem;
    width: 100%;
}

.header-content {
    position: relative;
    height: 80px;
}

.header-left,
.header-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9em;
    font-weight: normal;
    color: white;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-left {
    left: 2rem;
}

.header-right {
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: normal;
    transition: opacity 0.2s ease;
}

    .header-link:hover {
        opacity: 0.85;
    }

.header-icon {
    font-size: 1.2em;
}

.header-center {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .header-center img {
        height: 100px;
        width: auto;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
        border-radius: 2px;
        object-fit: contain;
    }

footer {
    text-align: center;
    background-color: #1ab192;
    color: white;
    padding: 1rem 2rem;
    width: 100%;
}

/* Sidebar */

.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    height: 100vh;
    width: 250px;
    background-color: #1ab192;
    padding: 2rem 1rem;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

    .sidebar a {
        color: white;
        font-weight: bold;
        text-decoration: none;
        margin-bottom: 1.5rem;
        font-size: 1.1em;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .sidebar a:hover {
            opacity: 0.9;
        }

.sidebar-close {
    align-self: flex-end;
    font-size: 1.5em;
    color: white;
    cursor: pointer;
    margin-bottom: 4rem;
    margin-top: -7px;
    padding-right: 3px;
}

.sidebar-open {
    color: white;
    font-size: 1.3em;
    cursor: pointer;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
}

.sidebar-toggle:checked ~ .sidebar {
    left: 0;
}

.sidebar-toggle:checked ~ header .sidebar-open {
    display: none;
}

.header-text {
    display: inline;
}

@media (max-width: 768px) {
    .header-text {
        display: none;
    }

    .header-left,
    .header-right {
        max-width: 40%;
        overflow: hidden;
        gap: 0.4rem;
    }

        .header-left i,
        .header-right i,
        .header-left a,
        .header-right a {
            font-size: 0.9em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .header-right span {
            display: none;
        }

    .header-center img {
        height: 70px;
    }

    .header-content {
        height: 70px;
    }

    header {
        padding: 0.25rem 1rem;
    }
}

.header-left,
.header-right {
    gap: 1rem;
}

    .header-left a i,
    .header-right a i {
        font-size: 1.5em;
    }

.sidebar-user {
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 5rem;
    word-break: break-word;
    overflow-wrap: break-word;
    padding: 0 0.5rem;
}

    .sidebar-user i {
        font-size: 2em;
    }

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

@media screen and (orientation: portrait) {
    .pop-up-profiles {
        width: 90%;
    }

    #content {
        width: 90% !important;
    }
}