/* Custom Properties */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #5dade2;
    --nav-bg: rgba(44, 62, 80, 0.8);
    --nav-border: rgba(255, 255, 255, 0.1);
    --success-color: #10b981;
    --error-color: #ef4444;
    --background: #f9fafb;
    --surface: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --border: #e5e7eb;
    --input-bg: #ffffff;
    --input-focus: #eef2ff;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Modern Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    padding-top: 4rem; /* Space for fixed nav */
}

/* Navigation Styles */
nav {
    background-color: var(--nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ecf0f1;
    padding: 0.8em;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--shadow-md);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

nav li {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.logo {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Container */
.container {
    max-width: 650px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Form Elements */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234b5563'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    padding-right: 2.5rem;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input[type="file"] {
    width: 100%;
}

input[type="file"]::file-selector-button {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
    margin-right: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background-color: var(--primary-dark);
}

button[type="submit"] {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

button[type="submit"]:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Focus States */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: var(--input-focus);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    nav li {
        width: 100%;
        justify-content: center;
    }
    
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    body {
        padding-top: 6rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    input[type="text"],
    textarea,
    select {
        font-size: 16px;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #111827;
        --surface: #1f2937;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --border: #374151;
        --input-bg: #374151;
        --input-focus: #4b5563;
        --nav-bg: rgba(31, 41, 55, 0.8);
    }

    select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d1d5db'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    }
    
    nav {
        background-color: var(--nav-bg);
    }
}