/* =========================================
   ESTILOS PERSONALIZADOS (Apple + Bootstrap Override)
   ========================================= */

:root {
    --font-main: 'Oxygen', sans-serif;
    --primary-color: #0071e3; /* Apple Blue */
    --primary-hover: #0077ed;
    --bg-app: #f5f5f7;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-app) !important;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
}

/* --- HEADER GLASSMORPHISM --- */
.app-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.main-content {
    margin-top: 100px; /* Espacio para el header fijo */
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0071e3, #42a1ff);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,113,227, 0.3);
}

/* --- CARDS TIPO APPLE --- */
.apple-card {
    border-radius: 20px !important; /* Más redondeado */
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Sutil efecto hover solo en la tarjeta principal */
.apple-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

code {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.85em;
    color: #d63384;
}

/* --- FORMULARIOS --- */
.form-control, .form-select {
    border: 1px solid #d2d2d7;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background-color: #999;
    transform: none;
    box-shadow: none;
}

/* --- TERMINAL OPTIMIZADA --- */
.console-window {
    height: 350px;
    overflow-y: auto;
    color: #33ff00; /* Verde matrix clásico */
    font-size: 0.9rem;
    line-height: 1.4;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}

/* Scrollbar personalizada para la terminal */
.console-window::-webkit-scrollbar {
    width: 8px;
}
.console-window::-webkit-scrollbar-track {
    background: #1e1e1e;
}
.console-window::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.log-line {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 2px 0;
    word-wrap: break-word; /* Evita desbordamiento horizontal */
}

.log-error { color: #ff453a; font-weight: bold; }
.log-warning { color: #ff9f0a; }
.log-success { color: #30d158; font-weight: bold; }

.status-badge {
    min-width: 80px;
    text-align: center;
}

/* --- UTILIDADES VISIBILIDAD --- */
.d-none {
    display: none !important;
}

/* Footer link */
.app-footer a:hover {
    color: var(--primary-color) !important;
}