@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-gradient: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    --secondary-color: #a855f7;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    overflow-x: hidden;
    min-height: 100vh;
}

#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Glassmorphism Classes */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 30px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

header.scrolled {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--glass-shadow);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    font-weight: 600;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Dark Mode Toggle */
.theme-switch {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.theme-switch:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-cta {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* Form Styles */
.form-container {
    max-width: 450px;
    margin: 100px auto;
    padding: 40px;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Utilities & Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Admin Sidebar Layout */
.admin-layout { display: flex; min-height: calc(100vh - 70px); }
.admin-sidebar { width: 250px; background: var(--card-bg); border-right: 1px solid var(--card-border); padding: 20px; }
.admin-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.admin-sidebar a { display: block; padding: 10px 15px; border-radius: 8px; transition: var(--transition); font-weight: 600; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--primary-gradient); color: white; }
.admin-content { flex-grow: 1; padding: 30px; overflow-y: auto; }

/* Data Tables */
.data-table { width: 100%; border-collapse: collapse; background: var(--card-bg); border-radius: 8px; overflow: hidden; margin-top: 20px; box-shadow: var(--glass-shadow); }
.data-table th, .data-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--card-border); }
.data-table th { background: rgba(0,0,0,0.05); font-weight: 600; }
.data-table tr:hover { background: rgba(99, 102, 241, 0.05); }

/* Badges */
.badge { padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }
.badge-admin { background: #8b5cf6; color: white; }
.badge-user { background: #3b82f6; color: white; }
.badge-modern { background: #10b981; color: white; }
.badge-executive { background: #f59e0b; color: white; }
.badge-minimal { background: #64748b; color: white; }
