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

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

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

h1 {
    color: #667eea;
    text-align: center;
    margin-bottom: 30px;
}

.formulario {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.campo {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #667eea;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #5568d3;
}

.resultado {
    background-color: #e8f5e9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: none;
}

.resultado h2 {
    color: #2e7d32;
    margin-bottom: 15px;
}

.detalle {
    margin: 10px 0;
    font-size: 18px;
    color: #333;
}

.detalle strong {
    color: #667eea;
}

.historial {
    margin-top: 30px;
}

.historial h2 {
    color: #667eea;
    margin-bottom: 15px;
}

.prestamo-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.prestamo-item p {
    margin: 5px 0;
    color: #555;
}

.btn-limpiar {
    background-color: #dc3545;
    margin-top: 10px;
}

.btn-limpiar:hover {
    background-color: #c82333;
}

.mensaje-vacio {
    text-align: center;
    color: #999;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
