/* ================================================================
   MyCleanCRM — Client Portal Styles
   ================================================================ */

/* Reset / scope */
#mycleancrm-wrap *,
#mycleancrm-wrap *::before,
#mycleancrm-wrap *::after {
    box-sizing: border-box;
}

.mclean-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 540px;
    margin: 0 auto;
    padding: 16px;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------------------
   Card
   ---------------------------------------------------------------- */
.mclean-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 12px;
}

.mclean-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* ----------------------------------------------------------------
   Login / OTP
   ---------------------------------------------------------------- */
.mclean-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.mclean-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.2;
}

.mclean-title-sm {
    font-size: 18px;
}

.mclean-sub {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ----------------------------------------------------------------
   Inputs
   ---------------------------------------------------------------- */
.mclean-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #111;
    background: #fff;
    margin-bottom: 12px;
    transition: border-color 0.15s;
    outline: none;
}

.mclean-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.mclean-otp-input {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 10px;
    padding: 14px 10px;
}

.mclean-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.mclean-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
    line-height: 1.4;
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
}

.mclean-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mclean-btn-primary {
    background: #2563eb;
    color: #fff;
}

.mclean-btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.mclean-btn-danger {
    background: #dc2626;
    color: #fff;
}

.mclean-btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

.mclean-btn-ghost {
    background: transparent;
    color: #374151;
    border: 1.5px solid #d1d5db;
}

.mclean-btn-ghost:hover:not(:disabled) {
    background: #f3f4f6;
}

.mclean-btn-sm {
    font-size: 13px;
    padding: 7px 14px;
    width: auto;
    margin-bottom: 0;
}

.mclean-btn-xs {
    font-size: 12px;
    padding: 5px 12px;
    width: auto;
    margin-bottom: 0;
}

.mclean-btn-wide {
    display: block;
    width: 100%;
}

/* ----------------------------------------------------------------
   Messages
   ---------------------------------------------------------------- */
.mclean-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.mclean-msg-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.mclean-msg-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* ----------------------------------------------------------------
   Dashboard top bar
   ---------------------------------------------------------------- */
.mclean-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mclean-topbar .mclean-title {
    margin-bottom: 2px;
}

.mclean-topbar .mclean-sub {
    margin-bottom: 0;
}

/* ----------------------------------------------------------------
   Section titles
   ---------------------------------------------------------------- */
.mclean-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 20px 0 8px;
}

/* ----------------------------------------------------------------
   Booking cards
   ---------------------------------------------------------------- */
.mclean-booking {
    padding: 16px 20px;
}

.mclean-booking-past {
    opacity: 0.7;
}

.mclean-booking-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.mclean-booking-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mclean-date {
    font-weight: 700;
    font-size: 15px;
}

.mclean-time {
    font-size: 13px;
    color: #6b7280;
}

.mclean-cleaner {
    font-size: 13px;
    color: #374151;
}

.mclean-booking-notes {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.mclean-booking-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   Status badges
   ---------------------------------------------------------------- */
.mclean-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.mclean-badge-confirmed  { background: #dcfce7; color: #166534; }
.mclean-badge-pending    { background: #fef9c3; color: #854d0e; }
.mclean-badge-rescheduled{ background: #e0e7ff; color: #3730a3; }
.mclean-badge-completed  { background: #f3f4f6; color: #374151; }
.mclean-badge-cancelled  { background: #fee2e2; color: #991b1b; }
.mclean-badge-paused     { background: #f3f4f6; color: #6b7280; }

/* ----------------------------------------------------------------
   Global actions section
   ---------------------------------------------------------------- */
.mclean-global-actions {
    margin: 20px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ----------------------------------------------------------------
   Past bookings details/summary
   ---------------------------------------------------------------- */
.mclean-past {
    margin-top: 8px;
}

.mclean-past summary {
    list-style: none;
    user-select: none;
}

.mclean-past summary::-webkit-details-marker { display: none; }

/* ----------------------------------------------------------------
   Modals
   ---------------------------------------------------------------- */
.mclean-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
}

.mclean-modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.mclean-modal-box h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.mclean-modal-box p {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.5;
}

.mclean-modal-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mclean-modal-danger h3 {
    color: #991b1b;
}

body.mclean-modal-open {
    overflow: hidden;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
    .mclean-card {
        padding: 20px 16px;
    }

    .mclean-booking-actions {
        flex-direction: column;
    }

    .mclean-booking-actions .mclean-btn-sm {
        width: 100%;
    }
}
