/* Estilos generales */
body, html {
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(135deg, #FFA500, #FF6347);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    text-align: center;
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Estilos del dashboard */
.diasol-dashboard {
    display: flex;
    gap: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.reservation-list, .reservation-details {
    flex: 1;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* Estilos de la lista de reservas */
.search-bar {
    display: flex;
    margin-bottom: 20px;
}

#date-picker {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

#add-reservation-btn {
    background-color: #FFA500;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

#add-reservation-btn:hover {
    background-color: #FF8C00;
}

#reservation-list {
    list-style-type: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

#reservation-list li {
    background-color: #f9f9f9;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

#reservation-list li:hover {
    background-color: #e9e9e9;
    transform: translateY(-3px);
}

/* Estilos de los detalles de la reserva */
#reservation-info {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#edit-reservation-btn {
    background-color: #2196F3;
    color: white;
}

#edit-reservation-btn:hover {
    background-color: #1976D2;
}

#complete-reservation-btn {
    background-color: #4CAF50;
    color: white;
}

#complete-reservation-btn:hover {
    background-color: #45a049;
}

/* Estilos del modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 50%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Estilos del formulario */
#reservation-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#reservation-form input,
#reservation-form select,
#reservation-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

#reservation-form button {
    background-color: #FFA500;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#reservation-form button:hover {
    background-color: #FF8C00;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.diasol-dashboard, .modal-content {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .diasol-dashboard {
        flex-direction: column;
    }

    .modal-content {
        width: 90%;
    }
}

/* Estilos para el efecto de ondulación */
button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.7);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Estilos para notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

.notification.info {
    background-color: #2196F3;
}

/* Indicador de carga */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
}

/* Animación de pulso para elementos de la lista */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Estilos para el tema claro/oscuro */
body.light {
    background: linear-gradient(135deg, #FFA500, #FF6347);
    color: #333;
}

body.dark {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: #f0f0f0;
}

body.dark .diasol-dashboard {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark #reservation-list li,
body.dark #reservation-info {
    background-color: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
}

body.dark #reservation-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark .modal-content {
    background-color: #34495E;
    color: #f0f0f0;
}

body.dark #reservation-form input,
body.dark #reservation-form select,
body.dark #reservation-form textarea {
    background-color: #2C3E50;
    color: #f0f0f0;
    border-color: #4A6572;
}

body.dark #add-reservation-btn,
body.dark #reservation-form button {
    background-color: #E67E22;
}

body.dark #add-reservation-btn:hover,
body.dark #reservation-form button:hover {
    background-color: #D35400;
}

/* Estilos para el botón de cambio de tema */
#theme-toggle {
    transition: background-color 0.3s, transform 0.3s;
}

#theme-toggle:hover {
    transform: scale(1.1);
}

body.dark #theme-toggle {
    background-color: #F39C12;
}

body.dark #theme-toggle:hover {
    background-color: #D68910;
}

/* Estilos para el formulario mejorado */
.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

#reservation-form input[type="number"],
#reservation-form input[type="date"],
#reservation-form select,
#reservation-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

#reservation-form input:focus,
#reservation-form select:focus,
#reservation-form textarea:focus {
    border-color: #FFA500;
    outline: none;
}

/* Estilos para los items de la lista */
.reservation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.reservation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.item-header {
    display: flex;
    flex-direction: column;
}

.mascota-nombre {
    font-weight: bold;
    color: #333;
}

.servicio-tipo {
    font-size: 0.9em;
    color: #666;
}

.item-details {
    text-align: right;
}

.valor {
    font-weight: bold;
    color: #4CAF50;
}

.saldo {
    font-size: 0.9em;
}

.saldo.pending {
    color: #f44336;
}

.saldo.paid {
    color: #4CAF50;
}

/* Estilos para la tarjeta de detalles */
.detail-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.detail-header h3 {
    margin: 0;
    color: #333;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.detail-row .label {
    color: #666;
    font-weight: 500;
}

.detail-row .value {
    color: #333;
    font-weight: 400;
}

.estado {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
}

.estado.pendiente {
    background-color: #FFF3E0;
    color: #FF9800;
}

.estado.completado {
    background-color: #E8F5E9;
    color: #4CAF50;
}

.estado.cancelado {
    background-color: #FFEBEE;
    color: #F44336;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.search-bar input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    flex-grow: 1;
}

.search-bar select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
    background-color: white;
    cursor: pointer;
}

.search-bar select:hover {
    border-color: #FFA500;
}

.search-bar select:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.1);
}

#add-reservation-btn {
    background-color: #FFA500;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#add-reservation-btn:hover {
    background-color: #FF8C00;
}

#add-reservation-btn i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input[type="date"],
    .search-bar select,
    #add-reservation-btn {
        width: 100%;
    }
}