@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');


/* Variables de color basadas en el branding */
:root {
    --bs-primary: #e490b6; /* color dominante del logo */
    --bs-primary-rgb: 228, 144, 182;
    --bs-link-color: var(--bs-primary);
    --bs-link-hover-color: color-mix(in srgb, var(--bs-primary) 85%, black);
    --bs-dark: #5E1737;
    --bs-dark-rgb: 94, 23, 55;
    --brand-primary: #c75b97; /* Rosa del logo */
    --brand-dark: #9c3e70; /* Tono oscuro para bordes/hover */
    --brand-light: #fce4ec; /* Fondo suave */
}

/* --- Overrides y Clases Utilitarias --- */

.text-brand {
    color: var(--brand-primary) !important;
}

.bg-brand {
    background-color: var(--brand-primary) !important;
    color: white;
}

.border-brand {
    border-color: var(--brand-primary) !important;
}

/* --- Componentes de la UI --- */

.card-header-custom {
    background-color: var(--brand-primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Estilo para las listas de definición (Datos paciente) */
.patient-data-dl dt {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
}

.patient-data-dl dd {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 2px;
    margin-bottom: 0.8rem;
}

/* Badge de clasificación */
.classification-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 120px;
}

.classification-badge {
    font-size: 1.8rem;
    padding: 0.5em 1em;
    border: 4px solid var(--brand-primary);
    border-radius: 8px;
    font-weight: 800;
    width: 100%;
    text-align: center;
}

/* Velocidad de infusión (Número grande) */
.infusion-rate-card {
    border: 2px solid var(--brand-primary);
    background-color: white;
}

.infusion-rate-display {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
}

/* Tabla de resultados */
.table-custom thead th {
    background-color: var(--brand-primary);
    color: white;
    font-weight: 500;
    border: none;
}

.table-custom tbody tr.row-alert td {
    background-color: #fff3cd; /* Amarillo suave para alertas */
    color: #856404;
    font-weight: bold;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}


.card {
    transition: transform 0.2s ease-in-out;
    border: 1px solid #dee2e6;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    }

.card-header {
    border-bottom: 1px solid #dee2e6;
}

.card-footer {
    border-top: 1px solid #dee2e6;
}

@media (max-width: 767.98px) {
    .card-body .row {
        text-align: center;
    }

    .card-footer .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    .card-footer .btn {
        flex: 1;
        min-width: 40px;
    }
}