/* ====================================
   Shared Dashboard Styles - Based on Car Dashboard
   ==================================== */

/* ====================================
   1. CSS Variables and Base Styles
   ==================================== */
:root {
    --primary: #1c2a44;      /* آبی تیره اصلی */
    --secondary: #063888;    /* آبی متوسط */
    --tertiary: #A3A8B4;     /* طوسی روشن */
    --danger: #D32F2F;       /* قرمز */
    --white: #FFFFFF;        /* سفید */
    --gray-light: #f8fafc;   /* طوسی خیلی روشن */
    --gray-medium: #e2e8f0;  /* طوسی متوسط */
    --gray-dark: #475569;    /* طوسی تیره */
}

/* ====================================
   2. Dashboard Layout and Structure
   ==================================== */
.dashboard {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 16rem;
    bottom: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.dashboard-wrapper {
    height: 100%;
    overflow-y: auto;
    padding: 0.5rem;
}

            .dashboard-bg {
                background: var(--white);
                box-shadow: 0 2px 4px rgba(28, 42, 68, 0.08);
                border-radius: 0.75rem;
                height: 100%;
                overflow: auto;
            }
            
            /* Custom Scrollbar for Dashboard */
            .dashboard-bg::-webkit-scrollbar {
                width: 6px;
            }
            
            .dashboard-bg::-webkit-scrollbar-track {
                background: var(--gray-light);
                border-radius: 8px;
            }
            
            .dashboard-bg::-webkit-scrollbar-thumb {
                background: var(--gray-medium);
                border-radius: 8px;
            }
            
            .dashboard-bg::-webkit-scrollbar-thumb:hover {
                background: var(--gray-dark);
            }

.dashboard-content {
    padding: 1rem;
}

/* ====================================
   3. Header and Filter Container
   ==================================== */
.header-filter-container {
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    border: 1px solid var(--gray-medium);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.08);
}

.header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.header-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.875rem;
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.2);
    position: relative !important;
    flex-shrink: 0;
    margin-right: 0.75rem;
    margin-left: 0;
}

.header-icon i {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    line-height: 0 !important;
    margin: 0 !important;
    width: 0.875rem !important;
    height: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.header-text {
    text-align: right;
}

.header-text h1 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    text-align: right;
}

.header-text p {
    font-size: 0.75rem;
    color: var(--tertiary);
    margin: 0;
    margin-top: 0.125rem;
    text-align: right;
}

/* ====================================
   4. Metric Cards and KPI
   ==================================== */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(28, 42, 68, 0.15);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.metric-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.2);
    flex-shrink: 0;
}

.metric-icon i {
    color: var(--white);
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-content {
    flex: 1;
    text-align: right;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--tertiary);
    margin: 0;
    margin-top: 0.25rem;
}

.metric-trend {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-up {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.trend-down {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

/* ====================================
   5. Chart Containers
   ==================================== */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chart-container {
    background-color: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.1);
    padding: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-medium);
    position: relative;
}

.chart-container:hover {
    box-shadow: 0 4px 8px rgba(28, 42, 68, 0.15);
}

.chart-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid var(--secondary);
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(6, 56, 136, 0.1);
    transition: all 0.2s ease;
}

.chart-title:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    box-shadow: 0 2px 6px rgba(6, 56, 136, 0.15);
}

.chart-title i {
    color: var(--secondary);
    font-size: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(6, 56, 136, 0.1);
}

/* ====================================
   6. Buttons and Interactive Elements
   ==================================== */
            /* Custom buttons for dashboard actions only */
            .action-buttons .btn,
            .dashboard .btn:not(.btn-primary):not(.btn-secondary):not(.btn-info):not(.btn-close) {
                padding: 0.5rem 1rem;
                border-radius: 0.5rem;
                border: 1px solid var(--gray-medium);
                background: var(--white);
                color: var(--gray-dark);
                cursor: pointer;
                transition: all 0.2s ease;
                text-decoration: none;
                display: inline-flex;
                align-items: center;
                gap: 0.5rem;
                font-size: 0.875rem;
                font-weight: 500;
                font-family: inherit;
                box-shadow: 0 1px 3px rgba(28, 42, 68, 0.08);
            }

            .action-buttons .btn:hover,
            .dashboard .btn:not(.btn-primary):not(.btn-secondary):not(.btn-info):not(.btn-close):hover {
                background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
                border-color: var(--secondary);
                color: var(--secondary);
                text-decoration: none;
                transform: translateY(-1px);
                box-shadow: 0 3px 6px rgba(28, 42, 68, 0.12);
            }

/* Dashboard specific btn-primary */
.dashboard .btn-primary,
.action-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: var(--primary);
}

.dashboard .btn-primary:hover,
.action-buttons .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    border-color: var(--secondary);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

            .btn-outline-secondary {
                border-color: var(--gray-medium);
                color: var(--gray-dark);
                background: transparent;
            }

            .btn-outline-secondary:hover {
                background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
                border-color: var(--secondary);
                color: var(--secondary);
            }

/* ====================================
   7. Survey Cards and Grid
   ==================================== */
.surveys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.survey-card {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.08);
}

.survey-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(28, 42, 68, 0.15);
    border-color: var(--secondary);
}

.survey-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.survey-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    line-height: 1.4;
    font-family: inherit;
}

.survey-menu {
    position: relative;
}

.menu-btn {
    background: none;
    border: none;
    color: var(--gray-medium);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.survey-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--tertiary);
    font-family: inherit;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.survey-date {
    font-size: 0.75rem;
    color: var(--gray-medium);
    margin-top: auto;
    font-family: inherit;
}

/* ====================================
   8. Empty State
   ==================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--tertiary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

.empty-state h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-family: inherit;
    font-size: 1.25rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-family: inherit;
    color: var(--tertiary);
}

/* ====================================
   9. Responsive Design
   ==================================== */
@media (max-width: 1024px) {
    .dashboard {
        right: 4rem;
    }
    
    .chart-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .metric-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard {
        right: 0;
        top: 3.5rem;
    }
    
    .dashboard-content {
        padding: 0.75rem;
    }
    
    .metric-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .surveys-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .header-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .chart-container {
        padding: 0.5rem;
    }
    
    .chart-title {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* ====================================
   10. Sidebar State Responsive
   ==================================== */
@media (min-width: 1025px) {
    .sidebar-expanded .dashboard {
        right: 20rem;
    }
    
    .sidebar-collapsed .dashboard {
        right: 4rem;
    }
}

/* ====================================
   11. Animations and Transitions
   ==================================== */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* ====================================
   12. Utility Classes
   ==================================== */
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.mt-auto {
    margin-top: auto;
}

/* ====================================
   13. Dropdown and Menu Styles
   ==================================== */
.dropdown-toggle::after {
    display: inline-block;
    margin-right: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

            .dropdown-menu {
                position: absolute;
                top: 100%;
                right: 0;
                z-index: 1000;
                display: none;
                min-width: 10rem;
                padding: 0.5rem 0;
                margin: 0.125rem 0 0;
                font-size: 0.875rem;
                color: var(--gray-dark);
                text-align: right;
                background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
                background-clip: padding-box;
                border: 1px solid var(--gray-medium);
                border-radius: 0.5rem;
                box-shadow: 0 4px 12px rgba(28, 42, 68, 0.15);
            }

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--gray-dark);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

            .dropdown-item:hover {
                color: var(--secondary);
                background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            }

.btn-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.btn-group .btn {
    position: relative;
    flex: 1 1 auto;
}

.btn-group .btn:not(:first-child) {
    margin-right: -1px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

            .btn-group .btn:not(:last-child) {
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
            }

/* ====================================
   14. Survey Builder Specific Styles
   ==================================== */

/* Builder Container Layout */
.builder-container-inner {
    display: flex;
    gap: 0;
    height: calc(100vh - 12rem);
    margin-top: 0;
}

.builder-sidebar {
    width: 300px;
    background: var(--gray-light);
    border-left: 1px solid var(--gray-medium);
    padding: 1rem;
    flex-shrink: 0;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.08);
}

/* Custom Scrollbar for Builder Sidebar - matching car dashboard */
.builder-sidebar::-webkit-scrollbar {
    width: 6px;
}

.builder-sidebar::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 8px;
}

.builder-sidebar::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 8px;
}

.builder-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

.builder-main {
    flex: 1;
    padding: 0;
    background: var(--white);
    overflow-y: auto;
}

/* Custom Scrollbar for Builder Main - matching car dashboard */
.builder-main::-webkit-scrollbar {
    width: 6px;
}

.builder-main::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 8px;
}

.builder-main::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 8px;
}

.builder-main::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

/* Builder Actions in Header - positioned to the left */
.header-section .builder-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.header-section .builder-actions .btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    border: 1px solid var(--gray-medium);
    box-shadow: 0 1px 3px rgba(28, 42, 68, 0.08);
}

.header-section .builder-actions .btn-preview {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: var(--white);
    border-color: #17a2b8;
}

.header-section .builder-actions .btn-preview:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(23, 162, 184, 0.3);
}

.header-section .builder-actions .btn-publish {
    background: linear-gradient(135deg, #28a745, #218838);
    color: var(--white);
    border-color: #28a745;
}

.header-section .builder-actions .btn-publish:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.3);
}

.header-section .builder-actions .btn-outline-secondary {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
    border-color: #ffc107;
}

.header-section .builder-actions .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(255, 193, 7, 0.3);
}

.header-section .builder-actions .btn-outline-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: var(--primary);
}

.header-section .builder-actions .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(28, 42, 68, 0.3);
}

/* Questions Container */
.questions-container {
    padding: 0 1.5rem 1.5rem;
    margin-top: 0;
}

.question-card {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: move;
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.08);
    min-height: 60px;
}

.question-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(28, 42, 68, 0.12);
    transform: translateY(-1px);
}

.question-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    z-index: 1000;
}

.drag-handle {
    cursor: grab;
    color: var(--tertiary);
    margin-left: 0.5rem;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.drag-handle:hover {
    background: var(--gray-light);
    color: var(--secondary);
}

.drag-handle:active {
    cursor: grabbing;
}

.questions-container.sortable-over {
    background: rgba(6, 56, 136, 0.05);
    border-radius: 0.5rem;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.question-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.2);
}

.question-text {
    flex: 1;
    font-weight: 500;
    color: var(--primary);
    font-family: inherit;
    line-height: 1.3;
    font-size: 0.875rem;
}

.question-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-question-action {
    background: none;
    border: none;
    color: var(--tertiary);
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
}

.btn-question-action:hover {
    background: var(--gray-light);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.1);
}

.question-type {
    display: inline-block;
    background: var(--gray-medium);
    color: var(--gray-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
    font-family: inherit;
}

.question-options {
    margin-top: 0.75rem;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--tertiary);
    font-size: 0.875rem;
    font-family: inherit;
}

.option-item i {
    margin-left: 0.5rem;
    width: 1rem;
}

.add-question-card {
    border: 2px dashed var(--gray-medium);
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--tertiary);
}

.add-question-card:hover {
    border-color: var(--secondary);
    background: rgba(6, 56, 136, 0.05);
    color: var(--secondary);
    text-decoration: none;
    transform: translateY(-1px);
}

.add-question-content {
    text-align: center;
}

.add-question-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Sidebar Sections */
.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
}

.question-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.question-type-item {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 1px 3px rgba(28, 42, 68, 0.08);
    min-height: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.question-type-item:hover {
    border-color: var(--secondary);
    background: rgba(6, 56, 136, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(28, 42, 68, 0.12);
}

.question-type-item i {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 0.25rem;
    display: block;
}

.question-type-item span {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
}

/* Survey Stats in Sidebar */
.sidebar-section .survey-stats {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.08);
}

.stat-row {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-light);
    gap: 0.5rem;
    min-height: 3rem;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--tertiary);
    font-size: 0.875rem;
    font-family: inherit;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-weight: 600;
    color: var(--primary);
    font-family: inherit;
    font-size: 1.125rem;
    line-height: 1.2;
}

/* Empty State for Builder */
.builder-main .empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--tertiary);
}

.builder-main .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-medium);
}

.builder-main .empty-state h4 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-family: inherit;
}

/* Builder Responsive Design */
@media (max-width: 1024px) {
    .builder-sidebar {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .builder-container-inner {
        flex-direction: column;
        height: auto;
    }
    
    .builder-sidebar {
        width: 100%;
        height: 200px;
        border-left: none;
        border-bottom: 1px solid var(--gray-medium);
        padding: 0.75rem;
    }
    
    .builder-main {
        flex: 1;
        overflow-y: auto;
    }
    
    .questions-container {
        padding: 0 1rem 1rem;
    }
    
    .question-card {
        padding: 1rem;
    }
    
    .header-section .builder-actions {
        position: static;
        transform: none;
        gap: 0.5rem;
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-section .builder-actions .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .question-types {
        grid-template-columns: 1fr;
    }
    
    .question-type-item {
        min-height: 3rem;
        padding: 0.4rem;
    }
    
    .question-type-item i {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .question-type-item span {
        font-size: 0.65rem;
    }
    
    .header-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat-row {
        min-height: 2.5rem;
        padding: 0.5rem 0;
    }
    
    .stat-label {
        font-size: 0.8rem;
        margin-bottom: 0.125rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
}

/* Builder uses dashboard structure, so no separate sidebar state needed */

/* Progressive enhancement for builder - matching car dashboard */
.builder-main .questions-container { 
    opacity: 1; 
    transform: translateY(0);
    transition: all 0.3s ease;
}

.builder-sidebar .sidebar-section { 
    opacity: 0.9; 
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease; 
}

.builder-loaded .builder-sidebar .sidebar-section {
    opacity: 1;
    transform: translateY(0);
}

/* Performance critical styles for builder */
.question-card {
    contain: layout style paint;
}

.builder-main {
    will-change: scroll-position;
}

/* Modal Styles - Navy Blue Theme to match dashboard */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white) !important;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.modal-header * {
    color: var(--white) !important;
}

.modal-header .fas,
.modal-header .far,
.modal-header .fab,
.modal-header .fal,
.modal-header .fat,
.modal-header .fad,
.modal-header i,
.modal-header .modal-title i,
.modal-header .modal-title .fas,
.modal-header .modal-title .far,
.modal-header .modal-title .fab,
.modal-header .modal-title .fal,
.modal-header .modal-title .fat,
.modal-header .modal-title .fad {
    color: var(--white) !important;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--white) !important;
}

.modal-title i {
    font-size: 1.25rem;
    color: var(--white) !important;
}

/* Force all FontAwesome icons in modal headers to be white */
.modal-header [class*="fa-"],
.modal-header [class^="fa "],
.modal-header .fa,
.modal-title [class*="fa-"],
.modal-title [class^="fa "],
.modal-title .fa {
    color: var(--white) !important;
    fill: var(--white) !important;
}

/* Additional specificity for stubborn icons */
div.modal-header h5.modal-title i,
.modal .modal-header .modal-title i,
.modal-content .modal-header .modal-title i,
.modal-dialog .modal-content .modal-header .modal-title i {
    color: var(--white) !important;
    fill: var(--white) !important;
    -webkit-text-fill-color: var(--white) !important;
}

/* Override any inherited colors */
.modal-header * {
    color: var(--white) !important;
}

.modal-header *:before,
.modal-header *:after {
    color: var(--white) !important;
}

.modal-title span {
    color: var(--white) !important;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-size: 12px;
}

.btn-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-light);
}

/* Form elements in modals */
.modal .form-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
    font-size: 0.9rem;
}

.modal .form-control,
.modal .form-select {
    border: 1.5px solid var(--gray-medium);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--white);
}

.modal .form-control:focus,
.modal .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 42, 68, 0.1);
    outline: none;
}

.modal .form-control:hover,
.modal .form-select:hover {
    border-color: var(--secondary);
}

.modal .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Input groups in modals */
.modal .input-group {
    border: 1px solid var(--gray-medium);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modal .input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 42, 68, 0.1);
}

.modal .input-group .form-control {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.modal .input-group .btn {
    border: none;
    border-radius: 0;
    border-left: 1px solid var(--gray-light);
}

/* Form sections in modals */
.modal .mb-3 {
    position: relative;
}

.modal .form-control::placeholder,
.modal .form-select::placeholder,
.modal .form-select option:first-child {
    color: var(--primary) !important;
    opacity: 0.7;
}
.modal .form-control:focus::placeholder,
.modal .form-select:focus::placeholder {
    color: var(--primary) !important;
    opacity: 0.5;
}

/* Subtle Modal Notifications */
.modal-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 320px;
    min-width: 280px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.modal-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid;
}

.modal-notification-success .notification-content {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95) 0%, rgba(21, 128, 61, 0.95) 100%);
    color: var(--white);
    border-color: rgba(34, 197, 94, 0.3);
}

.modal-notification-error .notification-content {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(185, 28, 28, 0.95) 100%);
    color: var(--white);
    border-color: rgba(239, 68, 68, 0.3);
}

.notification-content i:first-child {
    font-size: 1rem;
    flex-shrink: 0;
}

.notification-text {
    flex-grow: 1;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.notification-close i {
    font-size: 0.75rem;
}

/* Question Preview in Modals - Keep Stable */
.modal .alert-info #modalQuestionPreview,
.modal .alert-info #editModalQuestionPreview {
    background: rgba(28, 42, 68, 0.02);
    border: 1px solid rgba(28, 42, 68, 0.1);
    border-radius: 6px;
    padding: 12px;
    min-height: 60px;
    font-family: inherit;
    line-height: 1.5;
    color: var(--secondary);
    transition: all 0.3s ease;
    position: relative;
}

/* Custom Scrollbar for All Modals - Matching Dashboard */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 8px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

/* Modal buttons - Modern & Minimal */
.modal .btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.modal .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
}

.modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(28, 42, 68, 0.25);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
}

.modal .btn-secondary {
    background: var(--white);
    color: var(--gray-dark);
    border: 1px solid var(--gray-medium);
}

.modal .btn-secondary:hover {
    background: var(--gray-light);
    color: var(--gray-dark);
    border-color: var(--gray-dark);
}

.modal .btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--white);
}

.modal .btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: var(--white);
}

.modal .btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--white);
}

.modal .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: var(--white);
}

/* Alert in modals */
.modal .alert-info {
    background: linear-gradient(135deg, rgba(28, 42, 68, 0.05) 0%, rgba(52, 73, 94, 0.05) 100%);
    border: 1px solid var(--primary);
    border-left: 4px solid var(--primary);
    color: var(--primary);
    border-radius: 6px;
    padding: 12px 16px;
}

.modal .alert-info h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Subtle Guidance Messages */
.guidance-message {
    background: linear-gradient(135deg, rgba(28, 42, 68, 0.03) 0%, rgba(52, 73, 94, 0.03) 100%);
    border: 1px solid rgba(28, 42, 68, 0.15);
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.825rem;
    line-height: 1.4;
    color: var(--secondary);
    margin: 12px 0;
    transition: all 0.2s ease;
}

.guidance-message:hover {
    background: linear-gradient(135deg, rgba(28, 42, 68, 0.06) 0%, rgba(52, 73, 94, 0.06) 100%);
    border-color: rgba(28, 42, 68, 0.25);
}

.guidance-message i {
    color: var(--primary);
    font-size: 0.875rem;
    margin-left: 6px;
    opacity: 0.8;
}

.guidance-message.guidance-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(217, 119, 6, 0.03) 100%);
    border-color: rgba(245, 158, 11, 0.15);
    border-left-color: #f59e0b;
    color: #92400e;
}

.guidance-message.guidance-warning i {
    color: #f59e0b;
}

.guidance-message.guidance-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.03) 0%, rgba(21, 128, 61, 0.03) 100%);
    border-color: rgba(34, 197, 94, 0.15);
    border-left-color: #22c55e;
    color: #166534;
}

.guidance-message.guidance-success i {
    color: #22c55e;
}

/* Conditions Modal - Elegant & Space-Efficient */
.conditions-modal {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(28, 42, 68, 0.15);
}

.conditions-modal-body {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    max-height: 70vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Conditions Modal - Matching Dashboard */
.conditions-modal-body::-webkit-scrollbar {
    width: 6px;
}

.conditions-modal-body::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 8px;
}

.conditions-modal-body::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 8px;
}

.conditions-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

/* Conditions Overview - Compact */
.conditions-overview {
    background: var(--white);
    border-radius: 6px;
    padding: 0.75rem;
    border: 1px solid rgba(28, 42, 68, 0.1);
    box-shadow: 0 2px 8px rgba(28, 42, 68, 0.05);
    margin-bottom: 1rem;
}

.overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(28, 42, 68, 0.1);
}

.overview-header h6 {
    color: var(--primary);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.conditions-list {
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
}

/* Custom Scrollbar for Conditions List - Matching Dashboard */
.conditions-list::-webkit-scrollbar {
    width: 6px;
}

.conditions-list::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 8px;
}

.conditions-list::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 8px;
}

.conditions-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-dark);
}

.conditions-list:empty::before {
    content: "هیچ شرطی تعریف نشده است.";
    display: block;
    text-align: center;
    color: var(--gray-medium);
    font-style: italic;
    padding: 1.5rem 1rem;
    background: rgba(28, 42, 68, 0.02);
    border-radius: 4px;
    border: 2px dashed rgba(28, 42, 68, 0.1);
    font-size: 0.85rem;
}

/* Improved Condition Items - Single Line Layout */
.condition-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid rgba(28, 42, 68, 0.08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(28, 42, 68, 0.04);
    transition: all 0.2s ease;
    position: relative;
}

.condition-item:hover {
    box-shadow: 0 4px 16px rgba(28, 42, 68, 0.08);
    border-color: rgba(28, 42, 68, 0.12);
    transform: translateY(-1px);
}

.condition-item:last-child {
    margin-bottom: 0;
}

/* Single Line Content Layout */
.condition-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.condition-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.condition-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.condition-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.condition-rule {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

.condition-result {
    color: var(--gray-dark);
    font-size: 0.8rem;
    font-weight: 500;
}

.condition-status {
    flex-shrink: 0;
}

.condition-status .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    white-space: nowrap;
}

.condition-actions {
    display: flex;
    gap: 0.375rem;
    align-items: center;
    flex-shrink: 0;
}

.condition-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.condition-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(28, 42, 68, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .condition-item {
        padding: 0.5rem 0.75rem;
    }
    
    .condition-content {
        gap: 0.5rem;
    }
    
    .condition-info {
        gap: 0.5rem;
    }
    
    .condition-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .condition-rule {
        font-size: 0.8rem;
    }
    
    .condition-result {
        font-size: 0.75rem;
    }
    
    .condition-status .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .condition-actions {
        gap: 0.25rem;
    }
    
    .condition-actions .btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .condition-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .condition-info {
        width: 100%;
    }
    
    .condition-status {
        align-self: flex-end;
    }
    
    .condition-actions {
        align-self: flex-end;
    }
}

/* Condition Form Container */
.condition-form-container {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid rgba(28, 42, 68, 0.1);
    box-shadow: 0 4px 16px rgba(28, 42, 68, 0.1);
    overflow: hidden;
    animation: slideInUp 0.3s ease-out;
}

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

.condition-form-card {
    position: relative;
}

.form-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
}

.btn-close-form {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    opacity: 0.8;
}

.btn-close-form:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Form Grid Layout - Compact */
.condition-form {
    padding: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    align-items: end;
}

.form-row {
    display: contents;
}

.form-row.form-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(28, 42, 68, 0.1);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Labels - Compact */
.condition-form .form-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
    line-height: 1.2;
}

.condition-form .form-label i {
    color: var(--secondary);
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Form Controls - Compact */
.condition-form .form-control,
.condition-form .form-select {
    border: 1px solid rgba(28, 42, 68, 0.15);
    border-radius: 5px;
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    background: var(--white);
    min-height: 2.2rem;
}

.condition-form .form-control:focus,
.condition-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(28, 42, 68, 0.1);
    outline: none;
}

.condition-form .form-control::placeholder {
    color: rgba(28, 42, 68, 0.5);
    font-size: 0.8rem;
}

/* Form Switch - Using Bootstrap Standard */
.condition-form .form-check.form-switch {
    padding: 0.25rem 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.condition-form .form-check.form-switch .form-check-input {
    width: 2em;
    height: 1em;
    margin-left: 0;
    margin-top: 0;
    background-image: none;
    border: 1px solid rgba(28, 42, 68, 0.25);
    border-radius: 2em;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.condition-form .form-check.form-switch .form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(28, 42, 68, 0.25);
}

.condition-form .form-check.form-switch .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.condition-form .form-check-label {
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

.condition-form .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.condition-form .btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    color: var(--white);
}

.condition-form .btn-success:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.condition-form .btn-secondary {
    background: var(--white);
    border: 1px solid rgba(28, 42, 68, 0.2);
    color: var(--secondary);
}

.condition-form .btn-secondary:hover {
    background: rgba(28, 42, 68, 0.05);
    border-color: rgba(28, 42, 68, 0.3);
}

/* Target Destination Dynamic Content */
#targetDestination {
    position: relative;
    min-height: 2.5rem;
    display: flex;
    align-items: end;
}

#targetDestination .form-label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

#targetDestination .form-control,
#targetDestination .form-select {
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .condition-form {
        padding: 1rem;
    }
    
    .conditions-modal-body {
        padding: 1rem;
    }
    
    .action-buttons {
        justify-content: stretch;
    }
    
    .action-buttons .btn {
        flex: 1;
    }
}

/* Custom Toggle Switch for Condition Status */
.condition-status-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 36px;
    height: 18px;
    background: #dc3545;
    border-radius: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: #28a745;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(18px);
}

.toggle-text {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.toggle-switch:hover .toggle-slider {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Conditions modal specific styles */
.modal-xl .modal-dialog {
    max-width: 1200px;
}

.modal .list-group-item {
    border: 1px solid var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    padding: 1rem;
    background: rgba(28, 42, 68, 0.02);
    transition: all 0.2s ease;
}

.modal .list-group-item:hover {
    border-color: var(--secondary);
    border-left-color: var(--secondary);
    background: rgba(28, 42, 68, 0.05);
}

.modal .list-group-item:last-child {
    margin-bottom: 0;
}

.modal .card {
    border: 1px solid var(--primary);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(28, 42, 68, 0.1);
    overflow: hidden;
}

.modal .card-header {
    background: linear-gradient(135deg, rgba(28, 42, 68, 0.08) 0%, rgba(52, 73, 94, 0.08) 100%);
    border-bottom: 1px solid var(--primary);
    padding: 12px 16px;
}

.modal .card-header h6 {
    color: var(--primary);
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
}

.modal .card-body {
    padding: 16px;
}

/* ====================================
   13. Action Buttons (Dashboard Style)
   ==================================== */
.action-btn {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--gray-light);
    color: var(--gray-dark);
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.15);
    text-decoration: none;
}

.action-view {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.action-view:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #2563EB;
}

.action-edit {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.action-edit:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #16A34A;
}

.action-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.action-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #DC2626;
}

/* ====================================
   14. Horizontal Choice Buttons
   ==================================== */
.choice-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem; /* smaller gap */
    align-items: center;
}

.choice-button {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.choice-button input {
    display: none;
}

.choice-button span {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.625rem; /* smaller padding */
    border: 1px solid var(--gray-medium);
    border-radius: 9999px; /* pill shape */
    background: var(--white);
    color: var(--gray-dark);
    transition: all 0.2s ease;
    font-size: 0.8rem; /* smaller font */
    box-shadow: 0 1px 2px rgba(28, 42, 68, 0.06);
}

.choice-button:hover span {
    /* No hover effects */
}

.choice-button input:checked + span {
    background: rgba(6, 56, 136, 0.08); /* secondary tint */
    border-color: var(--secondary);
    color: var(--secondary);
}

/* Selected choice button styles */
.choice-button input:checked + span,
.choice-button span.is-checked {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    color: white !important;
    border-color: #45a049 !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
    font-weight: 600 !important;
}

.choice-button input:checked + span i,
.choice-button span.is-checked i {
    color: white !important;
}

/* Hover effect for selected state */
.choice-button input:checked + span:hover,
.choice-button span.is-checked:hover {
    /* No hover effects */
}

/* ====================================
   15. Preview Questions Layout
   ==================================== */
.preview-questions {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* good spacing between questions */
}

.preview-question {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(28, 42, 68, 0.06);
}

.preview-question h6 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ====================================
   15. Survey Public Styles
   ==================================== */
/* Override body background for public surveys */
body {
    background: var(--background-color, #f5f5f5);
}

/* Persian numbers in all content */
.persian-num {
    font-feature-settings: "ss01";
}

/* Center header for public surveys */
.survey-public-header .header-section {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.survey-public-header .header-content {
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: row !important;  /* تغییر از column به row */
    align-items: center !important;
    gap: 0.75rem !important;  /* کاهش فاصله */
}

.survey-public-header .header-text {
    text-align: right !important;  /* تغییر به راست‌چین برای نام */
    margin: 0 !important;
}

.survey-public-header .header-text h1,
.survey-public-header .header-text p {
    text-align: right !important;  /* تغییر به راست‌چین */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.survey-public-header .header-icon {
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;  /* حذف margin-bottom */
}

/* Success page specific styles */
.success-container {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 15px;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

/* Public survey form styles with better contrast */
.survey-form-container {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

/* Old progress styles removed - see section 16 for new styles */

/* Respondent info card with distinct background */
.respondent-info-card {
    background: #f0f4f8;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.respondent-info-title {
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.respondent-info-title i {
    color: var(--secondary);
    background: var(--white);
    padding: 0.375rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(6, 56, 136, 0.1);
}

/* Override question-card styles for public surveys */
.survey-public-page .survey-form-container .question-card {
    background: linear-gradient(135deg, var(--gray-light), var(--white)) !important;
    border: 1px solid var(--gray-medium) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.25rem !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
}

.survey-public-page .survey-form-container .question-card:hover {
    border-color: var(--gray-medium) !important;
    box-shadow: 0 2px 8px rgba(6, 56, 136, 0.08) !important;
    background: linear-gradient(135deg, var(--gray-light), var(--white)) !important;
}

/* Better visual hierarchy for questions */
.survey-form-container .question-header {
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5) !important;
}

.survey-form-container .question-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    color: white !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    flex-shrink: 0 !important;
    margin-left: 0.75rem !important;
}

.survey-form-container .question-text {
    font-size: 1rem !important;
    color: var(--gray-dark) !important;
    font-weight: 500 !important;
}

.survey-form-container .question-options {
    padding-top: 0.5rem !important;
}

/* Form controls with better contrast */
.survey-form-container .form-control,
.survey-form-container .form-select {
    background: white !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.625rem 0.875rem !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

.survey-form-container .form-control:focus,
.survey-form-container .form-select:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 3px rgba(6, 56, 136, 0.08) !important;
    background: white !important;
    outline: none !important;
}

/* Submit button section */
.submit-section {
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid var(--gray-medium);
    margin-top: 2rem;
    background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.5));
}



/* Success button */
.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: var(--white);
    text-decoration: none;
}

/* Choice buttons container */
.survey-form-container .choice-buttons {
    gap: 0.5rem !important;
}

/* Individual choice button styles */
.survey-form-container .choice-button span {
    background: white !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 25px !important;
    transition: all 0.2s ease !important;
}

.survey-form-container .choice-button:hover span:not(.is-checked) {
    background: #f8fafc !important;
    border-color: var(--secondary) !important;
}

/* Empty state for no questions */
.survey-form-container .text-center {
    padding: 3rem 2rem !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    border: 1px dashed #e2e8f0 !important;
}

/* Survey Public Fullscreen Layout */
.survey-public-page {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

.survey-public-page .dashboard {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.survey-public-page .dashboard-wrapper {
    padding: 0 !important;
    height: 100vh !important;
}

/* Removed duplicate progress styles */

/* Navigation section */
.navigation-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

/* Navigation buttons */
.btn-navigation {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--gray-dark);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-navigation:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 56, 136, 0.1);
}

.btn-navigation:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.btn-prev {
    margin-left: auto;
}

.btn-next {
    margin-right: auto;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
}

.btn-next:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 56, 136, 0.3);
}



/* Form row for respondent info */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Submit info */
.submit-info {
    text-align: center;
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.submit-info i {
    margin-left: 0.25rem;
    color: #4CAF50;
}

/* Question card improvements for single display */
.questions-container .question-card {
    min-height: 200px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   16. Simple Progress Section for Public Survey
   ==================================== */
/* Clean progress container */
.survey-progress {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-text {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: rgba(28, 42, 68, 0.05);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
}

.progress-text #current-question {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1c2a44;
}

.progress-text #total-questions {
    font-size: 0.875rem;
    color: #475569;
}

.progress-percentage {
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #4CAF50;
}

/* Simple progress bar */
.survey-progress-bar {
    height: 10px;
    background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.survey-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
    position: relative;
}

/* Shimmer effect for progress bar */
.survey-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ====================================
   17. Animated Survey Background
   ==================================== */
.survey-public-page {
    position: relative;
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    min-height: 100vh;
    overflow: hidden;
}

/* Simple pattern background */
.survey-public-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%234A6FA5' stroke-width='0.5' opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}



/* Dashboard container adjustments for survey page */
.survey-public-page .dashboard {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: transparent;
    z-index: 1;
}

.survey-public-page .dashboard-wrapper {
    padding: 1.5rem !important;
    height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.survey-public-page .dashboard-bg {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    margin: 0 auto;
}

/* Card improvements for visibility with transparent background */
.survey-public-page .question-card {
    background: linear-gradient(135deg, var(--gray-light), var(--white)) !important;
    border: 1px solid var(--gray-medium) !important;
    box-shadow: 0 2px 4px rgba(28, 42, 68, 0.08) !important;
}

.survey-public-page .respondent-info-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Survey form container adjustments */
.survey-public-page .survey-form-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 1.5rem !important;
    max-width: 100% !important;
}

/* Header adjustments for survey page */
.survey-public-page .header-filter-container {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .survey-public-page .dashboard-wrapper {
        padding: 0.75rem !important;
    }
    
    .survey-public-page .dashboard-bg {
        max-height: 100vh;
        border-radius: 0 !important;
    }
    
    .progress-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-text,
    .progress-percentage {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .survey-progress {
        padding: 1.25rem;
    }
}

/* Very subtle floating animation */
@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Simple floating survey icons */
.survey-public-page .floating-icons {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.survey-public-page .floating-icons span {
    position: absolute;
    font-size: 1rem;
    opacity: 0.03;
    animation: floatIcon 30s ease-in-out infinite;
}

.survey-public-page .floating-icons span:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.survey-public-page .floating-icons span:nth-child(2) {
    bottom: 20%;
    right: 15%;
    animation-delay: 8s;
}

.survey-public-page .floating-icons span:nth-child(3) {
    top: 70%;
    left: 80%;
    animation-delay: 15s;
} 

/* Stronger divider under question title on public survey */
.survey-public-page .survey-form-container .question-header {
    border-bottom: 2px solid var(--gray-medium) !important;
}

/* Welcome page type spans full row in the grid */
.builder-sidebar .question-types .welcome-page-item {
    grid-column: 1 / -1;
}

/* ====================================
   Toast Notifications - Small and Elegant
   ==================================== */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.85rem;
    font-weight: 500;
    border-left: 4px solid;
    animation: slideInRight 0.3s ease-out;
    max-width: 350px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.toast-notification.danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.toast-notification.warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.toast-notification.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}