/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --light-bg: #f1f5f9;
    --dark-bg: #0f172a;
    --card-bg-light: #ffffff;
    --card-bg-dark: #1e293b;
    --text-light: #1e293b;
    --text-dark: #e2e8f0;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-light);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

[data-bs-theme="dark"] body {
    background-color: var(--dark-bg);
    color: var(--text-dark);
}

/* === Navbar === */
.navbar {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.8rem 0;
    transition: var(--transition);
}
[data-bs-theme="dark"] .navbar {
    background: rgba(15,23,42,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

/* === Buttons === */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
    letter-spacing: 0.3px;
}
.btn-primary {
    background: var(--primary);
    border: none;
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}
.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}
.btn-light {
    background: white;
    color: var(--primary);
    font-weight: 600;
    border: none;
}
.btn-light:hover {
    background: #f8fafc;
}

/* === Cards === */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: var(--card-bg-light);
    transition: var(--transition);
}
[data-bs-theme="dark"] .card {
    background: var(--card-bg-dark);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* === Hero === */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--light-bg);
    border-radius: 50% 50% 0 0;
    transition: var(--transition);
}
[data-bs-theme="dark"] .hero::after {
    background: var(--dark-bg);
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -1px;
}
.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 1rem auto;
}

/* === Feature Icons === */
.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(79,70,229,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}

/* === Table === */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--card-bg-light);
    box-shadow: var(--box-shadow);
}
[data-bs-theme="dark"] .table {
    background: var(--card-bg-dark);
}
.table thead {
    background: var(--primary);
    color: white;
}
.table th, .table td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
[data-bs-theme="dark"] .table td {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* === Theme Toggle === */
.theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(79,70,229,0.4);
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.theme-toggle:hover {
    transform: scale(1.1);
}

/* === Forms === */
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    transition: var(--transition);
}
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select {
    background: #1e293b;
    border-color: #334155;
    color: white;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* === Footer === */
.footer {
    margin-top: auto;
    background: white;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}
[data-bs-theme="dark"] .footer {
    background: #1e293b;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* === Utility === */
.text-gradient {
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}