:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --light-blue: #60a5fa;
    --sky-blue: #0ea5e9;
}

body {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--sky-blue) 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-control:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-blue);
}

.input-icon input {
    padding-left: 45px;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.badge-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* === NAVBAR SUPERIOR === */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Contenido del navbar */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid white;
}

/* === CONTENEDOR PRINCIPAL LATERAL + MAIN === */
.dashboard-wrapper {
    display: flex;
    margin-top: 65px; /* Separación del navbar */
    height: calc(100vh - 65px);
}

/* === SIDEBAR === */
.sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    padding: 25px 20px;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    padding: 12px 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: 0.3s ease;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.20);
}

.sidebar-nav .active {
    background: rgba(255, 255, 255, 0.25) !important;
}

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    color: white;
}

.content-area {
    max-width: 1250px;
    margin: auto;
}

/* Tarjetas y grid interno */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

/* Tabla */
.table-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.table thead th {
    color: white;
}

.table tbody tr td {
    color: white;
}

.badge-custom {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.btn-add {
    background: var(--secondary-blue);
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-add:hover {
    background: var(--light-blue);
}
