:root {
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #fafafa;
    --border: #e0e0e0;
    --border-light: #f0f0f0;
    --success: #00c853;
    --code-bg: #1a1a1a;
    --font-mono: 'Courier New', monospace; /* O una de Google Fonts */
}

/* Tipografía Base */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.5;
}

/* Componentes de Botones Reutilizables */
.btn-pilot-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
}

.btn-pilot-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: white;
}

/* El Grid de fondo que quieres mantener en ambas vistas */
.bg-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(to right, var(--border-light) 1px, transparent 1px),
            linear-gradient(to bottom, var(--border-light) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

/* Clases de Utilidad Técnica */
.text-mono { font-family: var(--font-mono); }
.badge-tech {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Sidebar stays visible while scrolling */
aside {
    position: sticky;
    top: 0;
}

/* Improve card appearance */
.card {
    border-radius: 10px;
}

/* Ensure footer spacing */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Optional: highlight active sidebar link */
.list-group-item.active {
    background-color: #0d6efd;
    color: white;
    border: none;
}

.list-group-item.active {
    background-color: #0d6efd;
    color: white;
    border: none;
}

.list-group-item.active i {
    color: white;
}

.ip-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.4rem 0;
}

.ip-brand {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.7px;
    color: #0f172a;
    text-decoration: none;
}

.ip-nav {
    display: flex;
    gap: 2.2rem;
}

.ip-nav-item {
    position: relative;
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    padding-bottom: 2px;
    transition: color 0.25s ease, opacity 0.25s ease;
    letter-spacing: 0.15px;
}

.ip-nav-item:hover {
    color: #0f172a;
    opacity: 0.75;
}

/* active state */
.ip-nav-item.active {
    color: #0f172a;
    opacity: 1;
}

/* === BREADCRUMB === */
.ip-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ip-text-muted);
    margin-bottom: 1.5rem;
    background: #F7FAFC;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
}

.ip-breadcrumb a {
    color: var(--ip-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.ip-breadcrumb a:hover {
    color: var(--ip-primary);
}

.btn-next,
.btn-back,
.btn-calculate,
.btn-restart,
.btn-view-full {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-next,
.btn-calculate {
    background: var(--primary-blue);
    color: white;
}

.btn-next:hover:not(:disabled),
.btn-calculate:hover {
    background: var(--primary-dark);
}

.btn-next:disabled {
    background: var(--gray-200);
    color: var(--gray-400);
    cursor: not-allowed;
}

.btn-back,
.btn-restart {
    background: var(--gray-100);
    color: var(--gray-600);
}

.btn-back:hover,
.btn-restart:hover {
    background: var(--gray-200);
}

.btn-view-full {
    background: var(--gray-900);
    color: white;
}

.btn-view-full:hover {
    background: var(--gray-800);
    color: white;
}



