/* Mangus Biblioteca - Design System */
:root {
    --primary-bg: #0b0f19;
    --secondary-bg: #161c2d;
    --accent-color: #38bdf8;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --glass-bg: rgba(22, 28, 45, 0.8);
    --glass-border: rgba(255, 255, 255, 0.15);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Auth Layout */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--secondary-bg);
    border-right: 1px solid var(--glass-border);
    padding: 24px;
    position: fixed;
    height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

/* Widgets */
.grid-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.widget-card {
    padding: 24px;
}

.widget-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.widget-value {
    font-size: 2rem;
    font-weight: 700;
}

/* Sidebar Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 5px;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    transform: translateX(5px);
}

.nav-link i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Large Profile/Role Cards (Registration Screen) */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 20px;
    transition: var(--transition);
    border: 1.5px solid var(--glass-border);
    text-align: center;
}

.profile-card:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(56, 189, 248, 0.4);
}

.profile-card i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--accent-color);
}

.profile-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.profile-card p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Utilities */
.text-center { text-align: center; }
.mb-10 { margin-bottom: 40px; }
.mb-6 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 16px; }
.mt-10 { margin-top: 40px; }
.mt-6 { margin-top: 24px; }
.mt-4 { margin-top: 16px; }
.mr-2 { margin-right: 8px; }
.mr-3 { margin-right: 12px; }

/* Alerts */
.alert {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    line-height: 1.5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert i {
    font-size: 1.5rem;
}

.alert.persistent {
    margin-top: 24px;
}

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
        transition: transform 0.3s ease;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}
