:root {
    --primary-50: #ecfdf5;
    --primary-100: #d1fae5;
    --primary-500: #10b981;
    --primary-600: #059669;
    --primary-700: #047857;
    --bg-gray: #f9fafb;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 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);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-600);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-700);
}

.btn-outline {
    border-color: var(--primary-500);
    color: var(--primary-500);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-50);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-700);
}

.btn-white:hover {
    background-color: var(--bg-gray);
}

/* Header */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    background-color: var(--primary-600);
    color: white;
    padding: 0.25rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-600);
}

/* Hero Section */
.hero {
    background-color: var(--primary-700);
    color: var(--white);
    padding: 6rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 48rem;
    margin: 0 auto 2rem auto;
    color: var(--primary-50);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

/* Footer */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer ul a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer ul a:hover {
    color: var(--primary-600);
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile menu handling */
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2rem;
    }
}

/* Admin Styles */
.admin-body {
    background-color: #f3f4f6;
}

.admin-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.admin-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    max-width: 100%;
    padding: 0 2rem;
}

.admin-nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.admin-nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.admin-nav-links a:hover, .admin-nav-links a.active {
    color: var(--primary-700);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    font-family: inherit;
}

.dropdown-btn:hover, .dropdown-btn.active {
    color: var(--primary-700);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    z-index: 100;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

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

.dropdown-menu a {
    display: block !important;
    padding: 0.75rem 1rem;
    color: var(--text-dark) !important;
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: var(--bg-gray);
    color: var(--primary-700) !important;
}

.admin-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-main {
    padding: 2rem;
}

.admin-container {
    max-width: 1280px;
    margin: 0 auto;
}

.admin-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .admin-nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    .admin-nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .admin-main {
        padding: 1rem;
    }
    .card-grid {
        grid-template-columns: 1fr !important;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
