
/*ESTILOS DE ELEMENTOS DE BOOTSTRAP - DAR MAS REDONDEO*/
.card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border: 0 solid rgba(0, 0, 0, 0.125);
    border-radius: 0.75rem;
}
/* ESTILOS DE ERROR DE VALIDACION */
.error{
    color:red ;
}

/* ESTILOS DE LOS BOTONES */
.btn-primary {
    min-width: 130px;
    height: 40px;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    outline: none;
    border-radius: 13px;
    border: 2px solid #0d6efd;
    background: #0d6efd;
}
.btn-primary:hover {
    background: #fff;
    color: #0d6efd
}

.btn-warning {
    min-width: auto;
    height: 40px;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    outline: none;
    border-radius: 13px;
    border: 2px solid #fb8c00;
    background: #fb8c00;
}
.btn-warning:hover{
    background: #fff;
    color: #fb8c00
}

.btn-danger {
    min-width: auto;
    height: 40px;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    outline: none;
    border-radius: 13px;
    border: 2px solid #F44335;
    background: #F44335;
}
.btn-danger:hover {
    background: #fff;
    color: #F44335
}

.btn-secondary {
    min-width: auto;
    height: 40px;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    outline: none;
    border-radius: 13px;
    border: 2px solid #6c757d;
    background: #6c757d;
}
.btn-secondary:hover {
    background: #fff;
    color: #6c757d
}

/* --- PREMIUM DASHBOARD UI SYSTEM --- */

:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #ff9f1c;
    --info: #4895ef;
    --dark: #212529;
    --light: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.9);
}

body {
    background-color: #f0f2f5 !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

.dashboard-container {
    padding-bottom: 3rem;
}

.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem 0;
    border-radius: 0 0 1.5rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

.summary-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-box.primary { background: rgba(67, 97, 238, 0.15); color: var(--primary); }
.icon-box.success { background: rgba(76, 201, 240, 0.15); color: #00b4d8; }
.icon-box.danger { background: rgba(247, 37, 133, 0.15); color: var(--danger); }

.summary-value {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: var(--dark);
}

.summary-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-container {
    padding: 2rem;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}

/* Enhancing DataTables in Glass Cards */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 0.75rem !important;
    border: 1px solid #ddd !important;
    padding: 0.4rem 1rem !important;
    background: white !important;
}

.table thead th {
    background-color: transparent !important;
    border-bottom: 2px solid #eee !important;
    color: var(--dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.table tbody td {
    padding: 1rem 0.75rem !important;
    vertical-align: middle !important;
}

/* Custom Checkbox/Switch */
.form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

/* Premium Buttons */
.btn-premium {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.2);
}

.btn-premium:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(67, 97, 238, 0.3);
}

.btn-premium-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-premium-outline:hover {
    background: var(--primary);
    color: white;
}

/* Form Styling Improvements */
.form-control, .form-select {
    border: 1px solid #ced4da !important;
    background-color: #ffffff !important;
    border-radius: 0.5rem !important;
    padding: 0.6rem 1rem !important;
    transition: all 0.2s ease-in-out !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15) !important;
    background-color: #fff !important;
}

.input-group-text {
    background-color: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    border-right: none !important;
    border-radius: 0.5rem 0 0 0.5rem !important;
}

.input-group > .form-control {
    border-radius: 0 0.5rem 0.5rem 0 !important;
}

.filter-section {
    padding: 2rem !important;
    margin-bottom: 2.5rem !important;
}
/* --- SIDEBAR NAVIGATION --- */

.sidebar-premium {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-premium.show {
    left: 0;
}

.sidebar-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand i {
    color: var(--primary);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

/* Sidebar Dropdown */
.sidebar-dropdown-btn {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sidebar-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown-container {
    display: none;
    padding-left: 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.dropdown-container.show {
    display: flex;
}

.sidebar-sublink {
    padding: 0.6rem 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.sidebar-sublink:hover, .sidebar-sublink.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.show {
    display: block;
    opacity: 1;
}

/* Floating Menu Toggle - Frosted Glass Style */
.menu-toggle-btn {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Permanent glass effect */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2200;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

.menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-toggle-btn i, 
.menu-toggle-btn svg, 
.menu-toggle-btn i svg path {
    color: #ffffff !important;
    fill: #ffffff !important; /* For SVGs */
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Adjust page-header for the floating button on mobile */
@media (max-width: 768px) {
    .page-header {
        padding-left: 4.5rem; /* Space for the button */
    }
}
