:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --body-bg: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --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);
}

body {
    background-color: var(--body-bg);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 600;
}

/* Navbar */
.navbar {
    background: linear-gradient(to right, #1f2937, #111827) !important;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff !important;
    letter-spacing: -0.025em;
}

.nav-link {
    color: #e5e7eb !important;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #ffffff !important;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #111827;
}

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table thead th {
    background-color: #f9fafb;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.95rem;
}

.table-hover tbody tr:hover {
    background-color: #f9fafb;
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 600;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.bg-success {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}

.bg-danger {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
}

.bg-warning {
    background-color: #fef3c7 !important;
    color: #92400e !important;
}

.bg-info {
    background-color: #dbeafe !important;
    color: #1e40af !important;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Forms */
.form-control {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
}

/* Login/Auth Pages */
.login-container {
    max-width: 420px;
    margin: 5rem auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

/* Custom Utilities */
.text-muted-small {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.shadow-card {
    box-shadow: var(--shadow-md);
}

/* Admin specific */
.admin-stats-card {
    border-left: 4px solid var(--primary-color);
}

/* Landing Page */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
    margin-bottom: 0;
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
}

.feature-section {
    padding: 5rem 0;
    background-color: white;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: #f9fafb;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 1rem;
}

.testimonial-section {
    padding: 5rem 0;
    background-color: var(--body-bg);
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--border-color);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.footer {
    background: #111827;
    color: #9ca3af;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

/* User Dashboard */
.dashboard-header {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
