@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --bg-dark: #090c15;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(26, 35, 56, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 210, 255, 0.4);
    --primary: #5865F2;
    --primary-glow: rgba(88, 101, 242, 0.4);
    --cyan: #00d2ff;
    --cyan-glow: rgba(0, 210, 255, 0.4);
    --accent: #ff007f;
    --gold: #ffbe0b;
    --text-main: #f0f4f8;
    --text-muted: #8b9bb4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(88, 101, 242, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(0, 210, 255, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px 0 rgba(0, 210, 255, 0.15);
}

/* Navbar */
.navbar-custom {
    background: rgba(9, 12, 21, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-nav .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn-glow {
    position: relative;
    font-weight: 700;
    border-radius: 12px;
    padding: 10px 24px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-glow-primary {
    background: linear-gradient(135deg, #5865F2 0%, #3b47c7 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-glow-primary:hover {
    background: linear-gradient(135deg, #6976f7 0%, #4754d9 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

.btn-glow-cyan {
    background: linear-gradient(135deg, #00d2ff 0%, #0072ff 100%);
    color: #0c0f17;
    box-shadow: 0 4px 20px var(--cyan-glow);
}

.btn-glow-cyan:hover {
    background: linear-gradient(135deg, #33dcff 0%, #1a82ff 100%);
    color: #0c0f17;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.6);
}

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

.btn-glow-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyan);
    color: #fff;
    transform: translateY(-2px);
}

/* Forms */
.form-control, .form-select {
    background: rgba(14, 18, 29, 0.85);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(18, 24, 38, 0.95);
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.15);
    color: #fff;
}

.form-label {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Badges */
.badge-neon {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-neon-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-neon-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-neon-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-neon-primary {
    background: rgba(88, 101, 242, 0.15);
    color: #7983f5;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

/* Hero Section */
.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1.15;
    background: linear-gradient(135deg, #ffffff 30%, var(--cyan) 80%, #7928ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Stat Cards */
.stat-card {
    padding: 24px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--cyan);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables (Eye-friendly Dark Mode) */
.table, .table-custom {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--text-main) !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.08) !important;
    background-color: transparent !important;
    color: var(--text-main) !important;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    background-color: transparent !important;
    color: var(--text-main) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.table-custom th, .table th {
    background: rgba(14, 18, 29, 0.9) !important;
    color: var(--cyan) !important;
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 2px solid rgba(0, 210, 255, 0.25) !important;
    padding: 14px 16px;
    letter-spacing: 0.3px;
}

.table-custom td, .table td {
    border-color: rgba(255, 255, 255, 0.06) !important;
    padding: 14px 16px;
    font-size: 0.92rem;
    color: #cbd5e1 !important;
}

.table-custom tbody tr, .table tbody tr {
    background: rgba(18, 24, 38, 0.35) !important;
    transition: all 0.2s ease;
}

.table-custom tbody tr:nth-of-type(even), .table tbody tr:nth-of-type(even) {
    background: rgba(24, 32, 50, 0.45) !important;
}

.table-custom tbody tr:hover td, .table tbody tr:hover td {
    background: rgba(0, 210, 255, 0.08) !important;
    color: #fff !important;
}

/* Tabs (Eye-friendly Dark Mode) */
.nav-pills {
    background: rgba(12, 16, 26, 0.75);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    display: inline-flex;
}

.nav-pills .nav-link {
    color: var(--text-muted) !important;
    background: transparent !important;
    border-radius: 10px;
    padding: 10px 22px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #fff !important;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.85) 0%, rgba(59, 71, 199, 0.95) 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(88, 101, 242, 0.6) !important;
    box-shadow: 0 4px 15px var(--primary-glow) !important;
}

/* Modals */
.modal-content {
    background: #0d121f !important;
    border: 1px solid rgba(0, 210, 255, 0.25) !important;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    color: var(--text-main);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(18, 24, 38, 0.6);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(18, 24, 38, 0.6);
}

/* Lists and Cards */
.list-group-item {
    background-color: rgba(18, 24, 38, 0.7) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

.card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: 1px solid transparent;
}
.alert-success { background: rgba(16, 185, 129, 0.12); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.alert-danger { background: rgba(239, 68, 68, 0.12); color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
.alert-warning { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.alert-info { background: rgba(0, 210, 255, 0.12); color: var(--cyan); border-color: rgba(0, 210, 255, 0.3); }


/* Pagination */
.pagination-custom .page-link {
    background: rgba(14, 18, 29, 0.8) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
    border-radius: 8px !important;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination-custom .page-link:hover {
    background: rgba(0, 210, 255, 0.15) !important;
    border-color: var(--cyan) !important;
    color: #fff !important;
}

.pagination-custom .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, #3b47c7 100%) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px var(--primary-glow) !important;
}

.pagination-custom .page-item.disabled .page-link {
    background: rgba(18, 24, 38, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.2) !important;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: rgba(9, 12, 21, 0.95);
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 0.88rem;
}
