:root {
    /* Color Palette - Professional & Trustworthy */
    --primary: #0EA5E9; /* Light Blue */
    /* Royal Blue */
    --primary-dark: #8B5CF6; /* Violet Purple */
    /* Darker Blue */
    --primary-light: #eff6ff;
    /* Very Light Blue */
    --secondary: #475569;
    /* Slate 600 */
    --accent: #f59e0b;
    /* Amber for highlights */

    --bg-body: #F0F9FF; /* Alice Blue */
    --bg-alt: #f8fafc;
    /* Slate 50 */
    --bg-card: #ffffff;

    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */

    --border-color: #e2e8f0;
    /* Slate 200 */

    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Light Blue + Purple Sidebar */
.sidebar {
    background: linear-gradient(180deg, 
        #0EA5E9 0%,      /* Vibrant Sky (Light Blue) */
        #8B5CF6 50%,     /* Violet Purple */
        #6366F1 100%) !important; /* Royal Indigo */
    color: #FFFFFF !important;
}

.sidebar *,
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
    border-left: 3px solid #FFFFFF;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.2s ease;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.btn-login {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-section {
    padding: 10rem 0 6rem;
    background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.btn-primary-custom {
    background: var(--primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary-custom {
    background: white;
    color: var(--text-main);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    border-color: var(--text-muted);
    background: var(--bg-alt);
    color: var(--text-main);
}

/* Form Styles - Modern and Clean */
.form-control,
.form-select,
input,
textarea,
select {
    background: #FFFFFF !important; /* Pure white background */
    color: #334155 !important; /* Dark slate text */
    border: 2px solid #E2E8F0 !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    background: #FFFFFF !important;
    color: #334155 !important;
    border-color: #0EA5E9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #94A3B8 !important;
    opacity: 1 !important;
}

.form-label,
label {
    color: #0F172A !important;
    font-weight: 600 !important;
}

/* Dashboard Preview */
.dashboard-preview {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
    transition: transform 0.5s ease;
    margin-top: 2rem;
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* Forms */
.form-card,
.login-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-control-custom {
    background: #FFFFFF !important;
    color: #334155 !important;
    border: 2px solid #E2E8F0 !important;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    width: 100%;
    transition: all 0.2s;
}

.form-control-custom:focus {
    background: #FFFFFF !important;
    color: #334155 !important;
    border-color: #0EA5E9 !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
    outline: none;
}

.form-control-custom::placeholder {
    color: #94A3B8 !important;
    opacity: 1 !important;
}

.form-label-custom {
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.btn-create-school,
.btn-login-home {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.2s;
}

.btn-create-school:hover,
.btn-login-home:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

/* Pricing */
.pricing-section {
    padding: 6rem 0;
    background: var(--bg-alt);
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 1.5rem 0;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Footer */
.footer {
    background: #0f172a;
    /* Dark footer works well with light theme */
    color: white;
    padding: 5rem 0 2rem;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: block;
}

.footer a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

/* Utilities */
.text-primary {
    color: var(--primary) !important;
}

.bg-light {
    background-color: var(--bg-alt) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 8rem 0 4rem;
    }

    .btn-secondary-custom {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        width: 100%;
    }

    .btn-primary-custom {
        width: 100%;
        justify-content: center;
    }

    .pricing-card.featured {
        transform: none;
    }
}