@property --theme-red {
    syntax: "<color>";
    inherits: false;
    initial-value: #d32f2f;
}
@property --theme-black {
    syntax: "<color>";
    inherits: false;
    initial-value: #181818;
}
@property --theme-black-shadow {
    syntax: "<color>";
    inherits: false;
    initial-value: rgba(24, 24, 24, 0.1);
}
@property --theme-white {
    syntax: "<color>";
    inherits: false;
    initial-value: #ffffff;
}
@property --theme-white-shadow {
    syntax: "<color>";
    inherits: false;
    initial-value: rgba(224, 224, 224, 0.1);
}
/* Mobile-first CSS for responsive login page */
* {
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", "Segoe UI", sans-serif;
}

body {
    background-color: var(--theme-red);
    margin: 0;
    padding: 0;
}

.center-viewport {
    display: grid;
    place-items: center;
    min-height: 100vh;
    width: 100vw;
    padding: 20px;
    grid-template-areas: "content";
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}
.center-page > * {
    grid-area: content;
    width: 100%;
    max-width: 400px;
}
.login-container {
    background: var(--theme-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--theme-black-shadow);
    padding: 40px 20px;
    text-align: center;
}

.dash-container {
    background: var(--theme-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--theme-black-shadow);
    width: 100%;
    max-width: 400px;
    padding: 40px 20px;
    text-align: center;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    font-size: 32px;
    font-weight: 600;
    color: var(--theme-red);
    margin-bottom: 8px;
}

.subtitle {
    color: #5f6368;
    font-size: 16px;
    line-height: 1.5;
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--theme-white-shadow);
    font-size: 12px;
    color: var(--theme-black);
}

.footer p {
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 15px;
    }

    .logo {
        font-size: 28px;
    }

    .subtitle {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .login-container {
        padding: 20px 10px;
    }

    .logo {
        font-size: 24px;
    }
}

.title-bar {
    position: sticky;
    top: 0;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--theme-white);
    padding: 10px 20px;
    box-shadow: 0 2px 4px var(--theme-black-shadow);
    z-index: 1000;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-height: 64px;
}
.title-text {
    flex-grow: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-toggle,
.user-avatar,
.menu-close {
    width: 30px;
    height: 20px;
    position: relative;
    background-color: var(--theme-white);
    border-radius: 50%;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    left: 0;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 8px;
}

.menu-toggle span:nth-child(3) {
    top: 16px;
}
.menu-toggle:hover::before,
.menu-toggle:hover::after,
.menu-toggle:hover span {
    background-color: var(--theme-red);
    color: var(--theme-white);
}

.menu-close::before,
.menu-close::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #333;
    top: 13px;
    transition: all 0.3s ease;
    left: 0;
    border-radius: 2px;
}

.menu-close::before {
    transform: rotate(45deg);
}

.menu-close::after {
    transform: rotate(-45deg);
}

.menu-close:hover::before,
.menu-close:hover::after,
.menu-close:hover span {
    background-color: var(--theme-red);
    color: var(--theme-white);
}

.menu-container {
    position: fixed;
    top: 64px; /* Height of your title bar */
    left: 0;
    width: 100vw;
    height: calc(100vh - 64px); /* Full viewport height minus title bar */
    background-color: var(--theme-white);
    box-shadow: 0 4px 12px var(--theme-black-shadow);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.menu-container.open {
    transform: translateX(0);
}

.menu-items {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.menu-items li {
    padding: 15px 20px;
    border-bottom: 1px solid var(--theme-white-shadow);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.menu-items li:hover {
    background-color: var(--theme-white-shadow);
}

.menu-container.open ~ .menu-close {
    display: block; /* Show when menu is open */
}

.hidden {
    display: none;
}
