/* CSS Design System for BusyOnMain */
:root {
    /* Harmonious Cyberpunk Neon HSL Palettes */
    --bg-dark: #0a0a12;
    --card-bg: rgba(20, 20, 35, 0.45);
    --card-border: rgba(255, 255, 255, 0.07);
    --card-border-hover: rgba(139, 92, 246, 0.3);
    
    --neon-purple: #9d4edd;
    --neon-cyan: #00f5d4;
    --neon-pink: #ff007f;
    --neon-yellow: #ffb703;
    
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    /* Font Stack */
    --font-english: 'Outfit', sans-serif;
    --font-korean: 'Noto Sans KR', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-korean), var(--font-english);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Neon Glow Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--neon-purple);
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--neon-cyan);
    bottom: -150px;
    right: -100px;
}
.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--neon-pink);
    top: 40%;
    left: 60%;
}

.app-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Header & Energy Bar */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.4));
}

.logo-text h1 {
    font-family: var(--font-english);
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, #dedede);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text .sub-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brain-energy-panel {
    width: 380px;
}

.energy-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.energy-value {
    font-family: var(--font-english);
    font-weight: 700;
    color: var(--neon-cyan);
}

.energy-bar-bg {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.energy-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.5);
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.energy-status-text {
    font-size: 0.75rem;
    margin-top: 6px;
    text-align: right;
    color: var(--neon-cyan);
    font-weight: 500;
    transition: color 0.3s;
}

/* Glassmorphism Cards styling */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 8px 32px 0 rgba(157, 78, 221, 0.05);
}

/* App Grid Layout */
.app-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 20px;
    flex-grow: 1;
}

/* Control Panel (Left Side) */
.control-panel {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 85vh;
    overflow-y: auto;
}

.panel-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header h2 i {
    color: var(--neon-purple);
}

.panel-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 3-Axis Control Mode Indicator & Sidebar Sliders */
.mode-indicator-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    border-radius: 12px;
}

.mode-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mode-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

/* 3축 네온 뱃지 스타일 */
.mode-badge.default {
    background: rgba(157, 78, 221, 0.15);
    color: var(--neon-purple);
    border: 1px solid var(--neon-purple);
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}

.mode-badge.manual {
    background: rgba(255, 183, 3, 0.15);
    color: var(--neon-yellow);
    border: 1px solid var(--neon-yellow);
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.2);
}

.mode-badge.personality {
    background: rgba(0, 245, 212, 0.15);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

/* 3대 임계값 수동 슬라이더 섹션 */
.limits-sliders-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.limits-sliders-section h3 {
    font-size: 1rem;
    font-weight: 700;
}

.limits-sliders-section h3 i {
    color: var(--neon-cyan);
}

/* 성향 진단 바로가기 네온 배너 */
.scanner-shortcut-banner {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(0, 245, 212, 0.05));
    border: 1px solid rgba(157, 78, 221, 0.25);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scanner-shortcut-banner:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
    transform: translateY(-2px);
}

.shortcut-icon {
    font-size: 1.6rem;
    color: var(--neon-purple);
    background: rgba(255, 255, 255, 0.03);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 8px rgba(157, 78, 221, 0.3);
    transition: color 0.3s, transform 0.3s;
}

.scanner-shortcut-banner:hover .shortcut-icon {
    color: var(--neon-cyan);
    transform: rotate(15deg);
}

.shortcut-text {
    flex-grow: 1;
}

.shortcut-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.shortcut-text p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.arrow-icon {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.3s, color 0.3s;
}

.scanner-shortcut-banner:hover .arrow-icon {
    transform: translateX(4px);
    color: var(--neon-cyan);
}

/* Questionnaire & Question Cards */
.questionnaire-tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.question-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.question-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-purple), transparent);
    opacity: 0.3;
}

.question-block:hover {
    border-color: rgba(157, 78, 221, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.q-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.q-num {
    background: linear-gradient(135deg, var(--neon-purple), #7209b7);
    color: white;
    font-family: var(--font-english);
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(157, 78, 221, 0.4);
}

.q-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 8px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.option-btn.active {
    background: rgba(157, 78, 221, 0.12);
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
}

.opt-badge {
    font-family: var(--font-english);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--neon-purple);
    transition: color 0.3s;
}

.option-btn.active .opt-badge {
    color: var(--neon-cyan);
}

.opt-title {
    font-size: 0.85rem;
    font-weight: 700;
}

.opt-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}


/* Sliders Section */
.weight-sliders-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title-with-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title-with-btn h3 {
    font-size: 1rem;
    font-weight: 700;
}

.text-btn {
    background: none;
    border: none;
    color: var(--neon-cyan);
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.text-btn:hover {
    text-decoration: underline;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.slider-label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.slider-label i {
    font-size: 0.75rem;
    color: var(--neon-purple);
}

.slider-val {
    font-family: var(--font-english);
    font-weight: 700;
    color: var(--neon-purple);
}

/* Custom Slider Styling */
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: background 0.3s;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--neon-purple);
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(157, 78, 221, 0.8);
    transition: transform 0.1s, background-color 0.1s;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.8);
}

/* Soft Boundary Panel */
.soft-boundary-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.soft-boundary-panel h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.boundary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.boundary-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.boundary-item .lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.boundary-item .val {
    font-family: var(--font-english), var(--font-korean);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

/* Right Side Dashboard */
.dashboard-board {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 85vh;
}

/* Toolbar */
.toolbar {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.toolbar-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toolbar-section h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.btn-group {
    display: flex;
    gap: 10px;
}

.action-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), #7209b7);
    color: white;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.telegram-form-inline {
    display: flex;
    gap: 8px;
}

.styled-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    color: white;
    font-size: 0.8rem;
    width: 170px;
    outline: none;
    transition: border-color 0.3s;
}

.styled-input:focus {
    border-color: var(--neon-purple);
}

.icon-btn {
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.3);
    color: var(--neon-purple);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.icon-btn:hover {
    background: var(--neon-purple);
    color: white;
    transform: scale(1.05);
}

/* 3-Tier Spectrums Container */
.tier-spectrum-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    flex-grow: 1;
    min-height: 0; /* Ensures overflow works in flex child */
}

.tier-column {
    background: rgba(10, 10, 20, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 62vh;
}

.tier-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-badge {
    align-self: flex-start;
    font-family: var(--font-english);
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.badge-tier-1 {
    background: rgba(0, 245, 212, 0.15);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.badge-tier-2 {
    background: rgba(255, 183, 3, 0.15);
    color: var(--neon-yellow);
    border: 1px solid var(--neon-yellow);
}

.badge-tier-3 {
    background: rgba(255, 0, 127, 0.15);
    color: var(--neon-pink);
    border: 1px solid var(--neon-pink);
}

.tier-header h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tier-count {
    background: rgba(255, 255, 255, 0.05);
    font-family: var(--font-english);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    color: var(--text-muted);
}

.tier-1-column .tier-count { color: var(--neon-cyan); }
.tier-2-column .tier-count { color: var(--neon-yellow); }
.tier-3-column .tier-count { color: var(--neon-pink); }

.tier-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 4px;
}

/* Job Card Styling */
.job-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0; /* flex-shrink: 1로 인한 카드 찌그러짐 및 오버랩 현상 방지 */
}

.job-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
}

/* Tier specific card left border highlighting */
.tier-1-column .job-card { border-left: 3px solid var(--neon-cyan); }
.tier-2-column .job-card { border-left: 3px solid var(--neon-yellow); }
.tier-3-column .job-card { border-left: 3px solid var(--neon-pink); }

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.corp-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.score-badge {
    font-family: var(--font-english);
    font-size: 1.1rem;
    font-weight: 900;
}

.tier-1-column .score-badge { color: var(--neon-cyan); }
.tier-2-column .score-badge { color: var(--neon-yellow); }
.tier-3-column .score-badge { color: var(--neon-pink); }

.job-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.15);
    padding: 10px;
    border-radius: 10px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-row i {
    width: 14px;
    color: var(--neon-purple);
}

.job-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-feedback {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.1);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.4;
}

.card-feedback .fb-title {
    font-weight: 700;
    color: var(--neon-purple);
    display: block;
    margin-bottom: 2px;
}

.card-feedback .fb-text {
    color: var(--text-primary);
}

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

.send-tg-btn {
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.2);
    color: var(--neon-cyan);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.send-tg-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

/* Modals styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.close-btn:hover {
    color: white;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-family: monospace;
    font-size: 0.8rem;
    height: 250px;
    resize: none;
    outline: none;
}

.modal-textarea:focus {
    border-color: var(--neon-purple);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Smartphone Telegram Simulator Styling */
.tg-simulator-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    z-index: 999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.4s;
    height: 480px;
}

.tg-simulator-panel.collapsed {
    height: 48px;
    transform: translateY(0);
}

.tg-sim-header {
    background: linear-gradient(135deg, #1d2a3a, #0d1520);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.tg-simulator-panel:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}

.tg-sim-body {
    height: calc(100% - 48px);
    background: #0f172a;
    padding: 8px;
}

/* Simulated Phone UI */
.phone-screen {
    width: 100%;
    height: 100%;
    background: #17212b; /* Telegram Default dark theme bg */
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-header {
    height: 24px;
    background: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 0.65rem;
    color: white;
}

.phone-camera {
    width: 50px;
    height: 12px;
    background: #000;
    border-radius: 6px;
}

.phone-status-icons {
    display: flex;
    gap: 4px;
}

.phone-app-bar {
    background: #24303f;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 12px;
    color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.phone-app-bar i {
    font-size: 0.85rem;
    cursor: pointer;
}

.chat-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.chat-name {
    font-size: 0.8rem;
    font-weight: 700;
}

.chat-status {
    font-size: 0.6rem;
    color: #5288c1;
}

.phone-messages-area {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-image: radial-gradient(rgba(0,0,0,0.15) 20%, transparent 20%);
    background-size: 12px 12px;
}

.system-bubble {
    align-self: center;
    background: rgba(0, 0, 0, 0.35);
    color: #9eabb6;
    font-size: 0.65rem;
    padding: 6px 12px;
    border-radius: 10px;
    max-width: 85%;
    text-align: center;
    line-height: 1.3;
}

/* Telegram Message Bubble styling */
.tg-bubble {
    align-self: flex-start;
    background: #182533;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px 12px 12px 2px;
    padding: 10px;
    max-width: 85%;
    color: #f5f5f5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-size: 0.7rem;
    line-height: 1.4;
    animation: bubblePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tg-bubble-header {
    font-weight: 700;
    color: #5288c1;
    margin-bottom: 4px;
    display: block;
}

.tg-bubble-body {
    white-space: pre-line;
}

.tg-bubble-time {
    display: block;
    text-align: right;
    font-size: 0.55rem;
    color: #708499;
    margin-top: 4px;
}

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

/* Card Sorting Transition */
.card-list {
    transition: all 0.5s ease;
}

.job-card.moving {
    opacity: 0.3;
    transform: scale(0.95);
}

/* Dashboard Tabs Layout */
.dashboard-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 2px;
    margin-top: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px 12px 0 0;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--neon-cyan);
    background: rgba(0, 245, 212, 0.03);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.6);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

/* Tab Contents & Animation */
.tab-content-container {
    flex-grow: 1;
    position: relative;
    min-height: 0;
}

.tab-content {
    animation: fadeInTab 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
}

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

/* 5D Scanner Tab Container Styling */
.scanner-tab-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    height: 64vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.scanner-tab-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.scanner-tab-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.scanner-tab-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

.scanner-tab-footer {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(157, 78, 221, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-large:hover {
    box-shadow: 0 6px 25px rgba(0, 245, 212, 0.5);
    transform: translateY(-3px) scale(1.02);
}

/* --- 가중치 조절 락 버튼 및 스켈레톤 로딩 스타일 --- */

/* 가중치 락 버튼 래퍼 및 버튼 스타일 */
.slider-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lock-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-muted);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lock-btn:hover {
    color: var(--neon-cyan);
    border-color: rgba(0, 245, 212, 0.3);
    background: rgba(0, 245, 212, 0.05);
}

/* 잠금(Locked) 상태의 Cyberpunk Neon-pink 스타일링 */
.lock-btn.locked {
    color: var(--neon-pink);
    border-color: var(--neon-pink);
    background: rgba(255, 0, 127, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

/* 스켈레톤 로딩 스타일 및 펄스 애니메이션 */
.skeleton-card {
    pointer-events: none;
    box-shadow: none !important;
}

.skeleton-card::before {
    display: none; /* 하이라이트 보더 비활성화 */
}

.skeleton-text {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-text.short {
    width: 40%;
    height: 14px;
}

.skeleton-text.medium {
    width: 75%;
    height: 18px;
    margin-top: 4px;
}

.skeleton-text.long {
    width: 90%;
    height: 12px;
    margin: 4px 0;
}

/* 펄스 애니메이션 키프레임 */
@keyframes skeleton-pulse {
    0% {
        opacity: 0.3;
        background-color: rgba(255, 255, 255, 0.03);
    }
    50% {
        opacity: 0.7;
        background-color: rgba(255, 255, 255, 0.07);
    }
    100% {
        opacity: 0.3;
        background-color: rgba(255, 255, 255, 0.03);
    }
}

/* --- 출발 기준지 제어 패널 스타일 --- */
.center-location-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s;
}

.center-location-panel:hover {
    border-color: rgba(0, 245, 212, 0.2);
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.03);
}

.location-lbl {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-lbl i {
    color: var(--neon-cyan);
}

.location-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.location-address-input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    cursor: default;
}

.location-btn {
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.2);
    color: var(--neon-cyan);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-btn:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.4);
    transform: scale(1.05);
}

.coords-text {
    font-family: var(--font-english);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-align: right;
}

/* 워크넷 공식 상세 채용 공고 이동 버튼 (v1.5.0) (11.7) */
.worknet-link-btn {
    text-decoration: none;
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.2);
    color: var(--neon-purple);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.worknet-link-btn:hover {
    background: var(--neon-purple);
    color: white !important;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.4);
    transform: translateY(-1px);
}

/* OpenAPI 발급 안내 링크 스타일 */
.help-link {
    color: var(--neon-purple);
    font-size: 0.7rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 6px 8px;
}

.help-link:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.4);
    text-decoration: underline;
}

