@import url('https://fonts.googleapis.com/css2?family=Inter :wght@400;600&display=swap');

:root {
    --primary: #4a00e0;
    --secondary: #8e2de2;
    --bg: #f9f9f9;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-dark: #999;
    --accent-red: #e74c3c;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--gray-dark);
    transition: background-color 0.3s ease;
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 2rem auto;
    padding: 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

h1, h2, h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 0.6rem;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2rem 0;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"] {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: var(--primary);
    outline: none;
}

button,
.btn-volver {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    min-width: 150px;
    margin-top: 1rem;
}

button:hover,
.btn-volver:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.language-selector {
    margin-top: 1.5rem;
    text-align: center;
}

.language-selector select {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.checklist-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.checklist-table thead {
    background-color: var(--primary);
    color: white;
}

.checklist-table th,
.checklist-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.checklist-table tr:nth-child(even) {
    background-color: var(--gray-light);
}

.checklist-table tr:hover {
    background-color: #f0f0f0;
}

.checklist-table tr td:first-child {
    font-weight: 500;
}

.checklist-table tr td:last-child {
    text-align: center;
    font-weight: bold;
    color: var(--accent-red);
}

.resultado {
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 500;
}

.basic {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.medium {
    background-color: #fff3cd;
    color: #e67c00;
}

.high {
    background-color: #ffe0b2;
    color: #d84315;
}

.critical {
    background-color: #f8d7da;
    color: #c62828;
}

.openai-response {
    background-color: var(--gray-light);
    border-left: 6px solid var(--primary);
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    white-space: pre-wrap;
}

.openai-response code {
    background-color: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem 1.5rem;
    border-left: 6px solid #721c24;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    button,
    .btn-volver {
        width: 100%;
        margin-top: 0.5rem;
    }

    .language-selector select {
        width: 100%;
    }
}