@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(18, 24, 38, 0.75);
    --border-glass: rgba(255, 255, 255, 0.08);
    --primary-glow: #6366f1;
    --primary-hover: #4f46e5;
    --accent-teal: #14b8a6;
    --accent-purple: #a855f7;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-blur: blur(16px);
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(20, 184, 166, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 2rem;
}

/* Glassmorphism Cards & Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.12);
}

/* Navbar */
.navbar-glass {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.85rem 1.5rem;
}

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

/* Metric KPI Cards */
.kpi-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.kpi-icon.indigo { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.kpi-icon.emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.kpi-icon.purple { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.kpi-icon.rose { background: rgba(244, 63, 94, 0.2); color: #fb7185; }

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.kpi-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Custom Buttons */
.btn-glow-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.6rem;
    padding: 0.65rem 1.3rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    transition: all 0.25s ease;
}

.btn-glow-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    color: white;
}

.btn-glow-teal {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.6rem;
    padding: 0.65rem 1.3rem;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
    transition: all 0.25s ease;
}

.btn-glow-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.6);
    color: white;
}

/* Status Badges */
.badge-status {
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-discovered { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-processing { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-processed { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-published { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-failed { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }

/* Table Styling */
.table-custom {
    width: 100%;
    color: var(--text-main);
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table-custom th {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-glass);
}

.table-custom td {
    background: rgba(18, 24, 38, 0.6);
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.table-custom td:first-child {
    border-left: 1px solid var(--border-glass);
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.table-custom td:last-child {
    border-right: 1px solid var(--border-glass);
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.table-custom tr:hover td {
    background: rgba(30, 41, 59, 0.8);
}

/* Form Controls */
.form-control-glass {
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 0.6rem;
    color: var(--text-main);
    padding: 0.65rem 1rem;
}

.form-control-glass:focus {
    background: rgba(11, 15, 25, 0.8);
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    color: var(--text-main);
}