/* Source: resources/views/test/netshow_iq1/ai_first_legal_pack.blade.php (block 1) */
:root {
    --bg: #0F1216;
    --surface: #171B21;
    --card: #21262E;
    --card-hover: #262C35;
    --border: #2A313A;
    --separator: #2F3640;
    --text: #E7ECF2;
    --text-secondary: #A9B2BF;
    --text-muted: #7D8896;
    --primary: #3B82F6;
    --primary-hover: #2563EB;
    --primary-pressed: #1D4ED8;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #06B6D4;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow: 0 8px 24px rgba(0,0,0,.25);
    --shadow-sm: 0 4px 12px rgba(0,0,0,.2);
    --focus: 0 0 0 2px #3B82F6, 0 0 0 6px rgba(59,130,246,.24);
    --inner-glow: inset 0 1px 0 rgba(255,255,255,.05);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--surface);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Main Container */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
}

@media (min-width: 768px) {
    .main-container {
        padding: 32px 24px;
    }
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 32px 24px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--card) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }
}

.page-header .subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto 16px;
}

.legal-disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    color: #FCA5A5;
    max-width: 600px;
    margin: 0 auto;
}

.legal-disclaimer i {
    color: var(--danger);
}

/* Cards */
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow), var(--inner-glow);
    transition: border-color 0.2s ease;
}

.form-card:hover {
    border-color: var(--separator);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--separator);
}

.section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.section-title-group {
    flex: 1;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0 0;
}

/* Help Button */
.help-btn {
    width: 24px;
    height: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    padding: 0;
}

.help-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Form Controls */
.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-label .emoji {
    margin-right: 6px;
}

.form-control, .form-select {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 12px 14px;
    font-size: 14px;
    height: auto;
    min-height: 46px;
    transition: all 0.15s ease;
}

.form-control:focus, .form-select:focus {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: var(--focus);
    color: var(--text);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23A9B2BF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 10px;
    padding-right: 44px;
}

.form-select option {
    background: var(--card);
    color: var(--text);
}

.form-text {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
}

/* Checkbox & Radio Styling */
.form-check {
    padding-left: 28px;
    margin-bottom: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-left: -28px;
    margin-top: 2px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

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

.form-check-input:focus {
    box-shadow: var(--focus);
    border-color: var(--primary);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
}

.form-check-input:checked ~ .form-check-label {
    color: var(--text);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 768px) {
    .checkbox-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .checkbox-grid.wide {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Module Selection Cards */
.module-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.module-card:hover {
    border-color: var(--primary);
    background: var(--card-hover);
}

.module-card.selected {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.module-card input {
    display: none;
}

.module-card .module-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.module-card .module-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.module-card .module-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Pill Tags */
.pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

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

.pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Progress Indicator */
.progress-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    position: sticky;
    top: 16px;
    z-index: 100;
}

.progress-bar-custom {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--info) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.progress-step.active {
    color: var(--primary);
}

.progress-step.completed {
    color: var(--success);
}

.progress-step .step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.progress-step.active .step-num {
    background: var(--primary);
    color: white;
}

.progress-step.completed .step-num {
    background: var(--success);
    color: white;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary-custom:hover {
    background: linear-gradient(180deg, var(--primary-hover) 0%, var(--primary-pressed) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-secondary-custom {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    padding: 12px 24px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-secondary-custom:hover {
    background: var(--card-hover);
    border-color: var(--text-muted);
    color: var(--text);
}

/* Output Section */
.output-section {
    background: linear-gradient(180deg, var(--surface) 0%, var(--card) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
}

.output-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.output-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.output-textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    min-height: 300px;
    resize: vertical;
    width: 100%;
}

.output-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus);
}

.copy-btn {
    background: var(--success);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background: #16a34a;
    transform: scale(1.02);
}

.copy-btn.copied {
    background: var(--primary);
}

/* Tooltip/Popover Styling */
.popover {
    --bs-popover-bg: var(--card);
    --bs-popover-border-color: var(--border);
    --bs-popover-header-bg: var(--surface);
    --bs-popover-header-color: var(--text);
    --bs-popover-body-color: var(--text-secondary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    max-width: 320px;
}

.popover-header {
    border-bottom-color: var(--border);
    font-weight: 600;
    padding: 12px 16px;
}

.popover-body {
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
}

/* Two Column Layout */
@media (min-width: 1024px) {
    .two-column-layout {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 24px;
        align-items: start;
    }

    .sidebar-sticky {
        position: sticky;
        top: 100px;
    }
}

/* Quick Reference Sidebar */
.quick-ref-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
}

.quick-ref-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-ref-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--separator);
}

.quick-ref-item:last-child {
    border-bottom: none;
}

.quick-ref-icon {
    color: var(--primary);
    font-size: 14px;
    margin-top: 2px;
}

.quick-ref-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.quick-ref-text strong {
    color: var(--text-secondary);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.required {
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
}

.status-badge.optional {
    background: rgba(34, 197, 94, 0.15);
    color: #86EFAC;
}

.status-badge.recommended {
    background: rgba(59, 130, 246, 0.15);
    color: #93C5FD;
}

/* Input Group Addons */
.input-group-text {
    background: var(--surface);
    border: 1px solid var(--border);
    border-right: none;
    color: var(--text-muted);
    padding: 12px 14px;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary);
}

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

.form-card {
    animation: fadeIn 0.3s ease forwards;
}

.form-card:nth-child(2) { animation-delay: 0.05s; }
.form-card:nth-child(3) { animation-delay: 0.1s; }
.form-card:nth-child(4) { animation-delay: 0.15s; }
.form-card:nth-child(5) { animation-delay: 0.2s; }
.form-card:nth-child(6) { animation-delay: 0.25s; }

/* Mobile Submit Bar */
@media (max-width: 767px) {
    .mobile-submit-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--card);
        border-top: 1px solid var(--border);
        padding: 12px 16px;
        z-index: 1000;
        display: flex;
        gap: 12px;
    }

    .mobile-submit-bar .btn {
        flex: 1;
    }

    body {
        padding-bottom: 80px;
    }
}

@media (min-width: 768px) {
    .mobile-submit-bar {
        display: none;
    }
}

/* Required Asterisk */
.required-mark {
    color: var(--danger);
    margin-left: 2px;
}

/* Collapsible Sections */
.collapse-toggle {
    cursor: pointer;
    user-select: none;
}

.collapse-toggle .bi-chevron-down {
    transition: transform 0.2s ease;
}

.collapse-toggle[aria-expanded="false"] .bi-chevron-down {
    transform: rotate(-90deg);
}

/* Instructions Box */
.instructions-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}

.instructions-box h5 {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instructions-box ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 13px;
}

.instructions-box li {
    margin-bottom: 8px;
}

.instructions-box li:last-child {
    margin-bottom: 0;
}


/* Inline style extraction batch: final medium files (2026-02-10) */
/* Source: resources/views/test/netshow_iq1/ai_first_legal_pack.blade.php */
.test-netshow-iq1-ai-first-legal-pack-progressbar-inline-1 { width: 0%; }
/* Source: resources/views/test/netshow_iq1/ai_first_legal_pack.blade.php */
.test-netshow-iq1-ai-first-legal-pack-outputsection-inline-2 { display: none; }
/* Source: resources/views/test/netshow_iq1/ai_first_legal_pack.blade.php */
.test-netshow-iq1-ai-first-legal-pack-quick-ref-text-inline-3 { color: var(--text-muted); }
