* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #7e22ce 50%, #1e293b 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    color: white;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.header p {
    color: #e9d5ff;
    font-size: 1rem;
}

/* Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Control Panel */
.control-panel {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.control-panel h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.control-section {
    margin-bottom: 20px;
}

.control-section label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.button-group {
    display: flex;
    gap: 8px;
}

.btn-toggle {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    background: #e5e7eb;
    color: #374151;
    transition: all 0.3s ease;
}

.btn-toggle:hover {
    background: #d1d5db;
}

.btn-toggle.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-toggle.active.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.input-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
}

.criteria-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.criteria-box h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.criteria-box div {
    font-size: 0.75rem;
    color: #6b7280;
}

.criteria-box p {
    margin: 4px 0;
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.form-content {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

textarea.input-field {
    resize: vertical;
    font-family: inherit;
}

#formReducida .input-field {
    margin-bottom: 12px;
}

.btn-analyze {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-analyze:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.3);
}

.btn-analyze:active {
    transform: translateY(0);
}

/* Results Container */
.result-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

#resultIcon {
    font-size: 4rem;
}

.result-header h2 {
    font-size: 1.5rem;
    color: #1f2937;
}

.result-header p {
    color: #6b7280;
    margin-top: 4px;
}

.result-details {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.result-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 0.875rem;
}

.detail-item {
    padding: 8px;
    background: #f9fafb;
    border-radius: 4px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item span {
    font-weight: 600;
    color: #374151;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .control-panel {
        order: 2;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-container {
    animation: fadeIn 0.3s ease;
}