/* Source: resources/views/test/netshow_iq1/idea_assistant_dashboard.blade.php (block 1) */
:root {
    --bg: #0F1216;
    --surface: #171B21;
    --card: #21262E;
    --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);
    --focus: 0 0 0 2px #3B82F6, 0 0 0 6px rgba(59,130,246,.24);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    margin-bottom: 32px;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo i {
    color: var(--primary);
    margin-right: 8px;
}

/* Main Card */
.main-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,.05);
    margin-bottom: 24px;
}

.card-header-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Form Sections */
.form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--separator);
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.section-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Form Labels */
label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.label-optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 12px;
}

/* Form Inputs */
.form-control, .form-select, textarea.form-control {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    padding: 12px 16px;
    font-size: 14px;
    height: 48px;
    transition: all 180ms ease;
}

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

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

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

.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 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Range Slider */
.range-container {
    padding: 8px 0;
}

.range-value {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 12px;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    margin: 12px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--card);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--card);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Mode Pills */
.mode-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mode-pill {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    cursor: pointer;
    transition: all 180ms ease;
    font-size: 13px;
    color: var(--text-secondary);
}

.mode-pill input[type="radio"] {
    display: none;
}

.mode-pill:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.mode-pill input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

.mode-pill-wrapper {
    position: relative;
}

.mode-pill-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mode-pill-wrapper input[type="radio"]:checked ~ .mode-pill {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

/* Helper Text */
.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

/* Info Box */
.info-box {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: start;
    gap: 10px;
}

.info-box i {
    color: var(--info);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 180ms ease;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    background: var(--primary-pressed);
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 180ms ease;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Constraint Chips */
.constraint-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.constraint-chip {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 150ms ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.constraint-chip.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.constraint-chip i {
    font-size: 10px;
}

/* Output Preview */
.output-preview {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 24px;
    display: none;
}

.output-preview.active {
    display: block;
}

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

.output-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

/* Idea Listings */
.idea-results {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-top: 24px;
}

.idea-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.idea-results-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.idea-results-subtitle {
    color: var(--text-muted);
    font-size: 13px;
}

.idea-results-count {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 14px;
}

.idea-empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.idea-results.has-data .idea-empty-state {
    display: none;
}

.idea-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.idea-results:not(.has-data) .idea-grid {
    display: none;
}

.idea-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
    position: relative;
    transition: border-color 150ms ease, transform 150ms ease;
}

.idea-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.idea-card-header {
    display: flex;
    gap: 12px;
}

.idea-card-index {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
}

.idea-card-title {
    flex: 1;
}

.idea-card-title h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text);
}

.idea-card-title p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.idea-details {
    display: grid;
    gap: 12px;
}

.idea-detail-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.idea-detail-value {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.idea-actions {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
}

.idea-validate-btn {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 150ms ease;
}

.idea-validate-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .container-main {
        padding: 16px 12px;
    }

    .main-card {
        padding: 24px 16px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .mode-pills {
        flex-direction: column;
    }

    .mode-pill {
        width: 100%;
        justify-content: center;
    }

    .page-title {
        font-size: 20px;
    }
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Success Message */
.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--success);
    display: none;
    align-items: center;
    gap: 10px;
}

.success-message.show {
    display: flex;
}

/* Help Icon & Tooltip */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    cursor: help;
    transition: all 180ms ease;
    position: relative;
    flex-shrink: 0;
}

.help-icon:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Tooltip */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
}

.help-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    width: 320px;
    max-width: 90vw;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 1000;
}

.help-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary);
}

.help-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--surface);
    margin-top: -1px;
}

.tooltip-wrapper:hover .help-tooltip,
.help-icon:focus + .help-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-4px);
}

.help-tooltip strong {
    color: var(--text);
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

/* Tooltip on mobile - position below */
@media (max-width: 768px) {
    .help-tooltip {
        bottom: auto;
        top: calc(100% + 12px);
        width: 280px;
    }

    .help-tooltip::before {
        top: -6px;
        bottom: auto;
        border-top-color: transparent;
        border-bottom-color: var(--primary);
    }

    .help-tooltip::after {
        top: -5px;
        bottom: auto;
        border-top-color: transparent;
        border-bottom-color: var(--surface);
    }

    .tooltip-wrapper:hover .help-tooltip {
        transform: translateX(-50%) translateY(4px);
    }
}

/* Section Title with Emoji */
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-emoji {
    font-size: 18px;
    line-height: 1;
}

/* Page Title with Indicator */
.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title::before {
    content: '◆';
    color: var(--primary);
    font-size: 16px;
}

/* Label Emojis */
label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

label .label-emoji {
    font-size: 14px;
    line-height: 1;
    margin-right: 4px;
}

/* Required Indicator */
.required-indicator {
    color: var(--danger);
    font-weight: 600;
    margin-left: 2px;
}

/* Step Numbers */
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--separator);
}

h2 {
    margin-bottom: 0px !important;
}


/* Inline style extraction batch: final medium files (2026-02-10) */
/* Source: resources/views/test/netshow_iq1/idea_assistant_dashboard.blade.php */
.test-netshow-iq1-idea-assistant-dashboard-anthropicmodels-inline-1 { display:none; }
/* Source: resources/views/test/netshow_iq1/idea_assistant_dashboard.blade.php */
.test-netshow-iq1-idea-assistant-dashboard-openaimodels-inline-2 { display:none; }
/* Source: resources/views/test/netshow_iq1/idea_assistant_dashboard.blade.php */
.test-netshow-iq1-idea-assistant-dashboard-zaimodels-inline-3 { display:none; }
