/* Doctor Booking Plugin Styles - Version 1.4.1 */

/* General Styles */
.db-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.error-message {
    color: #d63638;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
    background: #ffe6e6;
    border-left: 4px solid #d63638;
}

.success-message {
    color: #46b450;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
    background: #e6ffe6;
    border-left: 4px solid #46b450;
}

.required {
    color: #d63638;
    margin-left: 4px;
}

/* Doctor List Styles */
.db-doctor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

.db-doctor-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.db-doctor-card:hover {
    transform: translateY(-5px);
}

.db-doctor-image img.db-doctor-img {
    width: clamp(60px, 15vw, 72px);
    height: clamp(60px, 15vw, 72px);
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.db-doctor-card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    margin: 0 0 8px;
    font-weight: bold;
    color: #333;
}

.db-doctor-card p {
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    color: #666;
    margin: 4px 0;
}

.db-book-now {
    display: inline-block;
    background: #1a3c6d;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: clamp(0.875rem, 2vw, 0.9rem);
    font-weight: 600;
    margin-top: 12px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.db-book-now:hover {
    background: #153059;
}

/* Booking Form Styles */
.db-booking-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.db-booking-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.db-booking-form select,
.db-booking-form input[type="text"],
.db-booking-form input[type="email"],
.db-booking-form input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.db-booking-form select:focus,
.db-booking-form input:focus {
    border-color: #1a3c6d;
    outline: none;
    box-shadow: 0 0 5px rgba(26, 60, 109, 0.3);
}

.db-booking-form .db-fees-inline {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
    color: #333;
}

.db-booking-form .db-fees-inline strong {
    margin-right: 8px;
}

.db-booking-form button[type="submit"] {
    display: block;
    background: #1a3c6d;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.db-booking-form button[type="submit"]:hover {
    background: #153059;
}

/* Admin Interface Styles */
.db-availability-schedule {
    margin-top: 10px;
}

.db-day-schedule {
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.db-day-schedule label {
    font-weight: 600;
    margin-right: 10px;
}

.db-day-details {
    margin-top: 10px;
    padding-left: 20px;
}

.db-day-slots {
    margin-bottom: 10px;
}

.db-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.db-slot input {
    width: 120px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.db-add-slot,
.db-remove-slot {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.db-pagination {
    margin-top: 20px;
    text-align: center;
}

.db-pagination .pagination-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.db-pagination .pagination-link.current,
.db-pagination .pagination-link:hover {
    background: #1a3c6d;
    color: #ffffff;
    border-color: #1a3c6d;
}

.db-pagination .pagination-link.disabled {
    color: #999;
    cursor: not-allowed;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .db-doctor-list {
        grid-template-columns: 1fr;
    }

    .db-booking-form {
        padding: 15px;
    }

    .db-booking-form select,
    .db-booking-form input {
        font-size: 0.95rem;
    }

    .db-slot {
        flex-direction: column;
        align-items: flex-start;
    }

    .db-slot input {
        width: 100%;
    }
}
