/* Estilos generales */
body, html {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #8EC5FC, #E0C3FC);
    min-height: 100vh;
}

/* Contenedor principal */
.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Contenido principal */
main {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Títulos */
main h1 {
    color: #FF0000;
    text-align: center;
    margin: 0 0 30px 0;
    font-size: 2.5em;
    text-transform: uppercase;
}

main h2 {
    color: #FF0000;
    font-size: 1.8em;
    margin: 0 0 20px 0;
    text-transform: uppercase;
}

main h3 {
    color: #333;
    font-size: 1.3em;
    margin: 15px 0;
}

/* Layout principal en dos columnas */
.content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* Sección del formulario (izquierda) */
#add-pet-section {
    flex: 0 0 40%;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Sección de lista y búsqueda (derecha) */
.right-section {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
}

/* Búsqueda */
.search-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

#search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

#search-input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.1);
}

/* Botón de búsqueda */
.btn-primary, .btn-buscar {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Lista de mascotas */
.pets-grid {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pet-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-left: 4px solid #4CAF50;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.pet-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.pet-card h3 {
    font-size: 1.4em;
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Campos de la mascota en la tarjeta */
.pet-card p {
    margin: 10px 0;
    line-height: 1.5;
}

.pet-card strong {
    color: #333;
    font-weight: 600;
    min-width: 100px;
    display: inline-block;
}

/* Estilos del formulario */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.1);
}

/* Guardería */
#guarderia-fields {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-top: 10px;
}

select[multiple] {
    height: 120px;
}

select[multiple] option {
    padding: 8px;
}

/* Botones */
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: #4CAF50;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 20px;
}

.btn-warning {
    background-color: #ffc107;
    color: #000;
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Botones de acción en la tarjeta */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.action-buttons .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 1em;
    padding: 10px 15px;
}

/* Campos en dos columnas */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    #add-pet-section,
    .right-section {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .pet-card {
        font-size: 1em;
    }
}

/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pet-card {
    animation: slideIn 0.3s ease forwards;
}

/* Checkbox y labels */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-label {
    color: #555;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.form-text {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

/* Areas de texto */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* Línea verde de la lista */
.lista-mascotas {
    border-left: 4px solid #4CAF50;
    padding-left: 15px;
    margin-top: 20px;
    background: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Título de la lista de mascotas */
.lista-mascotas h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

/* Modal de confirmación */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: 20% auto;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

