* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    color-scheme: light !important;
    background-color: #ffffff !important;
}

html {
    color-scheme: light !important;
    background-color: #ffffff !important;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color-scheme: light !important;
    background-color: #ffffff !important;
    color: #000000 !important;
}

main {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Header styles */
header {
    background-color: #f4f4f4;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: visible;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 5px;
    gap: 1rem;
}

.header-content a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 10px;
}

.brand-link {
    color: inherit;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.platform-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.header-edge-slot {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.auth-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.profile-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 44px;
}

.profile-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.profile-button:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.profile-icon {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0;
    padding: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.profile-button:hover .profile-icon,
.profile-button:focus-visible .profile-icon {
    opacity: 0.8;
    transform: scale(1.05);
}

.profile-icon-container .user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    display: none;
    z-index: 1001;
}

.profile-icon-container.is-open .user-dropdown-menu {
    display: block;
}

.profile-icon-container .user-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.profile-icon-container .user-dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.login-btn {
    padding: 0.5rem 1.5rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
    text-align: center;
    min-width: 100px;
}

.login-btn:hover {
    background-color: #2980b9;
}

.register-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-align: center;
    min-width: 100px;
}

.register-link:hover {
    color: #3498db;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-right: 0.5rem;
}

.menu-toggle:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.menu-toggle .menu-icon {
    width: 24px;
    height: 24px;
    display: none;
    pointer-events: none;
}

.menu-toggle .menu-icon--open {
    display: block;
}

header.menu-open .menu-toggle .menu-icon--open {
    display: none;
}

header.menu-open .menu-toggle .menu-icon--close {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 150px;
    height: 40px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
}

.dropdown-btn:hover {
    background-color: #0056b3;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    width: 100%;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1;
}

.dropdown-content a {
    color: #333;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    text-align: left;
    white-space: nowrap;
    width: 100%;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropdown-btn {
    background-color: #0056b3;
}

/* Common button styles */
.next-btn {
    padding: 0.75rem 2rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.next-btn:hover {
    background-color: #218838;
}

.content {
    text-align: center;
    padding: 2rem;
}

/* Force light mode - override any dark mode preferences */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light !important;
        background-color: #ffffff !important;
    }
    
    html {
        color-scheme: light !important;
        background-color: #ffffff !important;
    }
    
    body {
        color-scheme: light !important;
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    main {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
}

/* FOUC Prevention */
html.js-loading * {
    transition: none !important;
}
html.js-loading {
    visibility: hidden;
}

/* Add this script to all HTML files that use common.css:
<script>
    document.documentElement.classList.add('js-loading');
    window.addEventListener('load', function() {
        document.documentElement.classList.remove('js-loading');
    });
</script>
*/ 

@media (max-width: 720px) {
    .menu-toggle {
        display: flex;
    }

    .header-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.5rem;
    }

    .brand-link {
        justify-self: center;
        text-align: center;
        gap: 6px;
    }

    .header-edge-slot {
        justify-self: end;
    }

    .platform-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .platform-name {
        font-size: 1.35rem;
    }

    .header-slogan {
        font-size: 0.85rem;
        color: #666;
    }

    .logo {
        width: 42px;
        height: 42px;
    }

    .header-actions {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        margin: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        z-index: 1000;
    }

    header.menu-open .header-actions {
        display: flex;
    }

    .header-actions > * {
        width: 100%;
        text-align: center;
    }

    .auth-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .login-btn,
    .register-link {
        min-width: auto;
        width: 100%;
    }

    .login-btn {
        padding: 0.5rem 1rem;
    }

    .register-link {
        padding: 0.5rem 0.75rem;
        border: 1px solid #3498db;
        border-radius: 4px;
    }

    .profile-icon-container {
        width: 44px;
        height: 44px;
        justify-content: center;
    }

    .profile-icon-container .user-dropdown-menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        left: auto;
        width: min(220px, 80vw);
        padding: 0.75rem 0;
        border-radius: 8px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

    .profile-icon-container .user-dropdown-menu a {
        padding: 0.75rem 1.25rem;
    }

    header.profile-open .profile-icon-container .user-dropdown-menu {
        display: block;
    }
}