/* Estilos generales */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Fondo con la nueva imagen de ondas azules y la gata en círculo, más una capa translúcida para suavizar el contraste. */
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('3c2b342b-9448-4223-b4b2-b6fff9ba0816.png') no-repeat center/cover;
    background-attachment: fixed;
    color: #333;
}

header {
    background: #2E5A98;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid #20487d;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

header p {
    margin-top: 4px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    /* Panel semitransparente para destacar el contenido sobre el fondo */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 20px;
    backdrop-filter: saturate(180%) blur(5px);
}

.panel h2 {
    margin-top: 0;
    color: #2E5A98;
    margin-bottom: 10px;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

input, textarea, select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

textarea {
    resize: vertical;
}

button {
    margin-top: 12px;
    padding: 10px 16px;
    background: #2E5A98;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #20487d;
}

.buttons button {
    margin-right: 8px;
}

.msg {
    margin-top: 8px;
    color: #2E5A98;
    font-size: 0.85rem;
}

.analysis {
    margin-top: 15px;
    background: rgba(239, 245, 255, 0.8);
    border: 1px solid #d0e1f4;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: pre-wrap;
}

/* Checklist y cambios */
.checklist, .changes, .references {
    margin-top: 15px;
    background: rgba(253, 246, 227, 0.9);
    border: 1px solid #f0e1bc;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}
.checklist table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.checklist th {
    background: #f0ad4e;
    color: #fff;
    padding: 6px;
    font-size: 0.8rem;
}
.checklist td {
    padding: 6px;
    border-bottom: 1px solid #f5d8a4;
    font-size: 0.8rem;
}
.changes ul, .references ul {
    padding-left: 20px;
    margin: 6px 0;
}
.changes li, .references li {
    margin-bottom: 4px;
}
.changes strong, .references strong {
    color: #2E5A98;
}

.prioridad-config {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.priority {
    margin-top: 10px;
    font-weight: 600;
    font-size: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th {
    background: #2E5A98;
    color: #fff;
    padding: 8px;
    font-size: 0.85rem;
}

table td {
    padding: 8px;
    border-bottom: 1px solid #e0e9f4;
    font-size: 0.85rem;
}

/* Botones de acción para editar y eliminar registros */
.accion-btn {
    margin-right: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.editar-btn {
    background: #5bc0de;
}
.editar-btn:hover {
    background: #31b0d5;
}
.eliminar-btn {
    background: #d9534f;
}
.eliminar-btn:hover {
    background: #c9302c;
}

table tr:nth-child(even) {
    background: #f7fafd;
}

footer {
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    color: #666;
}

.badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    color: #fff;
    font-size: 0.8rem;
}
.badge.alta { background: #d9534f; }
.badge.media { background: #f0ad4e; }
.badge.baja { background: #5cb85c; }