/* =============================================
   ERP MROL - ESTILOS GENERALES - GLASSMORPHISM
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: #333;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 75%, #16213e 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* =============================================
   ESTILOS GLOBALES INPUTS - GLASSMORPHISM NEGRO
   ============================================= */

/* Estilos base para todos los inputs, selects y textareas */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #000000 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* Placeholder en negro con opacidad */
input::placeholder,
textarea::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
    font-weight: 400;
}

/* Select options con fondo claro y texto negro */
select option {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    padding: 8px;
}

/* Estado focus para todos los inputs */
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.7);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4), 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #000000 !important;
}

/* Inputs deshabilitados */
input:disabled,
select:disabled,
textarea:disabled {
    background: rgba(200, 200, 200, 0.5) !important;
    color: rgba(0, 0, 0, 0.4) !important;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Fondo animado para glassmorphism */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(78, 205, 196, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(255, 107, 107, 0.15) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* =============================================
   LOGIN PAGE - GLASSMORPHISM
   ============================================= */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 70%, rgba(102, 126, 234, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(118, 75, 162, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(78, 205, 196, 0.2) 0%, transparent 50%);
    animation: moveGradient 15s ease infinite;
    z-index: 0;
}

@keyframes moveGradient {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(5deg); }
    50% { transform: translate(-2%, 1%) rotate(-5deg); }
    75% { transform: translate(1%, -2%) rotate(3deg); }
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 32px;
    background: linear-gradient(135deg, #66bcea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.login-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #000000 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.login-form input::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
    font-weight: 400;
}

.login-form input:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.7);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4), 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #000000 !important;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.error-msg {
    padding: 10px;
    background: rgba(255, 100, 100, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 100, 100, 0.4);
    color: #ff9999;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

/* =============================================
   HEADER - GLASSMORPHISM
   ============================================= */

.main-header {
    background: rgba(30, 30, 50, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container h1 {
    font-size: 24px;
    background: linear-gradient(135deg, #66bcea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-logout {
    background: rgba(231, 76, 60, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.9);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

/* =============================================
   MAIN CONTAINER
   ============================================= */

.main-container {
    display: flex;
    max-width: 100%;
    margin: 0;
    gap: 0;
    padding: 0;
    min-height: calc(100vh - 70px);
}

/* =============================================
   SIDEBAR - GLASSMORPHISM
   ============================================= */

.sidebar {
    width: 270px;
    background: rgba(18, 20, 24, 0.85);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-radius: 0;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.4);
    padding: 20px 0;
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0 5px;
}

/* Scrollbar estilizado para sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

.sidebar-nav h3 {
    padding: 0 20px;
    margin-bottom: 15px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav ul {
    list-style: none;
    margin-bottom: 10px;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding-left: 25px;
}

.sidebar-nav ul li a.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-left: 4px solid rgba(102, 126, 234, 0.8);
    border-radius: 0 10px 10px 0;
}

.menu-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 15px 20px;
    border: none;
}

/* =============================================
   MAIN CONTENT - GLASSMORPHISM
   ============================================= */

.main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin: 20px;
    margin-left: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.page-header h2 {
    font-size: 26px;
    background: linear-gradient(135deg, #66bcea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-update {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* =============================================
   BUTTONS - GLASSMORPHISM
   ============================================= */

.btn {
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.7) 0%, rgba(34, 153, 84, 0.7) 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.9) 0%, rgba(34, 153, 84, 0.9) 100%);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(149, 165, 166, 0.5);
    color: white;
}

.btn-secondary:hover {
    background: rgba(149, 165, 166, 0.7);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.3);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.7) 0%, rgba(192, 57, 43, 0.7) 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9) 0%, rgba(192, 57, 43, 0.9) 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.7) 0%, rgba(41, 128, 185, 0.7) 100%);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9) 0%, rgba(41, 128, 185, 0.9) 100%);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* =============================================
   DASHBOARD CARDS - GLASSMORPHISM
   ============================================= */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.card h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.card-value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 5px;
}

.card-link {
    color: white;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.card-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Card Color Variants - Glassmorphism */
.card-blue {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.4) 0%, rgba(41, 128, 185, 0.4) 100%);
}

.card-blue:hover {
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.3);
}

.card-green {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.4) 0%, rgba(34, 153, 84, 0.4) 100%);
}

.card-green:hover {
    box-shadow: 0 15px 40px rgba(39, 174, 96, 0.3);
}

.card-orange {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.4) 0%, rgba(211, 84, 0, 0.4) 100%);
}

.card-orange:hover {
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.3);
}

.card-red {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.4) 0%, rgba(192, 57, 43, 0.4) 100%);
}

.card-red:hover {
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.3);
}

.card-purple {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.4) 0%, rgba(142, 68, 173, 0.4) 100%);
}

.card-purple:hover {
    box-shadow: 0 15px 40px rgba(155, 89, 182, 0.3);
}

.card-teal {
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.4) 0%, rgba(22, 160, 133, 0.4) 100%);
}

.card-teal:hover {
    box-shadow: 0 15px 40px rgba(26, 188, 156, 0.3);
}

/* =============================================
   TABLES - GLASSMORPHISM
   ============================================= */

.table-container {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.table-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.table-filters input,
.table-filters select {
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #000000 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.table-filters input::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
    font-weight: 400;
}

.table-filters select option {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
}

.table-filters input:focus,
.table-filters select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.7);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4), 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #000000 !important;
}

.table-filters input {
    flex: 1;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.data-table thead {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    color: #2c3e50;
}

.data-table tbody tr {
    background: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: rgba(230, 240, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(245, 248, 255, 0.9);
}

.data-table tbody tr:nth-child(even):hover {
    background: rgba(230, 240, 255, 0.95);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.text-center {
    text-align: center;
}

.no-results-row td {
    color: #7f8c8d;
    font-style: italic;
    padding: 40px 16px !important;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
}

/* =============================================
   BADGES - GLASSMORPHISM
   ============================================= */

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.3);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.4);
}

.badge-success {
    background: rgba(39, 174, 96, 0.3);
    color: #2ecc71;
    border-color: rgba(39, 174, 96, 0.4);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.3);
    color: #ff6b6b;
    border-color: rgba(231, 76, 60, 0.4);
}

.badge-info {
    background: rgba(52, 152, 219, 0.3);
    color: #5dade2;
    border-color: rgba(52, 152, 219, 0.4);
}

.badge-secondary {
    background: rgba(149, 165, 166, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(149, 165, 166, 0.4);
}

/* =============================================
   FORMS - GLASSMORPHISM
   ============================================= */

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: rgba(70, 68, 68, 0.85)
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #000000 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
    font-weight: 400;
}

.form-group select option {
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.7);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4), 0 4px 15px rgba(0, 0, 0, 0.15);
    color: #000000 !important;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* =============================================
   MODAL - GLASSMORPHISM
   ============================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(30, 30, 50, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.modal-large {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    background: rgba(102, 126, 234, 0.2);
}

.modal-header h3 {
    font-size: 20px;
    background: linear-gradient(135deg, #66bcea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
}

.modal-body label,
.modal-body .form-group label,
.modal-body .counter-item label {
    color: rgba(255, 255, 255, 0.85) !important;
}

.modal-body h4 {
    color: rgba(255, 255, 255, 0.9);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

/* =============================================
   PRODUCTO ITEM (Recibo Manual) - GLASSMORPHISM
   ============================================= */

.producto-item {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.producto-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(102, 126, 234, 0.4);
}

/* =============================================
   RECENT ACTIVITY - GLASSMORPHISM
   ============================================= */

.recent-activity {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-activity h3 {
    font-size: 18px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #66bcea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   ESCANEO DE CÓDIGO DE BARRAS - GLASSMORPHISM
   ============================================= */

.ean-input {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ean-input:focus {
    border-color: rgba(102, 126, 234, 0.7) !important;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4), 0 4px 15px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000000 !important;
}

.ean-input.scan-success {
    border-color: rgba(40, 167, 69, 0.8) !important;
    background: rgba(144, 238, 144, 0.6) !important;
    animation: scanPulse 0.5s ease;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
    color: #000000 !important;
}

.ean-input.scan-error {
    border-color: rgba(220, 53, 69, 0.8) !important;
    background: rgba(255, 182, 193, 0.6) !important;
    animation: scanShake 0.3s ease;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
    color: #000000 !important;
}

@keyframes scanPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@keyframes scanShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* =============================================
   SELECT2 CUSTOMIZATION - GLASSMORPHISM
   ============================================= */

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
    color: #000000 !important;
    padding-left: 10px;
    font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 8px;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: rgba(102, 126, 234, 0.7);
    outline: none;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4), 0 4px 15px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95) !important;
}

.select2-dropdown {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.select2-container--default .select2-results__option {
    color: #000000;
    padding: 10px 15px;
    font-weight: 500;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(102, 126, 234, 0.2);
    color: #000000;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(102, 126, 234, 0.3);
    color: #000000;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: rgba(102, 126, 234, 0.7);
    outline: none;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4), 0 4px 15px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95) !important;
}

.select2 select2-container select2-container--default select2-container--above {
    font-size: 2px!important;
}

/* Select2 en modales */
.modal .select2-container {
    z-index: 10000;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(0, 0, 0, 0.5);
}

/* Select2 - Estilo de la flecha */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #000000 transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent white transparent;
}

/* =============================================
   DETALLE DE RECIBO
   ============================================= */

/* Loading - GLASSMORPHISM */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #66bcea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.error-message {
    text-align: center;
    padding: 40px;
}

.error-message p:first-child {
    font-size: 20px;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.error-message p:last-of-type {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

/* Navegación del Recibo - GLASSMORPHISM */
.recibo-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back {
    color: #66bcea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.btn-back:hover {
    color: white;
    gap: 8px;
    background: rgba(102, 126, 234, 0.3);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.recibo-actions {
    display: flex;
    gap: 10px;
}

/* Encabezado del Recibo - GLASSMORPHISM */
.recibo-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.recibo-title h2 {
    font-size: 28px;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.folio-number {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.recibo-status .badge {
    font-size: 14px;
    padding: 8px 16px;
}

/* Tarjetas de Información - GLASSMORPHISM */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.info-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.4);
}

.info-icon {
    font-size: 36px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-content {
    flex: 1;
}

.info-content label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-content p {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.text-muted {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 5px;
}

/* Sección de Información - GLASSMORPHISM */
.info-section {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section h3 {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    gap: 10px;
}

.info-item label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    min-width: 120px;
}

.info-item span {
    color: rgba(255, 255, 255, 0.9);
}

.observaciones-text {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alerta de Rechazo */
.alert-danger {
    background: #fff5f5;
    border: 1px solid #feb2b2;
}

.alert-danger h3 {
    color: #c53030;
}

.alert-danger .observaciones-text {
    background: white;
    border-left: 4px solid #e53e3e;
    color: #742a2a;
}

/* Tarjetas de Resumen - GLASSMORPHISM */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.summary-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.35);
}

.summary-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 5px;
}

.summary-value {
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Sección de Detalle - GLASSMORPHISM */
.detalle-section {
    margin-top: 30px;
}

.detalle-section h3 {
    font-size: 20px;
    background: linear-gradient(135deg, #66bcea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.5);
}

/* Tabla de Detalle - GLASSMORPHISM */
.detalle-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detalle-table thead {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
}

.detalle-table th {
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.detalle-table td {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
    color: #2c3e50;
}

.detalle-table tbody tr {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.85);
}

.detalle-table tbody tr:nth-child(even) {
    background: rgba(245, 248, 255, 0.9);
}

.detalle-table tbody tr:hover {
    background: rgba(230, 240, 255, 0.95);
}

.detalle-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badge de Cantidad - GLASSMORPHISM */
.cantidad-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Botón de Serie - GLASSMORPHISM */
.btn-serie {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-serie:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

/* =============================================
   RESPONSIVE PRINT
   ============================================= */

@media print {
    .main-header,
    .sidebar,
    .recibo-nav,
    .recibo-actions,
    .btn-back {
        display: none !important;
    }

    .main-container {
        margin: 0;
        padding: 0;
    }

    .main-content {
        box-shadow: none;
        padding: 20px;
    }

    .recibo-header {
        background: #66bcea !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .info-card,
    .summary-card {
        break-inside: avoid;
    }

    .detalle-table {
        page-break-inside: auto;
    }

    .detalle-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .detalle-table thead {
        display: table-header-group;
        background: #66bcea !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .recibo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .recibo-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .recibo-actions {
        width: 100%;
        justify-content: space-between;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .detalle-table {
        font-size: 12px;
    }

    .detalle-table th,
    .detalle-table td {
        padding: 10px 8px;
    }
}

/* =============================================
   NUEVOS ESTILOS PARA DASHBOARD DETALLADO - GLASSMORPHISM
   Estos estilos solo aplican dentro de .dashboard-page
   ============================================= */

/* Secciones del Dashboard */
.dashboard-page .dashboard-section {
    margin-bottom: 40px;
}

.dashboard-page .section-title {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #66bcea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.5);
}

/* Grids para diferentes layouts */
.dashboard-page .dashboard-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.dashboard-page .dashboard-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Info Boxes - GLASSMORPHISM */
.dashboard-page .info-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.dashboard-page .info-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.dashboard-page .info-box h4 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
}

.dashboard-page .info-box-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Status Grid - GLASSMORPHISM */
.dashboard-page .status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.dashboard-page .status-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.dashboard-page .status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dashboard-page .status-item:hover {
    background: rgba(102, 126, 234, 0.15);
}

.dashboard-page .status-value {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Top Lists - GLASSMORPHISM */
.dashboard-page .top-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-page .top-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.dashboard-page .top-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
}

.dashboard-page .top-rank {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-page .top-name {
    flex: 1;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-page .top-value {
    font-weight: 600;
    color: #66bcea;
    font-size: 14px;
}

/* Top Lists Small - GLASSMORPHISM */
.dashboard-page .top-list-small {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.dashboard-page .top-item-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.dashboard-page .top-item-small:hover {
    background: rgba(102, 126, 234, 0.1);
}

.dashboard-page .top-name-small {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-page .top-value-small {
    font-weight: 600;
    color: #66bcea;
    margin-left: 10px;
}

/* Metric Highlight - GLASSMORPHISM */
.dashboard-page .metric-highlight {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-page .metric-highlight strong {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-page .progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-page .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(39, 174, 96, 0.8) 0%, rgba(34, 153, 84, 0.8) 100%);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

/* Metric List - GLASSMORPHISM */
.dashboard-page .metric-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.dashboard-page .metric-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-page .metric-item strong {
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-page .metric-item span {
    color: #66bcea;
    font-weight: 600;
}

/* Alerts Grid - GLASSMORPHISM */
.dashboard-page .alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-page .alert-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 16px;
    border-left: 5px solid;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.dashboard-page .alert-box.alert-danger {
    background: rgba(231, 76, 60, 0.15);
    border-color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-left: 5px solid #e74c3c;
}

.dashboard-page .alert-box.alert-warning {
    background: rgba(243, 156, 18, 0.15);
    border-color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-left: 5px solid #f39c12;
}

.dashboard-page .alert-icon {
    font-size: 48px;
}

.dashboard-page .alert-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
}

.dashboard-page .alert-value {
    font-size: 32px;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.dashboard-page .alert-box.alert-warning .alert-value {
    color: #f1c40f;
    text-shadow: 0 2px 10px rgba(243, 156, 18, 0.3);
}

.dashboard-page .alert-content small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Alert Item - GLASSMORPHISM */
.dashboard-page .alert-item {
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dashboard-page .alert-item.alert-warning {
    background: rgba(243, 156, 18, 0.2);
    border: 1px solid rgba(243, 156, 18, 0.4);
}

.dashboard-page .alert-item strong {
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-page .alert-item span {
    font-weight: bold;
    color: #f1c40f;
}

/* Serie Stats - GLASSMORPHISM */
.dashboard-page .serie-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dashboard-page .serie-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dashboard-page .serie-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.dashboard-page .serie-item span {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.dashboard-page .serie-item strong {
    font-size: 24px;
    color: #66bcea;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* Loading States - GLASSMORPHISM */
.dashboard-page .loading-small {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.dashboard-page .no-data {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* Chart Container */
.dashboard-page .chart-container {
    position: relative;
    height: 250px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

/* Badge Primary - GLASSMORPHISM */
.badge-primary {
    background: rgba(52, 152, 219, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #5dade2;
    border: 1px solid rgba(52, 152, 219, 0.4);
}

/* Responsive para nuevas secciones */
@media (max-width: 768px) {
    .dashboard-page .dashboard-grid-2,
    .dashboard-page .dashboard-grid-3 {
        grid-template-columns: 1fr;
    }

    .dashboard-page .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-page .alerts-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page .serie-stats {
        grid-template-columns: 1fr;
    }
}
