/* LR Builder Calendar Styles */
.lrbc-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    z-index: 10;
}

.lrbc-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #4b5563;
    border-radius: 50%;
    animation: lrbcspin 1s linear infinite;
}

.lrbc-loading-text {
    font-size: 14px;
    color: #4b5563;
}

@keyframes lrbcspin {
    to {
        transform: rotate(360deg);
    }
}

.lrbc-event-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 14px;
}

.lrbc-s-row {
    margin: 2px 0;
}

.lrbc-note-warning {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #7c2d12;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 10px 0;
    font-size: 14px;
}

.lrbc-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.lrbc-modal.open {
    display: block;
}

.lrbc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.lrbc-modal-dialog {
    position: relative;
    max-width: 520px;
    margin: 10vh auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px 20px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.lrbc-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.lrbc-modal-close:hover {
    color: #111827;
}

.lrbc-field {
    margin-bottom: 12px;
}

.lrbc-field label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
}

.lrbc-field label span {
    color: #dc2626;
}

.lrbc-field input,
.lrbc-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.lrbc-field input:focus,
.lrbc-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.lrbc-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.lrbc-btn {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.lrbc-btn:hover {
    background: #1d4ed8;
}

.lrbc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lrbc-btn.ghost {
    background: #f3f4f6;
    color: #111827;
}

.lrbc-btn.ghost:hover {
    background: #e5e7eb;
}

.lrbc-form-status {
    margin-top: 8px;
    font-size: 14px;
    padding: 8px;
    border-radius: 6px;
}

.lrbc-form-status:empty {
    display: none;
}

/* Error and success states */
.lrbc-error {
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
}

.lrbc-empty {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}
