/* Dr. Marco Booking — Frontend Styles */
.dmb-widget {
    display: flex;
    gap: 0;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
}

/* Left Panel */
.dmb-panel-left {
    width: 280px;
    min-width: 220px;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    padding: 32px 24px;
    flex-shrink: 0;
}

.dmb-avatar {
    margin-bottom: 14px;
}

.dmb-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8e8e8;
}

.dmb-doctor-name {
    font-size: 13px;
    color: #777;
    margin: 0 0 4px;
}

.dmb-event-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
    line-height: 1.3;
}

.dmb-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin: 0 0 12px;
    line-height: 1.4;
}

.dmb-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #1a3a5c;
}

.dmb-description {
    font-size: 13px;
    color: #777;
    margin-top: 16px;
    line-height: 1.5;
}

/* Right Panel */
.dmb-panel-right {
    flex: 1;
    padding: 32px 28px;
    min-height: 420px;
}

.dmb-step-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px;
}

.dmb-hidden {
    display: none !important;
}

/* Back button */
.dmb-back-btn {
    background: none;
    border: none;
    color: #1a3a5c;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dmb-back-btn:hover { text-decoration: underline; }

/* Calendar */
.dmb-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

#dmb-month-label {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    text-transform: capitalize;
}

.dmb-nav-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.dmb-nav-btn:hover { background: #f5f5f5; }
.dmb-nav-btn:disabled { opacity: .35; cursor: default; }

.dmb-cal-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 6px;
}

.dmb-cal-header span {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
    padding: 4px 0;
}

.dmb-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.dmb-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    cursor: default;
    color: #ccc;
    background: transparent;
    border: none;
    font-family: inherit;
}

.dmb-day.dmb-day-empty { visibility: hidden; }

.dmb-day.dmb-day-available {
    color: #1a1a1a;
    cursor: pointer;
    font-weight: 500;
}

.dmb-day.dmb-day-available:hover {
    background: #e8f0ff;
    color: #1a3a5c;
}

.dmb-day.dmb-day-selected {
    background: #1a3a5c;
    color: #fff !important;
}

.dmb-day.dmb-day-today {
    border: 2px solid #1a3a5c;
    color: #1a3a5c;
}

.dmb-cal-loading {
    text-align: center;
    color: #aaa;
    padding: 30px;
    font-size: 14px;
}

/* Time slots */
.dmb-slots-subtitle {
    font-size: 14px;
    color: #777;
    margin: 0 0 16px;
}

.dmb-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.dmb-slot-btn {
    padding: 10px 20px;
    border: 1px solid #1a3a5c;
    border-radius: 6px;
    background: #fff;
    color: #1a3a5c;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

.dmb-slot-btn:hover, .dmb-slot-btn.selected {
    background: #1a3a5c;
    color: #fff;
}

.dmb-no-slots {
    color: #aaa;
    font-size: 14px;
}

/* Timezone label */
.dmb-tz-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #aaa;
    margin-top: 16px;
}

.dmb-tz-label svg {
    width: 14px;
    height: 14px;
}

/* Summary box */
.dmb-selected-summary {
    background: #f0f4ff;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #1a3a5c;
    margin-bottom: 20px;
    font-weight: 500;
}

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

.dmb-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}

.dmb-form-group input,
.dmb-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
}

.dmb-form-group input:focus,
.dmb-form-group textarea:focus {
    outline: none;
    border-color: #1a3a5c;
    box-shadow: 0 0 0 2px rgba(26,58,92,.1);
}

.dmb-form-group input.dmb-error,
.dmb-form-group textarea.dmb-error {
    border-color: #e53935;
}

.dmb-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.dmb-form-error {
    background: #fff3f3;
    border: 1px solid #f8c0c0;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    color: #c62828;
    margin-bottom: 16px;
}

.dmb-submit-btn {
    width: 100%;
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}

.dmb-submit-btn:hover { background: #15304d; }
.dmb-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

/* Confirmation */
.dmb-confirmation {
    text-align: center;
    padding: 20px 0;
}

.dmb-check-icon {
    width: 64px;
    height: 64px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.dmb-check-icon svg {
    width: 30px;
    height: 30px;
    color: #2e7d32;
}

.dmb-confirmation h3 {
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.dmb-confirmation-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px 20px;
    text-align: left;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.dmb-confirmation-details strong {
    color: #1a1a1a;
}

.dmb-email-notice {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

.dmb-confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.dmb-cancel-link {
    font-size: 13px;
    color: #aaa;
    text-decoration: none;
}

.dmb-cancel-link:hover { color: #e53935; }

.dmb-new-booking-btn {
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.dmb-new-booking-btn:hover { background: #15304d; }

/* Admin CSS (also loaded here for simplicity) */
.dmb-admin-wrap h1 { margin-bottom: 16px; }

.dmb-notice-box {
    background: #f0f6ff;
    border: 1px solid #c5d8f0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.dmb-notice-box h3 { margin-top: 0; }
.dmb-notice-box ol, .dmb-notice-box ul { margin: 8px 0 0 20px; line-height: 1.8; }

.dmb-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.dmb-badge-success { background: #e8f5e9; color: #2e7d32; }
.dmb-badge-danger  { background: #ffebee; color: #c62828; }
.dmb-badge-warning { background: #fff8e1; color: #e65100; }

.dmb-availability-table .dmb-slot-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    margin-right: 8px;
}

.dmb-time-input { width: 110px; }

.dmb-no-availability { color: #aaa; font-size: 13px; }

/* Responsive */
@media (max-width: 640px) {
    .dmb-widget { flex-direction: column; }
    .dmb-panel-left { width: 100%; border-right: none; border-bottom: 1px solid #e8e8e8; padding: 20px; }
    .dmb-panel-right { padding: 20px; }
}
