/* Styles généraux du widget et de l'admin - CSS natif, design carte slide/fade */

body.rw-admin-body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f3f4f6;
}

.rw-hidden-select {
    display: none;
}

.rw-service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.rw-service-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease, background 0.2s ease;
}

.rw-service-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.20);
    transform: translateY(-1px);
}

.rw-service-card-selected {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff, #ecfeff);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.rw-service-card-image-wrapper {
    width: 100%;
    max-height: 90px;
    overflow: hidden;
    border-radius: 8px;
}

.rw-service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rw-service-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rw-service-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.rw-service-card-meta {
    font-size: 12px;
    color: #6b7280;
}

.reservation-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #111827;
}

.rw-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
}

.rw-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
}

.rw-step {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 8px 4px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #4b5563;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.rw-step-active {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}

.rw-step-panel {
    opacity: 0;
    transform: translateX(16px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.rw-step-panel-active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.rw-field {
    margin-bottom: 14px;
}

.rw-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.rw-field input,
.rw-field select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rw-field input:focus,
.rw-field select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25);
}

.rw-field-inline {
    display: flex;
    gap: 12px;
}

.rw-field-inline .rw-field {
    flex: 1;
}

.rw-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.rw-btn {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.rw-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35);
}

.rw-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45);
}

.rw-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.rw-btn-secondary:hover {
    background: #d1d5db;
}

.rw-message {
    margin-top: 8px;
    font-size: 13px;
}

.rw-message-error {
    color: #b91c1c;
}

.rw-message-success {
    color: #15803d;
}

.rw-text-muted {
    font-size: 13px;
    color: #6b7280;
}

.rw-slots {
    min-height: 44px;
}

.rw-slots-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rw-slot-btn {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.rw-slot-btn:hover {
    background: #e5e7eb;
}

.rw-slot-selected {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4);
}

.rw-summary {
    margin-top: 10px;
}

.rw-summary-box {
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px dashed #d1d5db;
}

.rw-summary-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rw-summary-image-wrapper {
    margin-top: 8px;
}

.rw-service-image-summary {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

/* Admin */

.rw-admin-topbar {
    background: #111827;
    color: #f9fafb;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rw-admin-logo {
    font-weight: 600;
}

.rw-admin-user {
    font-size: 13px;
    margin-right: 12px;
}

.rw-admin-logout {
    color: #f97316;
    text-decoration: none;
    font-size: 13px;
}

.rw-admin-container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px;
}

.rw-admin-filters {
    margin-bottom: 16px;
}

.rw-admin-table-card h2 {
    margin-top: 0;
    font-size: 18px;
}

.rw-table-wrapper {
    overflow-x: auto;
}

.rw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rw-table th,
.rw-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.rw-table th {
    background: #f3f4f6;
    font-weight: 600;
}

.rw-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
}

.rw-badge-pending {
    background: #f97316;
    color: #fff7ed;
}

.rw-badge-accepted {
    background: #16a34a;
    color: #ecfdf3;
}

.rw-badge-rejected {
    background: #dc2626;
    color: #fef2f2;
}

.rw-inline-form {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-bottom: 4px;
}

.rw-inline-form-reschedule input[type="date"],
.rw-inline-form-reschedule input[type="time"] {
    font-size: 12px;
    padding: 2px 4px;
}

.rw-btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

.rw-btn-success {
    background: #16a34a;
    color: #ecfdf5;
}

.rw-btn-danger {
    background: #dc2626;
    color: #fef2f2;
}

.rw-admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rw-admin-card {
    max-width: 360px;
    width: 100%;
}

.rw-admin-title {
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
}

.rw-service-image-admin {
    max-width: 80px;
    max-height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.rw-field-submit {
    align-self: flex-end;
}

@media (max-width: 640px) {
    .rw-field-inline {
        flex-direction: column;
    }

    .rw-steps {
        flex-direction: column;
    }
}
