/* Modal edición serial: diseño mejorado */
#modalEditarSerial .modal-content {
    background: #fff;
    color: #232526;
    border-radius: 14px;
    box-shadow: 0 6px 32px #0002;
    border: 1.5px solid #3a7bd5;
}
#modalEditarSerial .modal-header {
    border-bottom: 1px solid #e6e8ea;
    background: linear-gradient(90deg, #f8fafc 0%, #e6e8ea 100%);
    border-radius: 14px 14px 0 0;
}
#modalEditarSerial .modal-title {
    font-weight: 700;
    color: #3a7bd5;
}
#modalEditarSerial .modal-body label {
    font-weight: 500;
    color: #3a7bd5;
    margin-bottom: 2px;
}
#modalEditarSerial .form-control, #modalEditarSerial .form-select {
    border-radius: 8px;
    border: 1.5px solid #3a7bd5;
    background: #f8fafc;
    color: #232526;
    margin-bottom: 8px;
}
#modalEditarSerial .form-control:focus, #modalEditarSerial .form-select:focus {
    border: 1.5px solid #232526;
    box-shadow: 0 2px 8px #3a7bd555;
}
#modalEditarSerial .modal-footer {
    border-top: 1px solid #e6e8ea;
    background: #f8fafc;
    border-radius: 0 0 14px 14px;
}
#modalEditarSerial .btn-primary {
    background: linear-gradient(90deg, #3a7bd5 0%, #232526 100%);
    border: none;
    font-weight: 600;
}
#modalEditarSerial .btn-primary:hover {
    background: linear-gradient(90deg, #232526 0%, #3a7bd5 100%);
}
#modalEditarSerial .btn-secondary {
    background: #e6e8ea;
    color: #232526;
    border: none;
    font-weight: 500;
}
#modalEditarSerial .btn-secondary:hover {
    background: #d1d5db;
    color: #232526;
}
/* Animación de entrada suave para el contenido principal */
.container-main {
    animation: fadeInUp 0.7s cubic-bezier(.39,.575,.56,1);
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
body {
    /* background: #fff !important; */
    /* color: #232526; */
}

/* Modal edición serial: fondo claro y bordes */
#modalEditarSerial .modal-content {
    background: #fff;
    color: #232526;
    border-radius: 12px;
    box-shadow: 0 4px 24px #0002;
}
/* Alerta global reutilizable */
.alerta-global {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 9999;
    background: linear-gradient(90deg, #232526 0%, #3a7bd5 100%);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 24px #0005;
    font-size: 1.08rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.4s, transform 0.4s;
    pointer-events: none;
    animation: none;
}
.alerta-global.show {
    opacity: 1;
    transform: translateX(0);
    animation: alertaFadeIn 0.5s cubic-bezier(.39,.575,.56,1);
}
.alerta-global.alerta-error {
    background: linear-gradient(90deg, #b00020 0%, #232526 100%);
    color: #fff;
}
@keyframes alertaFadeIn {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.98);
    }
    80% {
        opacity: 1;
        transform: translateX(-6px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
/* Custom overrides and modular styles for the app */

/* Container adjustments */
.container-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 40px 12px 60px 12px;
    margin: 80px auto 40px auto;
    max-width: 98vw;
    width: 100%;
    min-height: calc(100vh - 250px);
    min-height: calc(100vh - 250px);
}

/* Search input */
.search-bar {
    max-width: 350px;
    width: 100%;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

/* Tabla más ancha */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    max-width: 100%;
}
.table {
    min-width: 900px;
    max-width: 100%;
    margin: 0 auto;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .container-main {
        max-width: 100vw;
        padding: 18px 2vw 0 2vw;
    }
    .table {
        min-width: 700px;
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .container-main {
        padding: 10px 1vw 0 1vw;
    }
    .search-bar {
        max-width: 100%;
        width: 100%;
    }
    .table {
        min-width: 500px;
        max-width: 100%;
    }
}

/* Footer personalizado */
.footer {
    background: #000 !important;
    color: #fff !important;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0 20px 0;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 60px;
    position: relative;
    left: 0;
    z-index: 10;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}

/* Botón agregar nuevo serial - estilo profesional */
.btn-nuevo-serial {
    background: #64748b !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}

.btn-nuevo-serial:hover {
    background: #475569 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.btn-nuevo-serial:active {
    transform: translateY(0);
}

/* Badge de usuario activo - estilo profesional esquina superior */
#user-badge {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #fff !important;
    color: #334155 !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: all 0.3s ease, opacity 0.3s ease;
}

#user-badge:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

#user-badge.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Logo en el navbar */
.navbar-logo {
    height: 40px;
    width: auto;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 32px;
    }
}

