/* Modern Navy Blue Theme */
:root {
    --navy-primary: #1a365d;
    --navy-secondary: #2c5282;
    --navy-light: #4299e1;
    --navy-dark: #0f2942;
    --accent-gold: #f6ad55;
    --accent-light: #fbd38d;
    --bg-light: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --success: #48bb78;
    --error: #f56565;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 50%, var(--navy-secondary) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    padding: 0;
    margin: 0;
    line-height: 1.6;
}

/* Modern Navigation Bar */
.navbar {
    background: rgba(15, 41, 66, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-gold);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar-brand {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-gold);
    text-decoration: none;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin: 0;
}

.navbar-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 24px 20px;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar-menu a:hover {
    background: rgba(66, 153, 225, 0.1);
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
    text-decoration: none;
}

.container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
    margin: -40px -40px 30px -40px;
    padding: 30px 40px;
    border-radius: 16px 16px 0 0;
}

h2 {
    color: var(--navy-secondary);
    font-size: 1.5rem;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-gold);
}

/* Alert Styles */
.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    border-left: 4px solid var(--success);
    color: #22543d;
}

.alert-danger {
    background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%);
    border-left: 4px solid var(--error);
    color: #742a2a;
}

.alert strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.text-danger {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

/* Form Styles */
form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
    color: var(--text-dark);
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--navy-light);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--navy-primary);
}

input[type="checkbox"] + label {
    display: inline;
    font-weight: 500;
    margin-right: 20px;
    cursor: pointer;
}

/* Button Styles */
button[type="submit"],
input[type="submit"],
button {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-secondary) 100%);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button[type="submit"]:hover,
input[type="submit"]:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
    background: linear-gradient(135deg, var(--navy-secondary) 0%, var(--navy-light) 100%);
}

button[type="submit"]:active,
input[type="submit"]:active,
button:active {
    transform: translateY(0);
}

/* Links */
a {
    color: var(--navy-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--navy-primary);
    text-decoration: underline;
}

/* Confirmation Page */
p {
    margin: 16px 0;
    color: var(--text-dark);
    line-height: 1.8;
}

p strong {
    color: var(--navy-primary);
    font-weight: 600;
}

p em {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-style: normal;
}

/* Admin Page Specific */
.logout-button {
    background: #718096;
    width: auto;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.logout-button:hover {
    background: #4a5568;
}

/* Instructions Box */
div[style*="background-color: #f8f9fa"],
.instructions {
    background: linear-gradient(135deg, var(--bg-light) 0%, #edf2f7 100%) !important;
    border-left: 4px solid var(--accent-gold);
    padding: 20px !important;
    border-radius: 8px !important;
    margin-top: 30px;
}

.instructions h2,
div[style*="background-color: #f8f9fa"] h2 {
    margin-top: 0;
    font-size: 1.3rem;
}

.instructions ol,
div[style*="background-color: #f8f9fa"] ol {
    margin-left: 20px;
    color: var(--text-dark);
}

.instructions li,
div[style*="background-color: #f8f9fa"] li {
    margin: 10px 0;
    line-height: 1.6;
}

/* Success Message Styling */
div[style*="background-color: #d4edda"] {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%) !important;
    border: none !important;
    border-left: 4px solid var(--success) !important;
}

div[style*="background-color: #d4edda"] span {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    margin: 4px 0;
}

/* Error Message Styling */
div[style*="background-color: #f8d7da"] {
    background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%) !important;
    border: none !important;
    border-left: 4px solid var(--error) !important;
}

/* Footer if needed */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 60px;
    background: rgba(15, 41, 66, 0.5);
    border-top: 2px solid rgba(246, 173, 85, 0.3);
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer a {
    color: var(--accent-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-brand {
        padding: 15px 0;
        font-size: 1.3rem;
    }
    
    .navbar-menu {
        width: 100%;
        flex-direction: column;
        gap: 0;
    }
    
    .navbar-menu a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 3px solid transparent;
    }
    
    .navbar-menu a:hover {
        border-left-color: var(--accent-gold);
        border-bottom-color: transparent;
        padding-left: 10px;
    }
    
    .container {
        padding: 24px;
        margin: 20px auto;
    }
    
    h1 {
        font-size: 1.5rem;
        margin: -24px -24px 24px -24px;
        padding: 24px;
    }
    
    h2 {
        font-size: 1.2rem;
    }
}
