/* Source: resources/views/test/netshow_iq1/prd_application_builder.blade.php (block 1) */
:root {
    --bg: #0F1216;
    --surface: #171B21;
    --card: #21262E;
    --card-inner: #1C2128;
    --border: #2A313A;
    --border-light: #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,.15);
    --focus: 0 0 0 2px #3B82F6, 0 0 0 6px rgba(59,130,246,.24);
    --gradient: linear-gradient(180deg, transparent, rgba(255,255,255,0.03));
}

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

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

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

/* Header */
.header-section {
    text-align: center;
    margin-bottom: 48px;
    padding: 40px 24px;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
}

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

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

/* Cards */
.card-custom {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    position: relative;
}

.card-inner {
    background: var(--card-inner);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.section-icon {
    font-size: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex: 1;
}

/* Help Icons */
.help-icon {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    font-size: 16px;
}

.help-icon:hover {
    color: var(--primary);
}

/* Tooltips */
.tooltip-custom {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 16px;
    max-width: 300px;
    z-index: 1000;
    box-shadow: var(--shadow);
    display: none;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.tooltip-custom.show {
    display: block;
}

/* Forms */
.form-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label-icon {
    font-size: 16px;
}

.form-control, .form-select {
    background: var(--card-inner);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.2s;
    height: 48px;
}

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

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

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

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

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    letter-spacing: 0.02em;
    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);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    height: 48px;
}

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

/* Pills */
.pill-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.pill {
    background: var(--card-inner);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

/* Checkboxes and Radios */
.form-check {
    padding-left: 0;
    margin-bottom: 12px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    background: var(--card-inner);
    border: 1px solid var(--border);
    margin-right: 12px;
    cursor: pointer;
}

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

.form-check-label {
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Progress Indicators */
.progress-container {
    margin-bottom: 32px;
}

.progress {
    background: var(--card-inner);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: var(--primary);
    height: 100%;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.progress-step {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    flex: 1;
}

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

/* File Upload */
.file-upload-area {
    background: var(--card-inner);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-area:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.file-upload-area.dragging {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Status Indicators */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

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

    .card-custom {
        padding: 20px;
    }

    .header-title {
        font-size: 24px;
    }

    .row > * {
        margin-bottom: 16px;
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Sticky Submit Bar for Mobile */
.submit-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 16px;
    display: none;
    z-index: 999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .submit-bar {
        display: block;
    }

    .desktop-submit {
        display: none;
    }
}

/* Loading State */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Inline style extraction: resources/views/test/netshow_iq1/prd_application_builder.blade.php */
.prd-builder-title-accent {
    color: var(--primary);
}

.prd-builder-progress-initial {
    width: 0%;
}

.prd-builder-upload-icon {
    font-size: 48px;
    color: var(--primary);
}

.prd-builder-file-input-hidden,
.prd-builder-input-method-hidden,
.prd-builder-output-section-hidden {
    display: none;
}

.prd-builder-generated-prompt {
    color: var(--text);
    white-space: pre-wrap;
}

.prd-builder-next-steps-alert {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--info);
}
