﻿
:root {
    --primary-color: #4f46e5;
    --bg-selected: #f5f7ff;
    --border-color: #e5e7eb;
    --text-muted: #9ca3af;
    --error-color: #ef4444;
}

/* Contenedor de Grupo */
.form-group-custom {
    margin-bottom: 0.5rem;
}

/* Labels más elegantes */
.form-label-custom {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.4rem;
    display: block;
}

/* Input Group Modernizado */
.input-group-modern {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .input-group-modern:focus-within {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 83, 146, 0.1);
    }

.input-icon {
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Reset de Input */
.form-control-modern {
    border: none;
    background: transparent;
    padding: 10px 12px 10px 0;
    width: 100%;
    font-size: 0.95rem;
    outline: none;
    color: #333;
}

    .form-control-modern::placeholder {
        color: #ccc;
    }

/* Estados de Error */
.form-group-custom.has-error .input-group-modern {
    border-color: var(--error-color);
    background-color: #fffafb;
}

.error-text {
    color: var(--error-color);
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 500;
}

/* Alerta de Error Moderna */
.alert-modern-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.modern-table-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    background: white;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0 !important;
}

    .table-modern thead th {
        padding: 15px;
        font-size: 0.8rem;
        border-bottom: 2px solid var(--border-color);
    }

    .table-modern tbody tr {
        transition: background-color 0.3s ease;
    }

/* Estados de Fila */
.row-disabled {
    opacity: 0.6;
    background-color: #ffffff;
}

.row-active {
    background-color: var(--bg-selected) !important;
    opacity: 1 !important;
}

.table-modern td {
    padding: 3px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

/* Inputs Modernos */
.chk-rango, .rad-opcion {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.price-label {
    font-weight: 500;
    margin-left: 5px;
    cursor: pointer;
    color: #374151;
}

label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 0;
    padding: 5px;
}

input:disabled + .price-label {
    color: var(--text-muted);
    cursor: not-allowed;
}

.cursor-pointer {
    cursor: pointer;
}

.row-disabled {
    opacity: 0.6;
    background-color: #fcfcfc;
}

.table-active {
    opacity: 1 !important;
    background-color: #ffffff !important;
}

.stepper-container {
    width: 100%;
    padding: 20px 0;
}

.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
    position: relative;
}

    /* Línea de fondo que conecta los pasos */
    .stepper-wrapper::before {
        content: "";
        position: absolute;
        top: 20px; /* Centrado con el círculo */
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #e0e0e0;
        z-index: 1;
    }

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 2;
    transition: all 0.3s ease;
}

/* El círculo del número */
.step-counter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    color: #9e9e9e;
}

/* El nombre del paso */
.step-name {
    font-size: 14px;
    font-weight: 500;
    color: #9e9e9e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- ESTADO ACTIVO --- */
.stepper-item.active .step-counter {
    background-color: #322F69;
    border-color: #322F69;
    color: #fff;
    box-shadow: 0 4px 10px rgba(50, 47, 105, 0.3);
    transform: scale(1.1);
}

.stepper-item.active .step-name {
    color: #322F69;
    font-weight: 700;
}

/* --- ESTADO COMPLETADO (Opcional si usas JS para marcar checks) --- */
.stepper-item.completed .step-counter {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}
