/*
 * Spiritual Life Coaching Enhanced Booking Plugin Styles
 *
 * @package SLC
 * @subpackage Assets/CSS
 * @since 2.0.0
 */

/* General Body and Container Styles */
body {
    font-family: 'Inter', sans-serif; /* Using Inter font as per instructions */
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.wrap,
.slc-client-portal,
.slc-booking-form-wrapper,
.slc-package-details-wrapper {
    background-color: #fff;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 900px; /* Max width for content */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Headings */
h1, h2, h3 {
    color: #4a5568;
    margin-bottom: 15px;
}

/* Buttons */
.button,
.slc-book-now-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-primary,
.slc-book-now-button {
    background-color: #4c51bf; /* Indigo */
    color: #fff;
}

.button-primary:hover,
.slc-book-now-button:hover {
    background-color: #5a67d8; /* Lighter indigo */
    transform: translateY(-2px);
}

.button-secondary {
    background-color: #e2e8f0; /* Light gray */
    color: #2d3748; /* Dark gray */
}

.button-secondary:hover {
    background-color: #cbd5e0; /* Slightly darker gray */
    transform: translateY(-2px);
}

.button-small {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 6px;
}

/* Admin Dashboard Specific Styles */
.slc-admin-dashboard .slc-dashboard-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.slc-admin-dashboard .slc-overview-card {
    background-color: #edf2f7; /* Lighter blue-gray */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.slc-admin-dashboard .slc-overview-card h3 {
    margin-top: 0;
    color: #2d3748;
}

.slc-admin-dashboard .slc-overview-count {
    font-size: 2.5em;
    font-weight: bold;
    color: #4c51bf;
    margin: 10px 0;
}

/* Table Styles (for admin dashboard and client portal) */
.wp-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.wp-list-table th,
.wp-list-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.wp-list-table th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.wp-list-table tbody tr:hover {
    background-color: #f0f4f8;
}

/* Form Styles (for booking form) */
.slc-booking-form .form-group {
    margin-bottom: 20px;
}

.slc-booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.slc-booking-form input[type="text"],
.slc-booking-form input[type="email"],
.slc-booking-form input[type="date"],
.slc-booking-form input[type="time"],
.slc-booking-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    box-sizing: border-box; /* Ensures padding doesn't increase width */
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.slc-booking-form input:focus,
.slc-booking-form textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

.slc-booking-form textarea {
    resize: vertical;
    min-height: 100px;
}

.slc-booking-form .required {
    color: #e53e3e; /* Red for required fields */
    margin-left: 5px;
}

/* Stripe Element Styling */
#slc-card-element {
    border: 1px solid #cbd5e0;
    padding: 12px;
    border-radius: 8px;
    background-color: #f7fafc;
}

#slc-card-errors {
    color: #e53e3e;
    margin-top: 10px;
    font-weight: 500;
}

/* Messages (success/error) */
.slc-form-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

.slc-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.slc-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Client Portal & Package Details Specific Styles */
.slc-booking-list,
.slc-package-meta {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slc-booking-item {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.slc-booking-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #4c51bf;
}

.slc-booking-item p {
    margin: 5px 0;
}

.slc-package-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.slc-package-actions {
    margin-top: 30px;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slc-admin-dashboard .slc-dashboard-overview {
        grid-template-columns: 1fr; /* Stack cards on small screens */
    }

    .wrap,
    .slc-client-portal,
    .slc-booking-form-wrapper,
    .slc-package-details-wrapper {
        margin: 10px;
        padding: 15px;
        border-radius: 4px;
    }

    .button {
        width: 100%;
        margin-bottom: 10px;
    }
}
