﻿:root {
    --primary-green: #22c55e;
    --danger: #ef4444;
    --neutral: #94a3b8;
    --bg-page: #f1f5f9;
    --white: #ffffff;
    --text-dark: #0f172a;
}

.annotation-alert {
    font-size: .7rem;
    color: red ;
}


/* Progress Bar */
.inspection-summary {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.progress-bar-bg {
    background: #e2e8f0;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar-fill {
    background: var(--primary-green);
    width: 0%;
    height: 100%;
    transition: width 0.4s;
}

/* Checklist Card */
.check-item {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 8px solid #cbd5e1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.item-info h3 {
    margin: 0;
    font-size: 1.1rem;
}

.item-info p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.btn-check {
    border: 1.5px solid #e2e8f0;
    background: var(--white);
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.active-pasa {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.active-falla {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.active-na {
    background: var(--neutral);
    color: white;
    border-color: var(--neutral);
}

/* SECCIÓN DE COMENTARIOS (Oculta por defecto) */
.fail-panel {
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
    padding-top: 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 0;
}

    .fail-panel.show-fail {
        max-height: 400px !important; /* Suficiente para el contenido */
        opacity: 1 !important; 
        margin-top: 15px;
        padding-top: 15px;
    }

textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    resize: none;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.upload-area {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: end;
    gap: 10px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    cursor: pointer;
}


    .upload-area input {
        display: none;
    }

.image-upload{
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.btn-submit {
    width: 100%;
    background: #0f172a;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}

/* Estilos de tarjeta según estado */
.item-pasa {
    border-left-color: var(--primary-green);
}

.item-falla {
    border-left-color: var(--danger);
}

.item-na {
    border-left-color: var(--neutral);
    opacity: 0.8;
}


@media (max-width: 1620px) { /* tablet */

}

@media (max-width: 1024px) { /* tablet */

}

@media (max-width: 880px) { /* tablet */

}

@media (max-width: 490px) { /* phone */

    .check-item {
        padding: 15px;
    }

    .btn-check {
        font-size: 0.75rem;
        padding: 10px 2px;
    }

    body {
        padding-bottom: 0px;
    }
}
