/* Global Custom Variables & Reset */
:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(21, 28, 48, 0.5);
    --bg-card-hover: rgba(30, 41, 69, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(6, 182, 212, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --primary: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --accent-purple: #a855f7;
    --accent-purple-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 10% 10%, rgba(59, 130, 246, 0.1) 0px, transparent 40%),
        radial-gradient(at 90% 90%, rgba(168, 85, 247, 0.1) 0px, transparent 40%);
    color: var(--text-main);
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* App Container */
.app-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

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

.logo-icon {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 3s infinite alternate;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo h1 span {
    font-weight: 300;
    color: var(--text-muted);
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Main Content Views */
.main-content {
    flex-grow: 1;
}

.view-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.hero-section h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards & Layout */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 30px;
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Wizard Form */
.wizard-card {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-progress {
    position: relative;
    margin-bottom: 45px;
    padding: 0 10px;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-50%);
    border-radius: 2px;
    z-index: 1;
}

.progress-bar-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: translateY(-50%);
    border-radius: 2px;
    z-index: 2;
    width: 25%;
    transition: width 0.4s ease;
}

.steps-indicator {
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 3;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.step-dot.active {
    background: var(--bg-dark);
    border-color: #06b6d4;
    color: #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.step-dot.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.step-header {
    margin-bottom: 30px;
}

.step-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #06b6d4;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.step-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 5px 0 8px 0;
}

.step-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Form Fields */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.form-group label i {
    margin-right: 6px;
    color: var(--text-muted);
}

.required {
    color: var(--accent-red);
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06b6d4;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.form-group select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* Familiarity Slider Design */
.familiarity-container {
    padding: 15px 0;
}

.slider-group {
    position: relative;
    margin-bottom: 40px;
}

.form-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: var(--transition-smooth);
}

.form-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #06b6d4;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
    transition: var(--transition-smooth);
    border: 2px solid white;
}

.form-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.familiarity-card {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.level-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--primary-gradient);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

.familiarity-card h4 {
    font-size: 1.1rem;
    color: #06b6d4;
}

.familiarity-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 90%;
}

/* Checkbox Cards Grid */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.checkbox-card {
    cursor: pointer;
    position: relative;
}

.hidden-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-card .card-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition-smooth);
}

.card-icon {
    font-size: 1.6rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.checkbox-card .card-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 5px;
}

.checkbox-card .card-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Selected Checkbox Card style */
.hidden-checkbox:checked + .card-content {
    background: rgba(59, 130, 246, 0.06);
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.hidden-checkbox:checked + .card-content .card-icon {
    color: #06b6d4;
    transform: scale(1.1);
}

.hidden-checkbox:checked + .card-content h4 {
    color: #3b82f6;
}

/* Agreement Box */
.agreement-box {
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox {
    background: var(--primary-gradient);
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    font-size: 0.75rem;
}

/* Button UI */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn.disabled, .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.hidden {
    display: none !important;
}

/* ------------------------------------------------------------- */
/* Dashboard Specific Styles */
/* ------------------------------------------------------------- */

.dashboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.controls-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
}

.controls-title h2 span {
    background: var(--accent-purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.controls-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.controls-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    transition: var(--transition-smooth);
}

.btn-outline-info {
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.btn-outline-info:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: #06b6d4;
}

.btn-outline-success {
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-outline-success:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: #10b981;
}

.btn-outline-danger {
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
}

/* Stats Overview Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-premium);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.icon-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.icon-pink {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.icon-yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-value .unit {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Charts Grid Layout */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile Navigation & Header Optimization */
@media (max-width: 900px) {
    .main-header {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
        padding: 15px 0;
        margin-bottom: 25px;
    }

    .logo {
        flex-direction: column;
        gap: 6px;
    }

    .logo h1 {
        font-size: 1.35rem;
    }

    .nav-menu {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
        gap: 6px;
        padding: 4px;
        border-radius: 10px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .nav-menu::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 6px;
        flex-shrink: 0;
        border-radius: 6px;
    }
    
    .nav-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    .logo-icon {
        font-size: 1.6rem;
    }
    .logo h1 {
        font-size: 1.2rem;
    }
    .nav-btn span {
        font-size: 0.75rem;
    }
}

.chart-card {
    margin-bottom: 0;
}

.card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: #06b6d4;
}

.card-header .subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 3px;
}

.chart-container {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

/* Custom Chart UI Design (Pure CSS/SVG Bars) */
.custom-bar-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 500;
}

.bar-label {
    color: var(--text-main);
}

.bar-count {
    color: var(--text-muted);
}

.bar-outer {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.bar-inner {
    height: 100%;
    border-radius: 5px;
    width: 0; /* Dynamic width */
    transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Colors for Chart elements */
.bar-color-1 { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.bar-color-2 { background: linear-gradient(90deg, #a855f7, #ec4899); }
.bar-color-3 { background: linear-gradient(90deg, #10b981, #059669); }
.bar-color-4 { background: linear-gradient(90deg, #f59e0b, #d97706); }
.bar-color-5 { background: linear-gradient(90deg, #6366f1, #4f46e5); }
.bar-color-6 { background: linear-gradient(90deg, #64748b, #475569); }

/* Demographic Pie Chart representation (using Flex grids/bars stacked) */
.job-pie-fallback {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pie-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pie-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.pie-label-text {
    font-size: 0.85rem;
    width: 80px;
}

.pie-bar-wrap {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.pie-bar-inner {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.pie-percentage {
    font-size: 0.85rem;
    font-weight: 600;
    width: 45px;
    text-align: right;
}

/* Data Table Component */
.data-table-card {
    padding: 0;
    overflow: hidden;
}

.table-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.table-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-header h3 i {
    color: #a855f7;
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-input-wrapper input {
    padding: 10px 14px 10px 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.85rem;
    width: 200px;
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: #a855f7;
    width: 250px;
}

.filter-bar select {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.filter-bar select:focus {
    border-color: #a855f7;
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.01);
}

.data-table tr {
    transition: var(--transition-smooth);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.data-table td .badge-job {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.data-table td .badge-interest {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 4px;
    display: inline-block;
    margin-bottom: 4px;
}

.data-table td .badge-level {
    font-weight: 700;
    color: #06b6d4;
}

.data-table td .btn-detail {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.data-table td .btn-detail:hover {
    background: rgba(168, 85, 247, 0.25);
    color: white;
}

.data-table td.no-data {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 0;
    font-size: 0.95rem;
}

/* Modal Styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

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

.modal-content {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    border-radius: 24px;
    padding: 30px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header .badge {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Modal Body Custom Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.info-block h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-display .stars {
    letter-spacing: 2px;
}

.level-display .level-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: #06b6d4;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags-container .tag {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-quote {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid #a855f7;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* AI Recommendation prescriptions */
.ai-analysis-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(236, 72, 153, 0.08) 100%);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 16px;
    padding: 18px;
    margin-top: 10px;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #d8b4fe;
}

.ai-header h4 {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
}

.ai-header i {
    animation: bounce-small 2s infinite;
}

.ai-content p {
    font-size: 0.85rem;
    color: #e9d5ff;
    line-height: 1.5;
}

/* Footer Section */
.app-footer {
    text-align: center;
    padding: 40px 0 20px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.app-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Toast Messages */
.toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-color);
    padding: 20px 35px 20px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1100;
    min-width: 320px;
}

.toast.active {
    transform: translateX(0px);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-content i {
    font-size: 1.5rem;
    color: #10b981;
}

.toast-content .message {
    display: flex;
    flex-direction: column;
}

.message .text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.message .text.text-1 {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-smooth);
    font-size: 1.2rem;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #10b981;
}

.toast.active .toast-progress {
    animation: progress-bar 4s linear forwards;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(6, 182, 212, 0.2));
    }
    100% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
    }
}

@keyframes bounce-small {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes progress-bar {
    100% {
        width: 0%;
    }
}

/* ------------------------------------------------------------- */
/* Seokyeong AI Portal Extension Styles */
/* ------------------------------------------------------------- */

/* Brand Accent Colors */
:root {
    --accent-emerald: #10b981;
    --accent-emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --bg-green-glass: rgba(16, 185, 129, 0.05);
    --border-green-glass: rgba(16, 185, 129, 0.15);
}

/* Home Section Layout */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .home-grid, .quick-nav-grid {
        grid-template-columns: 1fr !important;
    }
}

.intro-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--bg-green-glass);
    border-color: var(--border-green-glass);
}

.intro-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent-emerald-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.intro-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.intro-list li {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.intro-list li i {
    color: var(--accent-emerald);
}

.highlight-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.highlight-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.highlight-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #a7f3d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-card .desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Quick Navigation Grid */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nav-box {
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-box:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-premium);
}

.box-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Dynamic Cards Grids */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Admin Edit Badge & Buttons */
.card-actions-wrapper {
    position: relative;
}

.card-admin-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: none; /* Controlled dynamically in JS */
    gap: 8px;
    z-index: 10;
}

.btn-edit-card, .btn-delete-card {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    color: white;
}

.btn-edit-card {
    background: rgba(59, 130, 246, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.btn-edit-card:hover {
    background: #3b82f6;
    transform: scale(1.1);
}

.btn-delete-card {
    background: rgba(239, 68, 68, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-delete-card:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Admin Only Visibility Class */
.admin-only {
    display: none; /* Managed by JS */
}

/* File Upload Styles inside Form */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    padding: 10px 15px;
    border-radius: 10px;
    margin-top: 5px;
}

.file-input-inline {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    cursor: pointer;
}

.file-upload-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.file-upload-status.success {
    color: var(--accent-green);
}

.file-upload-status.uploading {
    color: #06b6d4;
    animation: pulse 1.5s infinite alternate;
}

/* Dynamic Card Details */
.lecture-card-cover {
    height: 160px;
    width: 100%;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Assignment Card Design */
.assignment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition-smooth);
}

.assignment-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.1);
}

.assign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.assign-author-badge {
    font-weight: 700;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.assign-tool-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.assign-preview-image {
    max-height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.assign-preview-video {
    max-height: 200px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    outline: none;
    background: black;
}

.assign-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.assign-doc-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
}

/* AI Tool Selector Styling */
.ai-tool-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 12px;
}
.tool-tag-label {
    cursor: pointer;
}
.tool-checkbox {
    display: none;
}
.tool-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.25s ease;
    user-select: none;
}
.tool-checkbox:checked + .tool-tag {
    background: var(--accent-emerald-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}
.tool-tag:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}
.hidden-etc-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}
.hidden-etc-input:focus {
    border-color: var(--accent-emerald);
}

