/* Website Builder — Senior UI/UX Styles (Radzen Admin Shell) */

.wb-status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.wb-status-left,
.wb-status-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.wb-status-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.wb-status-meta {
    font-size: 0.8125rem;
    color: #64748b;
}

.wb-subdomain-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e40af;
}

.wb-card {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.wb-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.wb-section-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.wb-section-desc {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.45;
}

.wb-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1.75rem 0 1.5rem;
}

.wb-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
}

.wb-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
}

.wb-help {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

.wb-color-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.wb-color-picker {
    width: 44px;
    height: 38px;
    padding: 2px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.wb-upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.35rem;
}

.wb-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wb-upload-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.wb-check-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.wb-check-label {
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}

.wb-loading-text {
    margin-top: 1rem;
    color: #64748b;
}

/* Template Picker (Phase 10) */
.wb-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 0.875rem;
    margin-top: 0.25rem;
}

.wb-template-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.wb-template-card:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.wb-template-card.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wb-template-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.wb-template-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}

.wb-template-plan {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
}

.wb-template-card.is-selected .wb-template-plan {
    background: #2563eb;
    color: #ffffff;
}

.wb-template-desc {
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.45;
}

/* Repeater Item Cards (Products, Steps, Branches, FAQs, Testimonials) */
.wb-item-card {
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.wb-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e2e8f0;
}

.wb-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
}

.wb-step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #1e40af;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.wb-empty-state {
    padding: 2rem 1.5rem;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    font-size: 0.875rem;
}

/* Layout Order List */
.wb-layout-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.wb-layout-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.wb-layout-row.is-hidden {
    opacity: 0.6;
}

.wb-layout-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.wb-layout-row.is-hidden .wb-layout-name-text {
    text-decoration: line-through;
    color: #64748b;
}

.wb-layout-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* History Table */
.wb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.wb-table th {
    text-align: left;
    padding: 0.65rem 0.75rem;
    color: #64748b;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
}

.wb-table td {
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.wb-table th.wb-right,
.wb-table td.wb-right {
    text-align: right;
}

/* Preview Frame */
.wb-preview-stage {
    padding: 1.5rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

/* Tabs Polish — keep all 10 tabs cleanly aligned in a single-line scrollable bar */
.wb-tabs .rz-tabview-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.25rem;
    padding-bottom: 2px;
}

.wb-tabs .rz-tabview-nav li a {
    white-space: nowrap;
    padding: 0.65rem 0.9rem;
    font-size: 0.8125rem;
}

/* KPI Strip & Filter Toolbar (Website Products, Online Applications) */
.wb-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.wb-kpi-card {
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wb-kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.wb-kpi-value {
    margin-top: 0.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.wb-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    margin-bottom: 1.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    color: #1e3a8a;
    font-size: 0.84rem;
    line-height: 1.5;
}

.wb-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wb-search-wrap {
    flex: 1 1 260px;
    max-width: 380px;
}

.wb-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.wb-pill {
    padding: 0.375rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wb-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.wb-pill.is-active {
    background: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
}

/* Master-Detail Split Layout */
.wb-split-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.25fr);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .wb-split-grid {
        grid-template-columns: 1fr;
    }
}

.wb-master-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.wb-master-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.wb-master-row:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.wb-master-row.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wb-master-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.wb-master-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.wb-master-meta {
    font-size: 0.78rem;
    color: #64748b;
}

.wb-master-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.wb-detail-card {
    position: sticky;
    top: 1rem;
    padding: 1.5rem !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

.wb-detail-placeholder {
    padding: 3rem 1.75rem;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
}

.wb-detail-placeholder-title {
    margin: 0.75rem 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
}

.wb-detail-placeholder-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
}

.wb-kv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.wb-kv-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wb-kv-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
}

.wb-kv-val {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.wb-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}
