:root {
    --primary: #8e44ad; /* Purple theme */
    --primary-hover: #9b59b6;
    --secondary: #34495e;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --bg-color: #f4f7f6;
    --surface: #ffffff;
    --text-main: #333333;
    --text-muted: #7f8c8d;
    --border: #e0e6ed;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* Authentication Layout */
.auth-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
}
.auth-banner {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}
.auth-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.auth-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
}
.auth-form-container {
    width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}
.auth-form {
    width: 100%;
    padding: 3rem;
}
.auth-form h2 {
    margin-bottom: 2rem;
    color: var(--dark);
    font-size: 1.8rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
    width: 100%;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

/* Dashboard Layout */
.sidebar {
    width: 260px;
    background-color: var(--dark);
    color: white;
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
}
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--light);
}
.nav-links {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}
.nav-links li a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}
.nav-links li a:hover, .nav-links li a.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-left: 4px solid var(--primary);
}
.nav-links li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.top-header {
    height: 70px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-body {
    padding: 2rem;
    flex: 1;
}
.page-title {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Dashboard Grid */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(142, 68, 173, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.stat-details h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0.2rem;
}
.stat-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}
