/* Regular */
@font-face {
    font-family: 'Google Sans Flex';
    src: url('../fonts/Google_Sans_Flex/GoogleSansFlex_24pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* SemiBold */
@font-face {
    font-family: 'Google Sans Flex';
    src: url('../fonts/Google_Sans_Flex/GoogleSansFlex_24pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: 'Google Sans Flex';
    src: url('../fonts/Google_Sans_Flex/GoogleSansFlex_24pt-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #FF7A00;
    --primary-hover: #e66e00;
    --secondary: #2A2A3E;
    --secondary-hover: #3A3A4E;
    --accent-blue: #00A3FF;
    --accent-green: #7ED321;
    --accent-purple: #9C27B0;
    --background: #F5F7FA;
    --surface: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #757575;
    --border: #E8E8E8;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    --font-family: 'Google Sans Flex', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    margin: 0;
    padding: 20px;
    color: var(--text);
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 40px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 20px;
}

h1 {
    color: var(--text);
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0;
}

#auth-controls {
    display: flex;
    align-items: center;
}

#logout-btn,
#profile-btn {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

#logout-btn:hover,
#profile-btn:hover {
    background-color: #fcfcfc;
    border-color: var(--text-muted);
}

#profile-btn.active {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(255, 122, 0, 0.04);
}

#user-menu-container {
    position: relative;
    display: none;
    /* Hidden on desktop by default */
}

#user-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface);
    box-shadow: var(--shadow);
}

#user-icon-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

#user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    overflow: hidden;
    z-index: 100;
}

#user-dropdown.show {
    display: block;
}

.dropdown-action-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    font-weight: 600;
    font-family: var(--font-family);
    box-shadow: none;
    border-radius: 0;
}

.dropdown-action-btn:hover {
    background: #f5f5f5;
    box-shadow: none;
}

.dropdown-action-btn.active {
    background-color: rgba(255, 122, 0, 0.08);
    color: var(--primary);
}

@media (max-width: 768px) {

    #logout-btn,
    #profile-btn {
        display: none !important;
    }

    #user-menu-container {
        display: block;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal.active {
    display: flex;
}

/* Dialog Component Styles */
.dialog-box {
    padding: 0;
    border: none;
    border-radius: 32px;
    background: var(--surface);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    max-width: 90vw;
    animation: dialogOpen 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    overflow: visible;
}

.dialog-box::backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    animation: backdropOpen 0.3s ease forwards;
}

.dialog-box.closing {
    animation: dialogClose 0.2s ease-in forwards;
    pointer-events: none;
}

.dialog-box.closing::backdrop {
    animation: backdropClose 0.2s ease-in forwards;
}

@keyframes dialogOpen {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes dialogClose {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

@keyframes backdropOpen {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes backdropClose {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}