* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    text-align: center;
    color: #f0f0f0;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

h3 {
    color: #764ba2;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 1.1em;
}

input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.patient-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
}

.patient-info p {
    font-weight: 600;
    color: #495057;
    font-size: 1.1em;
}

.patient-info span {
    color: #667eea;
    font-size: 1.2em;
}

.diagnosis {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.diagnosis.hipotension {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    color: #856404;
}

.diagnosis.normal {
    background: #d1ecf1;
    border-left: 5px solid #17a2b8;
    color: #0c5460;
}

.diagnosis.hipertension {
    background: #f8d7da;
    border-left: 5px solid #dc3545;
    color: #721c24;
}

.diagnosis.warning {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    color: #856404;
}

#results {
    font-size: 1.1em;
    line-height: 1.8;
}

#results p {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

#results strong {
    color: #667eea;
}

#logContent {
    max-height: 400px;
    overflow-y: auto;
}

.log-entry {
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 5px;
    animation: slideIn 0.3s ease-out;
}

.log-entry.no-med {
    border-left-color: #17a2b8;
}

.log-entry.hipotension {
    border-left-color: #ffc107;
}

.log-entry.hipertension {
    border-left-color: #dc3545;
}

.hidden {
    display: none;
}

/* Estilos personalizados para SweetAlert2 */
.swal2-popup {
    font-size: 1rem !important;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8em;
    }
    
    .card {
        padding: 20px;
    }
    
    .patient-info {
        flex-direction: column;
        gap: 10px;
    }
}