/* ========================================
   General Styles
======================================== */

* {
    box-sizing: border-box;
}

:root {
    --primary-color: #7591ff;
    --primary-hover: #3b5de7;
    --text-color: #2d3748;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-radius: 10px;
    --transition: all 0.2s ease-in-out;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

main {
    min-height: 100vh;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 100%;
    font-weight: 300;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-light);
}

/* ========================================
   Typography
======================================== */

h1,
h2,
h3,
h4,
p {
    margin: 0 0 0.75em;
    font-weight: 400;
}

/* ========================================
   Header
======================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

/* ========================================
   Logo
======================================== */

#webname,
.logo {
    color: white;
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

#logo {
    width: 1.25rem;
    height: auto;
    margin-right: 0.5rem;
}

/* ========================================
   Navigation
======================================== */

nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    transition: var(--transition);
}

nav a:hover {
    opacity: 1;
}

.footer {
    position: absolute;
    bottom: 0;
}

/* ========================================
   Dropdown
======================================== */

.dropdown {
    position: relative;
}

.dropbtn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.dropbtn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 12rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    z-index: 1001;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
}

/* ========================================
   Username
======================================== */

#username {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========================================
   Buttons
======================================== */

button {
    padding: 0.6rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* ========================================
   Forms
======================================== */

form {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

input {
    width: 100%;
    margin: 0.5rem 0 1rem;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

form button {
    margin-top: 1rem;
    padding: 0.75rem;
    width: 100%;
}

/* ========================================
   Secret / Centered Page
======================================== */

.secret {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 1rem 2rem;
}

/* ========================================
   Main Content
======================================== */

main {
    padding-top: 6rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 768px) {
    header {
        padding: 0.6rem 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    nav {
        gap: 0.75rem;
    }

    nav a {
        font-size: 0.95rem;
    }

    form {
        max-width: 90%;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    nav {
        width: 100%;
        justify-content: flex-end;
    }

    .logo {
        font-size: 1rem;
    }
}
