:root {
    --bg-gradient-dark: linear-gradient(#00000070, #000000f1), url("/images/background.jpg");
    --bg-gradient-light: linear-gradient(#f0f0f070, #e0e0e0e1), url("/images/background.jpg");
    --text-color-dark: #ffffff;
    --text-color-light: #000000;
    --header-bg-dark: rgba(0, 0, 0, 0.25);
    --header-bg-light: rgba(255, 255, 255, 0.25);
    --header-text-dark: #007bff;
    --header-text-light: #00008b;
    --header-link-dark: #add8e6;
    --header-link-light: #00008b;
    --header-hover-bg-dark: #ff6b35;
    --header-hover-bg-light: #ff8c00;
    --header-hover-text-dark: #ffffff;
    --header-hover-text-light: #ffffff;
    --accent-color: #ff6b35;
    --shadow-color-dark: rgba(0, 0, 0, 0.5);
    --shadow-color-light: rgba(0, 0, 0, 0.2);
    --theme-toggle-color-dark: #007bff;
    --theme-toggle-color-light: #00008b;
}

:-webkit-scrollbar {
    display: none;
}

body {
    background: var(--bg-gradient-dark);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: darken;
    background-position: center;
    height: 100vh;
    width: 100vw;
    margin: 0;
    display: flex;
    color: var(--text-color-dark);
    font-family: Arial, sans-serif;
    -ms-overflow-style: none;
    scrollbar-width: none;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-text-size-adjust: 110%;
    -moz-text-size-adjust: 110%;
    -ms-text-size-adjust: 110%;
    text-size-adjust: 110%;
}

* {
    box-sizing: border-box;
}

body.light {
    background: var(--bg-gradient-light);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: lighten;
    background-position: center;
    color: var(--text-color-light);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: 60px;
    background-color: var(--header-bg-dark);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0;
    box-shadow: 0 2px 10px var(--shadow-color-dark);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.light header {
    background-color: var(--header-bg-light);
    box-shadow: 0 2px 10px var(--shadow-color-light);
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--header-text-dark);
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    height: 35px;
    line-height: 35px;
    display: flex;
    align-items: center;
}

body.light #theme-toggle {
    color: var(--header-text-light);
}

#headerIcon {
    height: 55px;
    width: 55px;
    margin-left: 10px;
}

#headerTitle {
    margin: 0;
    font-size: 24px;
    flex-grow: 1;
    color: var(--header-text-dark);
    padding: 0 10px;
    transition: color 0.3s ease;
}

body.light #headerTitle {
    color: var(--header-text-light);
}

#headerTitle a {
    margin: 0;
    font-size: 24px;
    flex-grow: 1;
    color: var(--header-link-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

body.light #headerTitle a {
    color: var(--header-link-light);
}

#headerMenu {
    display: flex;
    margin: 15px;
}

#headerMenu a {
    color: var(--header-link-dark);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all ease 0.3s;
    height: 35px;
    line-height: 35px;
    display: flex;
    align-items: center;
}

body.light #headerMenu a {
    color: var(--header-link-light);
}

#headerMenu a:hover {
    color: var(--header-hover-text-dark);
    background-color: var(--header-hover-bg-dark);
    box-shadow: 0 0 15px var(--accent-color);
}

body.light #headerMenu a:hover {
    color: var(--header-hover-text-light);
    background-color: var(--header-hover-bg-light);
    box-shadow: 0 0 15px var(--accent-color);
}

#app {
    margin-top: 80px;
    padding: 0;
}

.footer {
    text-align: center;
    position: fixed;
    bottom: 15px;
    width: 100%;
    height: auto;
    z-index: 9999;
}

/* Hamburger Menu */
#hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--header-text-dark);
    padding: 5px 10px;
    border-radius: 5px;
    height: 35px;
    line-height: 35px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

body.light #hamburger {
    color: var(--header-text-light);
}

/* Sidebar */
#sidebar {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background-color: var(--header-bg-dark);
    backdrop-filter: blur(10px);
    box-shadow: -2px 0 10px var(--shadow-color-dark);
    transition: right 0.3s ease;
    z-index: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 769px) {
    #sidebar {
        display: none;
    }

    #hamburger {
        display: none;
    }
}

body.light #sidebar {
    background-color: var(--header-bg-light);
    box-shadow: -2px 0 10px var(--shadow-color-light);
}

#sidebar.open {
    right: 0;
}

#closeSidebar {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--header-text-dark);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

body.light #closeSidebar {
    color: var(--header-text-light);
}

#sidebarMenu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#sidebarMenu a {
    color: var(--header-link-dark);
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    transition: all ease 0.3s;
    font-size: 18px;
}

body.light #sidebarMenu a {
    color: var(--header-link-light);
}

#sidebarMenu a:hover {
    color: var(--header-hover-text-dark);
    background-color: var(--header-hover-bg-dark);
    box-shadow: 0 0 15px var(--accent-color);
}

body.light #sidebarMenu a:hover {
    color: var(--header-hover-text-light);
    background-color: var(--header-hover-bg-light);
}

#theme-toggle-sidebar {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--header-text-dark);
    padding: 10px 0;
    border-radius: 5px;
    transition: color 0.3s ease;
    margin-top: auto;
}

body.light #theme-toggle-sidebar {
    color: var(--header-text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    #headerMenu {
        display: none;
    }

    #hamburger {
        display: flex;
    }

    header {
        height: 60px;
        flex-direction: row;
        padding: 0;
    }

    #headerIcon {
        margin-left: 10px;
    }

    #headerTitle {
        font-size: 20px;
        padding: 0 10px;
        text-align: left;
    }

    #app {
        margin-top: 80px;
        padding: 0;
    }

    .footer {
        bottom: 15px;
        font-size: 14px;
    }

    body {
        touch-action: manipulation;
    }
}
