/* Kristin Banta Inspired Minimalist Design and Dashboard Clean Up */

/* --- Fonts & Basics --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #000000;
    --secondary-bg: #f5f5f7;
    --border-color: #e5e5e5;
    --sidebar-width: 260px;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --success-col: #10b981;
    --error-col: #ef4444;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--accent-color);
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Components --- */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.btn-danger {
    background: var(--error-col);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    /* Slight radius for dashboard feel */
    background: #fff;
    font-family: inherit;
    margin-top: 5px;
}

input:focus,
textarea:focus {
    border-color: #000;
    outline: none;
}

.form-group {
    margin-bottom: 20px;
}

/* --- TOAST NOTIFICATIONS --- */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    pointer-events: none;
    /* Let clicks pass through container */
}

.flash-message {
    background: #fff;
    color: #333;
    padding: 15px 25px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: auto;
    /* Re-enable clicks on toasts */
    animation: slideIn 0.3s ease-out forwards;
    display: flex;
    align-items: center;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- LANDING PAGE (Kristin Banta Style) --- */
.landing-wrapper {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Kristin Banta Header Styles */
/* Kristin Banta Header Styles */
.landing-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 40px;
    box-sizing: border-box;
    color: #fff;
    /* Gradient overlay for text readability against images */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    justify-content: flex-start;
}

.header-center {
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.landing-logo {
    font-family: 'Playfair Display', serif;
    /* Stylish font */
    font-size: 1.8rem;
    letter-spacing: 1px;
    font-weight: 400;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

.social-icons a {
    color: #fff;
    margin-right: 15px;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.share-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #fff;
    color: #000;
}

.login-trigger {
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s;
}

.login-trigger:hover {
    border-bottom: 1px solid #fff;
}

.header-separator {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.landing-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.landing-nav a {
    color: #fff;
    font-size: 0.7rem;
    /* Small, minimal text like reference */
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    opacity: 0.9;
    /* Stronger shadow for better visibility */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    /* Slightly bolder */
}

.landing-nav a:hover {
    opacity: 1;
}

.landing-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.landing-nav a:hover::after {
    width: 100%;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- ADMIN DASHBOARD (Artemis Sidebar Style) --- */
/* --- ADMIN DASHBOARD (Corrected Layout) --- */
.admin-layout {
    display: block;
    /* Remove flex to avoid conflict with fixed sidebar */
    min-height: 100vh;
    background: var(--secondary-bg);
}

.sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: fixed;
    /* Fixed relative to viewport */
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    /* Ensure on top */
    box-sizing: border-box;
}

.sidebar .logo {
    font-size: 1.2rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.nav-links a {
    display: block;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
    background: #f3f3f3;
    color: #000;
}

.admin-content {
    margin-left: 260px;
    /* Explicit margin matching sidebar width */
    width: auto;
    /* Take remaining space automatically */
    min-height: 100vh;
    padding: 40px;
    box-sizing: border-box;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

/* Dashboard Cards (Artemis style) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Responsive grid */
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.content-card {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* --- REGISTRATION PAGE --- */
.reg-page-split {
    display: flex;
    min-height: 100vh;
}

.reg-visual {
    flex: 1;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.reg-visual img.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.reg-visual-content {
    position: relative;
    z-index: 10;
    width: 100%;
    /* Ensure it takes full available width */
    max-width: none;
    /* Remove constraints */
}

.reg-form-container {
    flex: 1;
    background: #fff;
    padding: 40px 80px;
    /* Reduced top padding to match left side */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align to top */
}

.reg-form-container h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

@media (max-width: 900px) {

    /* Registration Page Mobile */
    .reg-page-split {
        flex-direction: column;
    }

    .reg-visual {
        padding: 40px 20px;
        min-height: 250px;
    }

    .reg-form-container {
        padding: 40px 20px;
    }

    /* Admin Page Mobile */
    .sidebar {
        display: none;
    }

    .admin-content {
        margin-left: 0;
        padding: 20px;
    }

    /* Landing Page Mobile Header */
    .landing-header {
        padding: 20px;
        /* Ensure background is visible if image is light, though gradient helps */
    }

    .header-top {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }

    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        justify-content: center;
    }

    .header-center {
        order: -1;
        /* Put Logo first on mobile? Or keep center */
        margin-bottom: 5px;
    }

    .landing-logo {
        font-size: 1.5rem;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .landing-nav {
        gap: 20px;
    }

    .landing-nav a {
        font-size: 0.65rem;
    }

    /* Adjust centered overlay if it existed (removed now) - keeping generic mobile adjustments */
}