/**
 * Main Styles for Etang Reservation Plugin
 */

/* General Styles */
.etang-booking-widget,
.etang-calendar-widget,
.etang-list-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Loading State */
.etang-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.etang-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5f2d;
    border-radius: 50%;
    animation: etang-spin 1s linear infinite;
}

@keyframes etang-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.success-message,
.error-message,
.info-message {
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    animation: slideIn 0.3s ease-out;
}

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

.success-message {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.info-message {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Form Styles */
.etang-booking-form input:focus,
.etang-booking-form textarea:focus,
.etang-booking-form select:focus {
    outline: none;
    border-color: #2c5f2d;
    box-shadow: 0 0 0 2px rgba(44, 95, 45, 0.1);
}

.etang-booking-form input[type="date"] {
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .etang-booking-form-container {
        padding: 20px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* Print Styles */
@media print {
    .etang-submit-btn,
    .booking-messages {
        display: none;
    }
}
