/**
 * SBC Citas - Frontend Booking Styles
 */

.sbc-citas-booking-form {
    max-width: 500px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.sbc-citas-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.sbc-citas-field {
    margin-bottom: 16px;
}

.sbc-citas-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.sbc-citas-field input[type="text"],
.sbc-citas-field input[type="email"],
.sbc-citas-field input[type="date"],
.sbc-citas-field select {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.sbc-citas-datepicker {
    cursor: pointer;
}

.sbc-citas-field input:focus,
.sbc-citas-field select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.sbc-citas-field select:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.sbc-citas-loading {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.sbc-citas-submit {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #1e40af;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.sbc-citas-submit:hover {
    background: #1e3a8a;
}

.sbc-citas-submit:active {
    transform: scale(0.98);
}

.sbc-citas-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.sbc-citas-message {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 14px;
}

.sbc-citas-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sbc-citas-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Lista de citas del usuario */
.sbc-citas-list {
    max-width: 700px;
}

.sbc-citas-list h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.sbc-citas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sbc-citas-table th,
.sbc-citas-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.sbc-citas-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.sbc-citas-table tr:last-child td {
    border-bottom: none;
}

.sbc-citas-estado-cancelled {
    opacity: 0.6;
}

.sbc-citas-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.sbc-citas-badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.sbc-citas-badge-done {
    background: #d1fae5;
    color: #065f46;
}

.sbc-citas-badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 600px) {
    .sbc-citas-booking-form {
        padding: 16px;
    }

    .sbc-citas-table {
        font-size: 13px;
    }

    .sbc-citas-table th,
    .sbc-citas-table td {
        padding: 8px;
    }
}