:root {
    --redish-color: #a32727;
    --redish-color-hover: rgb(177, 36, 36);
    --shadow-light: rgba(0, 0, 0, 0.08);

}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to right, #B3B9C6, #7E92B3, #4A73B4);
    color: #1f2937;
}

.container {
    max-width: 96rem;
    margin: 0 auto;
    padding: 1rem;
}

/* Header & Buttons */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
}

.title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #111827;
}

.login-btn,
.logout-btn,
.dashboard-btn,
.admin-btn {
    color: #f3f3f3;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login-btn {
    background-color: #4CAF50;
}

.login-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.logout-btn {
    background-color: var(--redish-color);
    color: #fff;
    border: 2px solid var(--redish-color);
}

.logout-btn:hover {
    background-color: var(--redish-color-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-light);
}

.dashboard-btn {
    background-color: #2e556c;
}

.dashboard-btn:hover {
    background-color: #36627a;
    transform: translateY(-2px);
}

.admin-btn {
    background-color: #405c50;
}

.admin-btn:hover {
    background-color: #49685a;
    transform: translateY(-2px);
}






.nav-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Info box */
.info-box {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #0369a1;
}

/* Dashboard frame */
.dashboard-frame {
    border-radius: 16px;
    overflow: hidden;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
}



.menu-toggle {
    display: none;
    width: 28px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
}

.menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #111827;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

/* When menu is open */
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* Mobile view */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

/* --- Mobile & Tablet Responsiveness --- */
@media (max-width: 1024px) {
    .title {
        font-size: 1.5rem;
    }

    .info-box {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    /* Hide buttons initially */
    .nav-buttons {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: rgba(61, 61, 61, 0.97);
        padding: 0.75rem 0.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.73);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 10;
    }

    /* Show when toggled */
    .nav-buttons.show {
        display: flex;
        margin-top: 0.5rem;
    }

    .nav-buttons a {
        width: auto;
        min-width: 150px;
        margin: 0.3rem 0;
        text-align: center;
    }

    .title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .info-box {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }


    .login-btn,
    .dashboard-btn,
    .admin-btn {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    /* Dashboard frame */
    .dashboard-frame {
        height: 20rem;
    }

    .iframe-wrapper {
        height: 20rem;
    }

    .iframe-wrapper iframe {

        width: 100%;
        height: 20rem;
    }



}