/* =========================================
   RESETS PROFESIONALES (Bloquea logos gigantes)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, Arial, sans-serif;
    background-color: #f7f9fb;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   ESTILOS GENERALES DEL PLANO BODEGA 01
   ========================================= */
body:not(.bg-login) {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #2c3e50;
    font-weight: 400;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

.bodega-container {
    width: 720px;
    height: 820px;
    border: 3px solid #5fa141; /* Muro verde de ingeniería */
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.brujula {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.8;
}

.rack-blueprint {
    position: absolute;
    border: 2px solid #5fa141;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.seccion-rack {
    flex: 1;
    border: 1px solid transparent;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lineas-internas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 3px solid #4a86e8;
    border-bottom: 3px solid #4a86e8;
}

.seccion-rack:hover {
    background-color: rgba(74, 134, 232, 0.15);
}

.puerta-arquitectonica {
    position: absolute;
    width: 80px;
    height: 80px;
}

.linea-puerta {
    position: absolute;
    width: 2px;
    height: 80px;
    background-color: #5fa141;
    right: 0;
    bottom: 0;
    transform: rotate(0deg);
    transform-origin: bottom right;
}

.arco-puerta {
    position: absolute;
    width: 80px;
    height: 80px;
    border-left: 2px dashed #5fa141;
    border-top: 2px dashed #5fa141;
    border-radius: 100% 0 0 0;
    left: 0;
    top: 0;
}

.panel-wms {
    margin-top: 25px;
    width: 720px;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 15px;
}

.panel-wms span {
    color: #4a86e8;
    font-weight: bold;
}


/* =========================================
   DISEÑO PREMIUM PARA LA PANTALLA DE LOGIN
   ========================================= */
.bg-login {
    /* Degradado azul corporativo profundo */
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
}

/* Control estricto de dimensiones del logo */
.logo-container-login {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.logo-login {
    width: 180px; /* Aquí controlamos el tamaño exacto del logo */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Tarjeta estilo cristal esmerilado con borde sutil de la marca */
.login-card {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 90, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    width: 100%;
    text-align: center;
}

.login-card h2 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.login-card .subtitle {
    color: #94a3b8;
    font-size: 13.5px;
    margin-bottom: 30px;
}

.input-group {
    text-align: left;
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #cbd5e1;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* Campos de texto oscuros con iconos vectoriales en línea */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 14px 12px 42px; /* Espacio extra a la izquierda para el icono */
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14.5px;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #FF5A00;
    box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.15);
    background-color: rgba(15, 23, 42, 0.8);
}

.input-with-icon input::placeholder {
    color: #64748b;
}

/* Icono Vectorial de Usuario */
.user-icon::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

/* Icono Vectorial de Candado */
.lock-icon::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

/* Botón de acción con el color Naranja de XP */
.btn-naranja {
    background-color: #FF5A00;
    color: #ffffff;
    border: none;
    padding: 13px;
    width: 100%;
    border-radius: 6px;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.2);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-naranja:hover {
    background-color: #e04f00;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(255, 90, 0, 0.3);
}

.btn-naranja:active {
    transform: translateY(0);
}

/* Enlaces internos */
.login-footer-links {
    display: flex;
    justify-content: space-between;
    margin-top: 22px;
}

.login-footer-links a {
    color: #94a3b8;
    font-size: 12.5px;
    text-decoration: none;
    transition: color 0.2s;
}

.login-footer-links a:hover {
    color: #FF5A00;
}

/* Footer de copyright */
.app-credentials-footer {
    margin-top: 40px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.app-credentials-footer a {
    color: #64748b;
    text-decoration: none;
}

.app-credentials-footer a:hover {
    color: #94a3b8;
    
    /* =========================================
   ESTILOS DEL PANEL PRINCIPAL (DASHBOARD)
   ========================================= */

.header-panel {
    background-color: #1e293b;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: white;
}

.header-logo img {
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.header-user {
    font-size: 14px;
}

.btn-cerrar {
    background-color: #FF5A00;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 13px;
    margin-left: 15px;
    transition: background 0.2s;
}

.btn-cerrar:hover {
    background-color: #e04f00;
}

.panel-container {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.panel-header-text {
    text-align: center;
    margin-bottom: 40px;
}

.panel-header-text h1 {
    color: #1e293b;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.panel-header-text p {
    color: #64748b;
    font-size: 16px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Tarjetas interactivas del menú */
.dash-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.dash-card:hover {
    transform: translateY(-5px);
    border-color: #FF5A00;
    box-shadow: 0 15px 30px rgba(255, 90, 0, 0.1);
}

.dash-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.dash-card h3 {
    color: #1e293b;
    font-size: 20px;
    margin-bottom: 10px;
}

.dash-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}
    
