  /* ==========================================================================
   ServicesHub Appointments – Front-End & Admin Styles
   Brand: Coral #e8614d | Dark Teal #1e3a4a
   ========================================================================== */

/* ---------- General Reset ---------- */
.sh-booking-wrap {
    max-width: 680px;
    margin: 30px auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    color: #333333;
    position: relative;
}

.sh-booking-wrap *,
.sh-booking-wrap *::before,
.sh-booking-wrap *::after {
    box-sizing: border-box;
}

/* ---------- Progress Indicator ---------- */
.sh-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.sh-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.sh-step-number {
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: #cccccc;
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;
    margin-bottom: 4px;
}

.sh-progress-step.active .sh-step-number,
.sh-progress-step.completed .sh-step-number {
    background-color: #e8614d;
}

.sh-step-label {
    font-size: 12px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sh-progress-step.active .sh-step-label,
.sh-progress-step.completed .sh-step-label {
    color: #1e3a4a;
    font-weight: bold;
}

.sh-progress-line {
    flex: 1;
    height: 3px;
    background-color: #cccccc;
    margin: 0 8px;
    margin-bottom: 20px;
}

.sh-progress-line.active {
    background-color: #e8614d;
}

/* ---------- Step Panels ---------- */
.sh-step {
    background: #ffffff;
    border: 1px solid #dddddd;
    padding: 30px;
    margin-bottom: 20px;
}

.sh-step-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a4a;
    margin: 0 0 6px 0;
}

.sh-step-desc {
    font-size: 14px;
    color: #666666;
    margin: 0 0 20px 0;
}

/* ---------- Service Cards ---------- */
.sh-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sh-service-card {
    display: flex;
    align-items: center;
    border: 2px solid #dddddd;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.sh-service-card:hover {
    border-color: #e8614d;
    background-color: #fdf2f0;
}

.sh-service-card input[type="radio"] {
    margin-right: 14px;
    width: 18px;
    height: 18px;
    accent-color: #e8614d;
}

.sh-service-card input[type="radio"]:checked ~ .sh-service-info {
    color: #1e3a4a;
}

.sh-service-card:has(input:checked) {
    border-color: #e8614d;
    background-color: #fdf2f0;
}

.sh-service-info {
    display: flex;
    flex-direction: column;
}

.sh-service-name {
    font-size: 16px;
    color: #1e3a4a;
    margin-bottom: 2px;
}

.sh-service-desc {
    font-size: 13px;
    color: #777777;
    margin-bottom: 4px;
}

.sh-service-meta {
    font-size: 14px;
    font-weight: 600;
    color: #e8614d;
}

/* ---------- Date Picker ---------- */
.sh-date-picker-wrap {
    max-width: 300px;
}

.sh-date-picker-wrap label {
    display: block;
    font-weight: 600;
    color: #1e3a4a;
    margin-bottom: 6px;
}

.sh-date-picker-wrap input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 2px solid #1e3a4a;
    background: #ffffff;
    color: #333333;
}

.sh-date-picker-wrap input[type="date"]:focus {
    outline: none;
    border-color: #e8614d;
}

.sh-date-note {
    font-size: 13px;
    color: #888888;
    margin-top: 8px;
}

/* ---------- Time Slots Grid ---------- */
.sh-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 60px;
}

.sh-slot-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #1e3a4a;
    background: #ffffff;
    color: #1e3a4a;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-width: 90px;
}

.sh-slot-btn:hover {
    background-color: #1e3a4a;
    color: #ffffff;
}

.sh-slot-btn.selected {
    background-color: #e8614d;
    border-color: #e8614d;
    color: #ffffff;
}

.sh-no-slots {
    color: #999999;
    font-style: italic;
}

/* ---------- Loading ---------- */
.sh-loading {
    text-align: center;
    padding: 20px;
    color: #888888;
}

.sh-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #dddddd;
    border-top-color: #e8614d;
    border-radius: 50%;
    animation: sh-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

.sh-spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

@keyframes sh-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Form Fields ---------- */
.sh-form-group {
    margin-bottom: 16px;
}

.sh-form-group label {
    display: block;
    font-weight: 600;
    color: #1e3a4a;
    margin-bottom: 6px;
    font-size: 14px;
}

.sh-form-group input[type="text"],
.sh-form-group input[type="email"],
.sh-form-group input[type="tel"],
.sh-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 2px solid #cccccc;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
}

.sh-form-group input:focus,
.sh-form-group textarea:focus {
    outline: none;
    border-color: #e8614d;
}

.sh-form-group textarea {
    resize: vertical;
}

/* ---------- Booking Summary ---------- */
.sh-summary {
    background: #f5f5f5;
    border-left: 4px solid #e8614d;
    padding: 16px 20px;
    margin: 20px 0;
}

.sh-summary h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #1e3a4a;
}

.sh-summary p {
    margin: 4px 0;
    font-size: 14px;
}

/* ---------- Buttons ---------- */
.sh-btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}

.sh-btn-next,
.sh-btn-submit {
    background-color: #e8614d;
    color: #ffffff;
}

.sh-btn-next:hover,
.sh-btn-submit:hover {
    background-color: #d14e3b;
}

.sh-btn-back {
    background-color: #f5f5f5;
    color: #1e3a4a;
    border: 2px solid #1e3a4a;
}

.sh-btn-back:hover {
    background-color: #1e3a4a;
    color: #ffffff;
}

.sh-btn-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.sh-step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

/* ---------- Messages ---------- */
.sh-message {
    padding: 20px;
    margin-top: 20px;
    font-size: 15px;
    text-align: center;
}

.sh-message-success {
    background-color: #dff0d8;
    border: 2px solid #5cb85c;
    color: #3c763d;
}

.sh-message-error {
    background-color: #f2dede;
    border: 2px solid #d9534f;
    color: #a94442;
}

/* ---------- Form Overlay ---------- */
.sh-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.sh-form-overlay p {
    margin-top: 16px;
    font-size: 16px;
    color: #1e3a4a;
    font-weight: 600;
}

/* ---------- Responsive: Mobile ---------- */
@media screen and (max-width: 768px) {
    .sh-booking-wrap {
        margin: 15px;
        font-size: 14px;
    }

    .sh-step {
        padding: 20px 16px;
    }

    .sh-step-title {
        font-size: 18px;
    }

    .sh-progress {
        flex-wrap: wrap;
        gap: 4px;
    }

    .sh-progress-step {
        min-width: 50px;
    }

    .sh-step-label {
        font-size: 10px;
    }

    .sh-slots-grid {
        gap: 8px;
    }

    .sh-slot-btn {
        padding: 8px 14px;
        font-size: 13px;
        min-width: 80px;
    }

    .sh-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .sh-step-nav {
        flex-direction: column;
    }
}

/* ==========================================================================
   Admin Dashboard Styles
   ========================================================================== */

.sh-admin-wrap {
    max-width: 1200px;
}

/* ---------- Stat Cards ---------- */
.sh-stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sh-stat-card {
    flex: 1;
    min-width: 140px;
    background: #ffffff;
    padding: 16px 20px;
    border: 1px solid #dddddd;
    text-align: center;
}

.sh-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #1e3a4a;
    line-height: 1.2;
}

.sh-stat-label {
    font-size: 13px;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ---------- Filter Bar ---------- */
.sh-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #f5f5f5;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid #dddddd;
}

.sh-filter-bar label {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a4a;
}

.sh-filter-bar input[type="date"],
.sh-filter-bar input[type="text"],
.sh-filter-bar select {
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #cccccc;
}

/* ---------- Admin Table ---------- */
.sh-admin-table th {
    background-color: #1e3a4a;
    color: #ffffff;
    font-size: 13px;
    padding: 10px 8px;
}

.sh-admin-table td {
    font-size: 13px;
    padding: 8px;
    vertical-align: middle;
}

/* ---------- Status Badges ---------- */
.sh-status-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sh-status-pending {
    background-color: #fcf8e3;
    color: #8a6d3b;
    border: 1px solid #f0ad4e;
}

.sh-status-confirmed {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #5cb85c;
}

.sh-status-cancelled {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #d9534f;
}

.sh-status-completed {
    background-color: #d9edf7;
    color: #31708f;
    border: 1px solid #337ab7;
}

/* ---------- Action Buttons ---------- */
.sh-btn-confirm {
    background-color: #5cb85c !important;
    color: #ffffff !important;
    border-color: #4cae4c !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
}

.sh-btn-confirm:hover {
    background-color: #449d44 !important;
}

.sh-btn-cancel {
    background-color: #d9534f !important;
    color: #ffffff !important;
    border-color: #d43f3a !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
}

.sh-btn-cancel:hover {
    background-color: #c9302c !important;
}

.sh-btn-complete {
    background-color: #337ab7 !important;
    color: #ffffff !important;
    border-color: #2e6da4 !important;
    font-size: 11px !important;
    padding: 4px 10px !important;
}

.sh-btn-complete:hover {
    background-color: #286090 !important;
}

/* ---------- Pagination ---------- */
.sh-pagination {
    margin-top: 16px;
    text-align: center;
}

.sh-pagination .button {
    margin: 0 2px;
}

/* ---------- Cancel Booking Button ---------- */
.sh-booking-wrap .sh-step-nav .sh-btn-cancel-booking,
.sh-booking-wrap .sh-step-nav .sh-btn-cancel-booking:visited,
.sh-booking-wrap .sh-step-nav .sh-btn-cancel-booking:link {
    display: inline-block !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background-color: transparent !important;
    color: #999999 !important;
    border: 2px solid #cccccc !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    text-align: center !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.sh-booking-wrap .sh-step-nav .sh-btn-cancel-booking:hover {
    background-color: #d9534f !important;
    border-color: #d9534f !important;
    color: #ffffff !important;
    text-decoration: none !important;
}
