/* ============================================================
   OneStone FormBuilder — Custom UI Enhancement
   Version: 1.0.0 | Date: 2026-06-08
   Loads AFTER all vendor/framework CSS to override safely.
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Custom Properties (Brand Tokens)
   ---------------------------------------------------------- */
:root {
    /* Primary palette */
    --os-primary: #6C5CE7;
    --os-primary-hover: #5A4BD1;
    --os-primary-light: #EDE9FE;
    --os-primary-rgb: 108, 92, 231;

    /* Secondary */
    --os-secondary: #00B4D8;
    --os-secondary-hover: #0096B7;
    --os-secondary-light: #E0F7FA;

    /* Accent (CTA) */
    --os-accent: #E84393;
    --os-accent-hover: #D63384;

    /* Neutrals */
    --os-bg: #F8F9FC;
    --os-surface: #FFFFFF;
    --os-text: #1E293B;
    --os-text-secondary: #64748B;
    --os-text-muted: #94A3B8;
    --os-border: #E2E8F0;
    --os-border-focus: var(--os-primary);

    /* Semantic */
    --os-success: #10B981;
    --os-warning: #F59E0B;
    --os-danger: #EF4444;
    --os-info: #3B82F6;

    /* Spacing */
    --os-radius-sm: 6px;
    --os-radius: 10px;
    --os-radius-lg: 16px;
    --os-radius-xl: 24px;

    /* Shadows */
    --os-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --os-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --os-shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --os-shadow-focus: 0 0 0 3px rgba(var(--os-primary-rgb), 0.25);

    /* Transitions */
    --os-transition: 200ms ease;
    --os-transition-slow: 300ms ease;
}

/* Dark mode tokens */
[data-theme="dark"],
.dark-mode {
    --os-bg: #0F172A;
    --os-surface: #1E293B;
    --os-text: #F1F5F9;
    --os-text-secondary: #94A3B8;
    --os-text-muted: #64748B;
    --os-border: #334155;
    --os-shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --os-shadow: 0 4px 6px rgba(0,0,0,0.25);
}

/* ----------------------------------------------------------
   2. Global Typography & Spacing
   ---------------------------------------------------------- */
body {
    color: var(--os-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------------------------
   3. Form Input Enhancements (Phase 1.3 + 2.3)
   ---------------------------------------------------------- */

/* Taller, more touchable inputs */
.form-control,
.form-select,
select.form-control {
    min-height: 44px;
    padding: 10px 14px;
    border: 1.5px solid var(--os-border);
    border-radius: var(--os-radius-sm);
    font-size: 15px;
    transition: border-color var(--os-transition), box-shadow var(--os-transition);
    background-color: var(--os-surface);
}

.form-control:focus,
.form-select:focus,
select.form-control:focus {
    border-color: var(--os-primary);
    box-shadow: var(--os-shadow-focus);
    outline: none;
}

/* Error state on inputs */
.form-control.is-invalid,
.form-control.error,
.has-error .form-control {
    border-color: var(--os-danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Input labels */
.form-group label,
.form-label {
    font-weight: 500;
    font-size: 14px;
    color: var(--os-text);
    margin-bottom: 6px;
    display: block;
}

/* Required field indicator */
.form-group label .text-danger,
.form-group label .required {
    color: var(--os-danger);
    font-weight: 600;
}

/* Helper/error text below field */
.invalid-feedback,
.error-message,
.text-danger.field-error {
    font-size: 13px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ----------------------------------------------------------
   4. Button Enhancements (Phase 1.5)
   ---------------------------------------------------------- */

/* Global button polish */
.btn {
    border-radius: var(--os-radius-sm);
    font-weight: 500;
    transition: all var(--os-transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn:active {
    transform: scale(0.97);
}

/* Primary button */
.btn-primary {
    background: var(--os-primary);
    border-color: var(--os-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--os-primary-hover);
    border-color: var(--os-primary-hover);
    box-shadow: var(--os-shadow);
}

/* Success button */
.btn-success {
    background: var(--os-success);
    border-color: var(--os-success);
}

/* Danger button */

.btn-outline-danger {
    color: var(--os-danger);
}

/* Loading state for buttons */
.btn.btn-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.btn.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-top: -9px;
    margin-left: -9px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: os-spin 0.6s linear infinite;
}

@keyframes os-spin {
    to { transform: rotate(360deg); }
}

/* ----------------------------------------------------------
   5. Card Enhancements
   ---------------------------------------------------------- */
.card {
    border: 1px solid var(--os-border);
    border-radius: var(--os-radius);
    box-shadow: var(--os-shadow-sm);
    transition: box-shadow var(--os-transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--os-shadow);
}

.card-header {
    background: var(--os-surface);
    border-bottom: 1px solid var(--os-border);
    font-weight: 600;
}

/* Dashboard stat cards */
.card .card-body .text-muted {
    color: var(--os-text-secondary) !important;
}

/* ----------------------------------------------------------
   6. Table Enhancements (Phase 1.4 — Action Buttons)
   ---------------------------------------------------------- */

/* Better table styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--os-text-secondary);
    border-bottom: 2px solid var(--os-border);
    padding: 12px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--os-border);
    font-size: 14px;
}

.table tbody tr {
    transition: background-color var(--os-transition);
}

.table tbody tr:hover {
    background-color: rgba(var(--os-primary-rgb), 0.03);
}

.btn-responsive-search { align-items: center; } .btn-responsive-search .btn, .btn-responsive-search form .btn { height: 40px; padding: 6px 16px !important; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; } .btn-responsive-search form.d-inline { display: inline-flex !important; align-items: center; } /* Action buttons — larger, with tooltips */
.table .btn-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--os-radius-sm);
    margin: 0 2px;
    font-size: 14px;
    transition: all var(--os-transition);
}

.table .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: var(--os-shadow-sm);
}

/* Tooltip for action buttons */
.table .btn-sm[title],
.table .btn-sm[data-bs-toggle="tooltip"],
.table .btn-sm[data-toggle="tooltip"] {
    position: relative;
}

/* ----------------------------------------------------------
   7. Sidebar Enhancements
   ---------------------------------------------------------- */

/* Smoother sidebar transitions */
.sidenav .sidenav-inner > .sidenav-item > .sidenav-link,
.dash-sidebar .dash-mtext,
.sidebar .nav-link {
    transition: all var(--os-transition);
    border-radius: var(--os-radius-sm);
    margin: 2px 8px;
}

/* Active state */
.dash-sidebar .dash-link.active,
.sidebar .nav-link.active {
    background: var(--os-primary) !important;
    color: #fff !important;
    border-radius: var(--os-radius-sm);
}

/* Hover state */
.dash-sidebar .dash-link:hover,
.sidebar .nav-link:hover {
    background: var(--os-primary-light);
    color: var(--os-primary);
}

/* ----------------------------------------------------------
   8. Form Fill Page — Step Indicator (Phase 2.1)
   ---------------------------------------------------------- */

/* Better step dots */
.step {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: var(--os-border);
    border: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    opacity: 1;
    transition: all var(--os-transition);
}

.step.active {
    background-color: var(--os-primary);
    border-color: var(--os-primary);
    box-shadow: 0 0 0 4px rgba(var(--os-primary-rgb), 0.2);
}

.step.finish {
    background-color: var(--os-success);
    border-color: var(--os-success);
}

/* Step container */
div[style*="text-align:center"] .step,
.text-center .step {
    margin: 0 6px;
}

/* ----------------------------------------------------------
   9. Form Fill Page — Submit Button (Phase 2.2)
   ---------------------------------------------------------- */

/* Larger, more prominent submit button */
#nextBtn,
#prevBtn,
.form-card-body .btn-primary[type="submit"],
button[onclick*="submitForm"] {
    min-height: 48px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--os-radius);
    transition: all var(--os-transition);
    letter-spacing: 0.02em;
}

#nextBtn {
    background: var(--os-primary);
    border-color: var(--os-primary);
    min-width: 160px;
}

#nextBtn:hover {
    background: var(--os-primary-hover);
    border-color: var(--os-primary-hover);
    box-shadow: var(--os-shadow);
    transform: translateY(-1px);
}

#nextBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#prevBtn {
    background: #E2E8F0;
    border-color: #E2E8F0;
    color: var(--os-text);
    min-width: 120px;
}

#prevBtn:hover {
    background: #CBD5E1;
    border-color: #CBD5E1;
}

/* Navigation button container */
div[style*="overflow:auto"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 16px;
    gap: 12px;
}

/* ----------------------------------------------------------
   10. Form Fill Page — Mobile Responsive (Phase 2.4)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    /* Full-width form fields on mobile */
    .form-card-body .form-group,
    .form-card-body .col-md-6,
    .form-card-body .col-lg-6,
    .form-card-body [class*="col-md-"],
    .form-card-body [class*="col-lg-"] {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .form-card-body .form-control {
        font-size: 16px; /* Prevents iOS auto-zoom */
    }

    /* Stack buttons vertically on small screens */
    div[style*="overflow:auto"] {
        flex-direction: column-reverse;
        gap: 8px;
    }

    #nextBtn,
    #prevBtn {
        width: 100%;
    }

    /* Better spacing on mobile */
    .form-card-body {
        padding: 16px 12px;
    }

    /* Action button row scrollable on mobile */
    .table td:last-child {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .form-card-body h4,
    .form-card-body h3 {
        font-size: 18px;
    }

    .step {
        height: 10px;
        width: 10px;
        margin: 0 3px;
    }
}

/* ----------------------------------------------------------
   11. Success Page Enhancement (Phase 2.5)
   ---------------------------------------------------------- */

/* Better success state */
#success_loader {
    padding: 48px 24px;
    animation: os-fadeInUp 0.4s ease-out;
}

#success_loader img {
    max-width: 120px;
    margin-bottom: 24px;
}

#success_loader h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--os-success);
    line-height: 1.4;
}

@keyframes os-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------
   12. Toast / Alert Enhancements
   ---------------------------------------------------------- */

/* Better toast styling */
.toast,
.alert {
    border-radius: var(--os-radius);
    border: none;
    box-shadow: var(--os-shadow-lg);
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border-left: 4px solid var(--os-success);
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border-left: 4px solid var(--os-danger);
}

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
    border-left: 4px solid var(--os-warning);
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border-left: 4px solid var(--os-info);
}

/* ----------------------------------------------------------
   13. Loading Overlay Enhancement
   ---------------------------------------------------------- */
.loading {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    font-size: 0;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--os-border);
    border-top-color: var(--os-primary);
    border-radius: 50%;
    animation: os-spin 0.7s linear infinite;
}

/* ----------------------------------------------------------
   14. Scrollbar Enhancement (Webkit)
   ---------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* ----------------------------------------------------------
   15. Cursor & Interactive Affordance
   ---------------------------------------------------------- */
.btn,
.nav-link,
.sidenav-link,
.dash-link,
.form-check-label,
.custom-switch,
[role="button"],
[onclick],
a[href]:not([href=""]):not([href="#"]) {
    cursor: pointer;
}

/* Focus-visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--os-primary);
    outline-offset: 2px;
}

/* Remove outline for mouse clicks */
:focus:not(:focus-visible) {
    outline: none;
}

/* ----------------------------------------------------------
   16. Reduced Motion Support
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----------------------------------------------------------
   17. Print Styles
   ---------------------------------------------------------- */
@media print {
    .dash-sidebar,
    .dash-header,
    #prevBtn,
    #nextBtn,
    .btn,
    .loading {
        display: none !important;
    }

    .form-card-body {
        padding: 0;
    }
}

/* ----------------------------------------------------------
   18. Dashboard — Stat Cards (Phase 3.1)
   ---------------------------------------------------------- */

/* Stat card number icons — larger with soft rounded bg */
.comp-card .card-body i[class*="ti ti-"] {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--os-radius);
    font-size: 22px;
    transition: transform var(--os-transition);
}

.card-event:hover .comp-card .card-body i[class*="ti ti-"] {
    transform: scale(1.08);
}

/* Stat card big numbers */
.comp-card h3 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

/* Stat card labels */
.comp-card h6.text-muted {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px !important;
}

/* Card-event link resets — remove underline, keep card clickable */
.card-event > a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-event > a:hover {
    text-decoration: none;
}

/* Number card hover lift */
.card-event .number-card {
    transition: transform var(--os-transition), box-shadow var(--os-transition);
}

.card-event:hover .number-card {
    transform: translateY(-3px);
    box-shadow: var(--os-shadow-lg);
}

/* ----------------------------------------------------------
   19. Dashboard — Greeting Card (Phase 3.2)
   ---------------------------------------------------------- */

/* Welcome/greeting card */
.admin-wish-card {
    background: linear-gradient(135deg, var(--os-primary-light) 0%, rgba(var(--os-primary-rgb), 0.05) 100%);
    border-radius: var(--os-radius);
    padding: 24px !important;
}

.admin-wish-card h4#wishing,
.admin-wish-card h4:first-of-type {
    font-size: 20px;
    font-weight: 600;
    color: var(--os-text);
}

.admin-wish-card .text-muted {
    font-size: 18px;
    font-weight: 500;
    color: var(--os-text-secondary) !important;
}

.admin-wish-card p {
    color: var(--os-text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Avatar thumbnail in greeting card */
.admin-wish-card .img-thumbnail.rounded-circle {
    border: 3px solid var(--os-primary);
    padding: 2px;
    box-shadow: 0 0 0 3px rgba(var(--os-primary-rgb), 0.12);
    transition: transform var(--os-transition);
}

.admin-wish-card .img-thumbnail.rounded-circle:hover {
    transform: scale(1.05);
}

/* Quick add button styling */
.quick-add-btn .btn-q-add {
    border-radius: var(--os-radius);
    font-weight: 500;
    padding: 10px 20px;
    transition: all var(--os-transition);
}

.quick-add-btn .btn-q-add:hover {
    transform: translateY(-1px);
    box-shadow: var(--os-shadow-sm);
}

.quick-add-btn .dropdown-menu {
    border-radius: var(--os-radius);
    box-shadow: var(--os-shadow-lg);
    border: 1px solid var(--os-border);
    padding: 8px;
    min-width: 200px;
}

.quick-add-btn .dropdown-item {
    border-radius: var(--os-radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    transition: background var(--os-transition);
}

.quick-add-btn .dropdown-item:hover {
    background: var(--os-primary-light);
    color: var(--os-primary);
}

/* ----------------------------------------------------------
   20. Dashboard — Widget Cards (Phase 3.3)
   ---------------------------------------------------------- */

/* Widget card headers */
.sortable .card .card-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sortable .card .card-header h5 {
    font-size: 15px;
    font-weight: 600;
    color: var(--os-text);
    margin: 0;
}

/* Widget drag handle */
.sortable .handle {
    cursor: grab;
    color: var(--os-text-muted);
    font-size: 16px;
    transition: color var(--os-transition);
}

.sortable .handle:hover {
    color: var(--os-primary);
}

.sortable .handle:active {
    cursor: grabbing;
}

/* Chart containers proper spacing */
.sortable .card-body {
    padding: 16px 20px;
}

/* Draggable cards section */
#draggable-cards {
    margin-top: 8px;
}

/* ----------------------------------------------------------
   21. Dashboard — Page Header (Phase 3.4)
   ---------------------------------------------------------- */

/* Better page header */
.page-header-title h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--os-text);
    letter-spacing: -0.01em;
}

/* Breadcrumb subtle styling */
.breadcrumb {
    font-size: 13px;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--os-text-secondary);
    text-decoration: none;
    transition: color var(--os-transition);
}

.breadcrumb-item a:hover {
    color: var(--os-primary);
}

.breadcrumb-item.active {
    color: var(--os-text-muted);
}

/* ----------------------------------------------------------
   22. Dashboard — Earning Chart Card (Phase 3.5)
   ---------------------------------------------------------- */

/* Chart card header with date range */
.chartRange {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--os-bg);
    border-radius: var(--os-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--os-text-secondary);
    cursor: pointer;
    border: 1px solid var(--os-border);
    transition: all var(--os-transition);
}

.chartRange:hover {
    border-color: var(--os-primary);
    color: var(--os-primary);
}

/* ----------------------------------------------------------
   23. Pricing Cards — Equal Height & Polish
   ---------------------------------------------------------- */

/* Make pricing row use flexbox stretch */
.pricing-plans-sec .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.pricing-plans-sec .row > [class*="col-"],
.pricing-plans-sec .row > .col-lg-4,
.pricing-plans-sec .row > .col-md-6,
.pricing-plans-sec .row > .col-12 {
    display: flex !important;
    align-items: stretch !important;
    padding-top: 10px !important;
}

/* Each pricing card fills full column height */
.basic-plans {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: 100% !important;
    border-radius: var(--os-radius);
    border: 1px solid var(--os-border);
    box-shadow: var(--os-shadow-sm);
    transition: transform var(--os-transition), box-shadow var(--os-transition);
    overflow: hidden;
    background: var(--os-surface);
}

.basic-plans:hover {
    transform: translateY(-4px);
    box-shadow: var(--os-shadow-lg);
}

/* Top section grows to fill available space, pushing bottom to align */
.basic-plans-top {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 28px 24px 16px;
}

.basic-plans-top h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--os-text);
    margin-bottom: 20px;
}

.basic-plans-top ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.basic-plans-top ul li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--os-text);
}

.basic-plans-top ul li .plan-card-icon {
    flex-shrink: 0;
    margin-right: 10px;
}

.basic-plans-top ul li .plan-card-icon svg {
    width: 22px;
    height: 22px;
}

.basic-plans-top ul li .plan-card-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Bottom section always at the bottom, same height across cards */
.basic-plans-bottom {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--os-border);
    background: var(--os-bg);
}

.basic-plans-bottom .basic-price-left p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--os-text-muted);
    margin-bottom: 2px;
}

.basic-plans-bottom .basic-price-left ins {
    font-size: 20px;
    font-weight: 700;
    color: var(--os-text);
    text-decoration: none;
}

/* Subscribe / Free button */
.basic-plans-bottom .subscribe_plan {
    border-radius: var(--os-radius-sm) !important;
    font-weight: 600;
    padding: 10px 24px;
    font-size: 14px;
    transition: all var(--os-transition);
}

.basic-plans-bottom .subscribe_plan:hover {
    transform: translateY(-1px);
    box-shadow: var(--os-shadow);
}

.basic-plans-bottom .subscribe_plan,
.basic-plans-bottom .subscribe_plan:hover,
.basic-plans-bottom .subscribe_plan:focus,
.basic-plans-bottom .subscribe_plan:active,
.basic-plans-bottom .subscribe_plan:visited {
    color: #fff !important;
    text-decoration: none !important;
}

.basic-plans-bottom .subscribe_plan:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Section title */
.pricing-plans-sec .section-title h2 {
    font-size: 28px;
    font-weight: 700;
}

.pricing-plans-sec .section-title p {
    color: var(--os-text-secondary);
    max-width: 600px;
    margin: 8px auto 0;
}

@media (max-width: 768px) {
    .pricing-plans-sec .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .basic-plans-top {
        padding: 20px 16px 12px;
    }

    .basic-plans-bottom {
        padding: 14px 16px 16px;
    }
}

/* ----------------------------------------------------------
   24. Dashboard — Empty State (Phase 3.6)
   ---------------------------------------------------------- */

/* Better empty widget state */
.card-event .dash-card-responsive .admin-wish-card:only-child {
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ----------------------------------------------------------
   24. Dashboard — Mobile Responsive (Phase 3.7)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    /* Stat cards stack better */
    .card-event.col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .comp-card h3 {
        font-size: 22px;
    }

    .comp-card h6.text-muted {
        font-size: 11px;
    }

    .comp-card .card-body i[class*="ti ti-"] {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* Greeting card adjusts */
    .admin-wish-card h4#wishing {
        font-size: 17px;
    }

    .page-header-title h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .card-event.col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .comp-card h3 {
        font-size: 20px;
    }
}

/* ----------------------------------------------------------
   25. FAQ Section — Compact Full-Width Accordion (Phase 3)
   ---------------------------------------------------------- */

.home-faqs-sec {
    padding: 50px 0 40px !important;
    background: var(--os-bg);
}

/* Stack layout: title on top, accordion full-width below */
.home-faqs-sec > .container > .row {
    display: block !important;
}

/* Left column → becomes centered header */
.home-faqs-sec > .container > .row > .col-md-6.col-12:first-child {
    max-width: 100% !important;
    width: 100% !important;
    flex: none !important;
    text-align: center !important;
    margin-bottom: 28px;
}

.home-faqs-sec .section-title h2,
.home-faqs-sec h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--os-text);
    margin-bottom: 6px;
}

/* Hide "View All FAQs" button — accordion is already full */
.home-faqs-sec > .container > .row > .col-md-6.col-12:first-child .btn {
    display: none !important;
}

/* Right column → full-width accordion */
.home-faqs-sec > .container > .row > .col-md-6.col-12:last-child {
    max-width: 100% !important;
    width: 100% !important;
    flex: none !important;
}

/* Two-column grid for accordion items on desktop */
.home-faqs-sec .faqs-right-div {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

/* FAQ accordion items — compact clean cards */
.home-faqs-sec .faqs-right-div .set {
    border: 1px solid var(--os-border) !important;
    border-radius: var(--os-radius) !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    transition: box-shadow var(--os-transition), border-color var(--os-transition);
    background: var(--os-surface);
    overflow: hidden;
}

.home-faqs-sec .faqs-right-div .set:hover {
    box-shadow: var(--os-shadow-sm);
    border-color: var(--os-primary) !important;
}

/* Question link — the clickable header */
.home-faqs-sec .faqs-right-div .set > a.nav-label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 14px;
    color: var(--os-text) !important;
    text-decoration: none !important;
    padding: 14px 16px;
    cursor: pointer;
    transition: color var(--os-transition), background var(--os-transition);
    line-height: 1.4;
}

.home-faqs-sec .faqs-right-div .set > a.nav-label:hover {
    color: var(--os-primary) !important;
    background: rgba(99, 102, 241, 0.04);
}

/* Chevron rotation when open */
.home-faqs-sec .faqs-right-div .set > a.nav-label::after {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.25s ease;
}

/* Rotate chevron when accordion item is open */
.home-faqs-sec .faqs-right-div .set.active > a.nav-label::after,
.home-faqs-sec .faqs-right-div .set > a.nav-label[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Hide vendor chevron/arrow since we added our own */
.home-faqs-sec .faqs-right-div .set > a.nav-label > i,
.home-faqs-sec .faqs-right-div .set > a.nav-label > svg,
.home-faqs-sec .faqs-right-div .set > a.nav-label > .chevron {
    display: none !important;
}

/* Answer content area */
.home-faqs-sec .faqs-right-div .set .nav-list,
.home-faqs-sec .faqs-right-div .set .content {
    padding: 0 16px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--os-text-secondary);
}

.home-faqs-sec .faqs-right-div .set .nav-list p,
.home-faqs-sec .faqs-right-div .set .content p {
    margin: 0;
    font-size: 13px;
    color: var(--os-text-secondary);
}

/* Mobile: single column */
@media (max-width: 768px) {
    .home-faqs-sec .faqs-right-div {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ----------------------------------------------------------
   26. Footer — Layout & Organisation (Phase 3)
   ---------------------------------------------------------- */

.site-footer {
    padding: 50px 0 30px !important;
    background: var(--os-bg) !important;
    border-top: 1px solid var(--os-border);
}

/* Footer grid — even spacing */
.site-footer .footer-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start;
    gap: 0;
}

/* Logo + description column */
.site-footer .footer-row > .col-6.footer-link {
    flex: 0 0 40% !important;
    max-width: 40% !important;
    text-align: left !important;
    padding-right: 30px;
}

/* Company & Support columns */
.site-footer .footer-row > .footer-col.col-md-6 {
    flex: 0 0 20% !important;
    max-width: 20% !important;
}

/* Badge column (was .img-fluid div) */
.site-footer .footer-row > .img-fluid {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
}

/* Footer logo */
.site-footer .footer-logo img {
    max-width: 180px;
    height: auto;
}

/* Footer description */
.site-footer .footer-widget p {
    color: var(--os-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
}

/* Footer headings */
.site-footer .footer-widget h4,
.site-footer .footer-widget h5,
.site-footer .footer-widget h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--os-text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Footer links */
.site-footer .footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-widget ul li {
    margin-bottom: 8px;
}

.site-footer .footer-widget ul li a {
    color: var(--os-text-secondary) !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: color var(--os-transition);
}

.site-footer .footer-widget ul li a:hover {
    color: var(--os-primary) !important;
}

/* Social icons */
.site-footer .social-icon {
    display: inline-flex;
    margin-right: 8px;
}

.site-footer .social-icon img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: transform var(--os-transition), opacity var(--os-transition);
    opacity: 0.8;
}

.site-footer .social-icon img:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* Secure badge — clean container that works in light & dark */
.site-footer .footer-row > .img-fluid {
    padding-top: 5px !important;
}

.site-footer .img-fluid img,
.site-footer img[alt="secure.png"] {
    max-width: 150px !important;
    height: auto !important;
    border-radius: var(--os-radius);
    padding: 8px;
    background: #fff !important;
    border: 1px solid var(--os-border);
}

/* ----------------------------------------------------------
   27. Footer Bottom — Copyright Bar
   ---------------------------------------------------------- */

.footer-bottom {
    border-top: 1px solid var(--os-border) !important;
    margin-top: 30px !important;
    padding: 20px 0 !important;
    background: var(--os-primary) !important;
    border-radius: 0 !important;
}

.footer-bottom p {
    font-size: 13px;
    color: #fff !important;
    margin: 0;
}

.footer-bottom a {
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

/* ----------------------------------------------------------
   28. Dark Mode — Footer & FAQ & Landing Page
   ---------------------------------------------------------- */

.dark-mode .site-footer {
    background: #1a1d2e !important;
    border-top-color: rgba(255,255,255,0.08) !important;
}

.dark-mode .site-footer .footer-widget h4,
.dark-mode .site-footer .footer-widget h5,
.dark-mode .site-footer .footer-widget h3 {
    color: #e2e8f0 !important;
}

.dark-mode .site-footer .footer-widget p {
    color: #94a3b8 !important;
}

.dark-mode .site-footer .footer-widget ul li a {
    color: #94a3b8 !important;
}

.dark-mode .site-footer .footer-widget ul li a:hover {
    color: var(--os-primary) !important;
}

/* Dark mode badge — white card container with subtle border */
.dark-mode .site-footer .img-fluid img,
.dark-mode .site-footer img[alt="secure.png"] {
    background: rgba(255,255,255,0.95) !important;
    border-color: rgba(255,255,255,0.12) !important;
}

/* Dark mode footer bottom */
.dark-mode .footer-bottom {
    border-top-color: rgba(255,255,255,0.08) !important;
    background: #151827 !important;
}

.dark-mode .footer-bottom p {
    color: #94a3b8 !important;
}

.dark-mode .footer-bottom a {
    color: #818cf8 !important;
}

/* Dark mode FAQ section */
.dark-mode .home-faqs-sec {
    background: #1e2235 !important;
}

.dark-mode .home-faqs-sec h2 {
    color: #e2e8f0 !important;
}

.dark-mode .home-faqs-sec .faqs-right-div .set {
    background: #252a3e !important;
    border-color: rgba(255,255,255,0.08) !important;
}

.dark-mode .home-faqs-sec .faqs-right-div .set:hover {
    border-color: #818cf8 !important;
}

.dark-mode .home-faqs-sec .faqs-right-div .set > a.nav-label {
    color: #e2e8f0 !important;
}

.dark-mode .home-faqs-sec .faqs-right-div .set > a.nav-label:hover {
    color: #818cf8 !important;
    background: rgba(129,140,248,0.06);
}

.dark-mode .home-faqs-sec .faqs-right-div .set > a.nav-label::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.dark-mode .home-faqs-sec .faqs-right-div .set .nav-list,
.dark-mode .home-faqs-sec .faqs-right-div .set .nav-list p,
.dark-mode .home-faqs-sec .faqs-right-div .set .content p {
    color: #94a3b8 !important;
}

/* Dark mode pricing cards */
.dark-mode .pricing-plans-sec {
    background: #1a1d2e !important;
}

.dark-mode .basic-plans {
    background: #252a3e !important;
    border-color: rgba(255,255,255,0.08) !important;
}

.dark-mode .basic-plans-top h3 {
    color: #e2e8f0 !important;
}

.dark-mode .basic-plans-top ul li .plan-card-content p {
    color: #cbd5e1 !important;
}

.dark-mode .basic-plans-bottom {
    background: #1e2235 !important;
    border-top-color: rgba(255,255,255,0.08) !important;
}

.dark-mode .basic-plans-bottom .basic-price-left p {
    color: #94a3b8 !important;
}

.dark-mode .basic-plans-bottom .basic-price-left ins {
    color: #e2e8f0 !important;
}

/* Dark mode social icons */
.dark-mode .site-footer .social-icon img {
    filter: brightness(1.2);
    opacity: 0.9;
}

/* ----------------------------------------------------------
   29. Footer — Mobile Responsive
   ---------------------------------------------------------- */

@media (max-width: 768px) {
    .site-footer .footer-row > .col-6.footer-link,
    .site-footer .footer-row > .footer-col.col-md-6,
    .site-footer .footer-row > .img-fluid {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        padding-right: 15px;
        margin-bottom: 24px;
    }

    .site-footer .footer-row > .col-6.footer-link {
        padding-right: 15px;
    }

    .home-faqs-sec {
        padding: 36px 0 !important;
    }

    .home-faqs-sec h2 {
        font-size: 22px !important;
    }
}

/* Form Builder Editor polish (admin design page only) */ .build-wrap .frmb.stage-wrap { background: var(--os-bg); border: 2px dashed var(--os-border); border-radius: var(--os-radius); min-height: 320px; padding: 12px; } .build-wrap .frmb > li.form-field { background: #fff; border: 1px solid var(--os-border); border-radius: var(--os-radius-sm); margin-bottom: 8px; padding: 12px 14px; cursor: grab; transition: border-color .2s ease, box-shadow .2s ease; } .build-wrap .frmb > li.form-field:hover { border-color: var(--os-primary); box-shadow: var(--os-shadow-sm); } .form-builder .cb-wrap.pull-right { position: sticky; top: 16px; max-height: calc(100vh - 120px); overflow-y: auto; background: #fff; border: 1px solid var(--os-border); border-radius: var(--os-radius); }
/* Live Preview floating window (admin design page) */ .lp-panel{position:fixed;top:96px;right:24px;width:360px;height:470px;z-index:1080;background:#fff;border:1px solid var(--os-border);border-radius:var(--os-radius);box-shadow:0 10px 34px rgba(0,0,0,.20);display:flex;flex-direction:column;overflow:hidden;} .lp-head{cursor:move;background:var(--os-primary);color:#fff;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600;flex:0 0 auto;} .lp-head .lp-title i{margin-right:6px;} .lp-head .lp-tools a{color:#fff;margin-left:12px;opacity:.85;font-size:15px;} .lp-head .lp-tools a:hover{opacity:1;} .lp-body{flex:1 1 auto;overflow:auto;padding:14px;background:var(--os-bg);} .lp-body .rendered-form{background:#fff;padding:16px;border-radius:var(--os-radius-sm);border:1px solid var(--os-border);} .lp-body .rendered-form .form-group{margin-bottom:14px;} .lp-render-empty{color:var(--os-text-muted);font-size:13px;text-align:center;padding:24px;} .lp-panel.lp-collapsed{height:42px!important;min-height:0!important;} .lp-panel.lp-collapsed .lp-body,.lp-panel.lp-collapsed .ui-resizable-handle{display:none;} .lp-panel .ui-resizable-handle{z-index:2;}
/* Live Preview FAB toggle + field width quick buttons */ #lpFab{position:fixed;right:18px;top:45%;z-index:1079;width:44px;height:44px;border-radius:50%;background:var(--os-primary);color:#fff;border:none;box-shadow:0 6px 18px rgba(0,0,0,.25);font-size:18px;display:block;cursor:pointer;} #lpFab:hover{background:var(--os-primary-hover);} .os-wq{position:absolute;right:130px;top:10px;display:none;gap:2px;z-index:3;} .frmb > li.form-field:hover .os-wq{display:inline-flex;} .os-wq span{font-size:11px;line-height:1;padding:5px 8px;border:1px solid var(--os-border);background:#fff;color:var(--os-text-secondary);cursor:pointer;border-radius:4px;} .os-wq span.on{background:var(--os-primary);border-color:var(--os-primary);color:#fff;}
/* Live Preview docked-to-bottom (minimized like a window). The !important rules
   beat jQuery-UI's inline top/left/width/height while docked; removing the class
   restores the exact previous position and size. */
.lp-panel.lp-docked{top:auto!important;bottom:0!important;left:auto!important;right:24px!important;width:300px!important;height:42px!important;min-height:0!important;border-radius:var(--os-radius) var(--os-radius) 0 0;box-shadow:0 -6px 22px rgba(0,0,0,.18);}
.lp-panel.lp-docked .lp-body,.lp-panel.lp-docked .ui-resizable-handle{display:none;}
.lp-panel.lp-docked .lp-head{cursor:pointer;}
.lp-panel.lp-docked .lp-head .lp-title i{animation:lpDockPulse 2s ease-in-out infinite;}
@keyframes lpDockPulse{0%,100%{opacity:1;}50%{opacity:.55;}}

/* Live Preview header buttons: always visible white on the purple bar */
.lp-head .lp-tools a{color:#fff!important;opacity:1!important;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px;background:rgba(255,255,255,.14);text-decoration:none!important;}
.lp-head .lp-tools a:hover{background:rgba(255,255,255,.30);}
.lp-head .lp-tools a i{color:#fff!important;font-size:15px;line-height:1;}
/* jQuery-UI "disabled" must not fade or block the docked bar */
.lp-panel.ui-state-disabled,.lp-panel.ui-draggable-disabled{opacity:1!important;pointer-events:auto!important;}
.lp-panel.lp-docked .lp-head{pointer-events:auto!important;}

/* ===== Designer: Simple/Advanced editing mode + option hints ===== */
.os-mode-group{display:inline-flex;background:var(--os-bg);border:1px solid var(--os-border);border-radius:999px;padding:3px;}
.os-mode-btn{border:none;background:transparent;color:var(--os-text-secondary);font-size:12.5px;font-weight:600;padding:5px 14px;border-radius:999px;cursor:pointer;transition:all .15s ease;}
.os-mode-btn.on{background:var(--os-primary);color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15);}
.os-mode-btn:not(.on):hover{color:var(--os-text);}
/* Simple mode: hide all classified edit rows except the everyday ones
   (a :not() chain only hides — visible rows keep their natural display) */
body.os-simple-edit .form-elements .form-group[data-os-row]:not([data-os-row="label"]):not([data-os-row="required"]):not([data-os-row="placeholder"]):not([data-os-row="description"]):not([data-os-row="column"]):not([data-os-row="options"]):not(.field-options):not([data-os-row="number_of_star"]):not([data-os-row="file_extention"]):not([data-os-row="max_file_size"]):not([data-os-row="max_video_size"]){display:none!important;}
/* Option hints: subtle "?" after the row label, one-line note on click */
.form-elements .form-group label .os-hint-q{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;margin-left:6px;border-radius:50%;background:var(--os-border);color:var(--os-text-secondary);font-size:10px;font-weight:700;text-decoration:none!important;vertical-align:middle;line-height:1;}
.form-elements .form-group label .os-hint-q:hover{background:var(--os-primary);color:#fff;}
#osHintPop{position:absolute;z-index:2100;max-width:280px;background:#1f2433;color:#fff;font-size:12.5px;line-height:1.55;padding:9px 13px;border-radius:8px;box-shadow:0 10px 28px rgba(0,0,0,.28);opacity:0;transform:translateY(5px);pointer-events:none;transition:opacity .18s ease,transform .18s ease;}
#osHintPop.show{opacity:1;transform:translateY(0);}
#osHintPop::after{content:"";position:absolute;left:22px;bottom:-5px;width:10px;height:10px;background:#1f2433;transform:rotate(45deg);}
#osHintPop.below::after{bottom:auto;top:-5px;}
