/* Source: resources/views/test/netshow_iq1/website_builder.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 {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    padding: 24px 16px;
}

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

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

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

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

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

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

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.help-icon {
    width: 24px;
    height: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 180ms ease;
    color: var(--text-muted);
    font-size: 13px;
}

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

.form-label {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.01em;
}

.form-label .required {
    color: var(--danger);
    margin-left: 4px;
}

.helper-text {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.4;
}

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

.form-control:focus, .form-select:focus, textarea:focus {
    background: var(--card);
    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;
}

textarea.large {
    min-height: 180px;
}

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

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

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .24);
}

.form-check-label {
    color: var(--text);
    margin-left: 8px;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    padding: 14px 32px;
    font-size: 15px;
    transition: all 180ms ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, .2);
    min-height: 48px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, .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);
    font-weight: 500;
    padding: 14px 32px;
    font-size: 15px;
    transition: all 180ms ease;
    min-height: 48px;
}

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

.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-height: 48px;
    cursor: text;
}

.tag {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-remove {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 150ms;
}

.tag-remove:hover {
    opacity: 1;
}

.tag-input {
    border: none;
    background: transparent;
    color: var(--text);
    flex: 1;
    min-width: 120px;
    padding: 6px 8px;
    outline: none;
    font-size: 14px;
}

.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-card {
    flex: 1;
    min-width: 200px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 180ms ease;
}

.radio-card:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, .05);
}

.radio-card input[type="radio"]:checked + label {
    color: var(--primary);
}

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

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-indicator.complete {
    background: rgba(34, 197, 94, .1);
    color: var(--success);
}

.status-indicator.incomplete {
    background: rgba(244, 158, 11, .1);
    color: var(--warning);
}

.sticky-submit {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    margin: 24px -24px -32px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    box-shadow: 0 -4px 12px rgba(0,0,0,.1);
}

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

.progress-bar {
    background: var(--primary);
    height: 100%;
    width: 0%;
    transition: width 300ms ease;
}

@media (max-width: 768px) {
    body {
        padding: 16px 12px;
    }

    .page-header {
        padding: 24px 16px;
    }

    .page-header h1 {
        font-size: 22px;
    }

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

    .section-header h2 {
        font-size: 16px;
    }

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

    .radio-card {
        min-width: 100%;
    }

    .sticky-submit {
        flex-direction: column;
    }

    .sticky-submit button {
        width: 100%;
    }
}

/* Tooltip Styling */
.popover {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    max-width: 320px;
}

.popover-header {
    background: var(--surface);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    font-weight: 600;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.popover-body {
    color: var(--text-secondary);
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
}

.bs-popover-auto[data-popper-placement^=top] > .popover-arrow::after,
.bs-popover-top > .popover-arrow::after {
    border-top-color: var(--card);
}

.bs-popover-auto[data-popper-placement^=bottom] > .popover-arrow::after,
.bs-popover-bottom > .popover-arrow::after {
    border-bottom-color: var(--card);
}

/* Character Counter */
.char-counter {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}
