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

:root {
    --primary: #0ea5e9;
    --primary-glow: rgba(14, 165, 233, 0.6);
    --secondary: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.6);
    --accent: #f43f5e;
    --bg: #050509;
    --sidebar-bg: #0a0a10;
    --card-bg: rgba(15, 15, 20, 0.65);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #8b949e;
    --border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --error: #ef4444;
    --glass: rgba(255, 255, 255, 0.02);
}

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

body {
    background-color: var(--bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.15) 0px, transparent 40%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 40%),
        radial-gradient(at 50% 100%, rgba(244, 63, 94, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Layout */
.app-container { display: flex; min-height: 100vh; }

.sidebar {
    width: 240px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--card-border);
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 1.5rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.nav-links { 
    list-style: none; 
    padding: 0 0.5rem; 
    flex: 1; 
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.nav-links::-webkit-scrollbar { width: 4px; }
.nav-links::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.nav-divider {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #475569;
    margin: 1rem 0.75rem 0.25rem;
    letter-spacing: 0.1em;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.1rem;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.nav-links a i { font-size: 1rem; width: 18px; text-align: center; }

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 8px 20px -6px var(--primary-glow);
}

.sidebar-footer {
    padding: 1.25rem 1.5rem;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.user-info {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Main Content */
.content {
    margin-left: 240px;
    padding: 3rem;
    flex: 1;
    animation: fadeIn 0.6s ease-out;
}

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

.page-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px -5px var(--primary-glow);
}

.card:hover::after {
    opacity: 1;
}

.card-glow {
    box-shadow: 0 0 25px -5px var(--primary-glow);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.text-glow {
    text-shadow: 0 0 15px var(--primary-glow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Forms & Inputs */
.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
}

input, textarea, select {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--card-border) !important;
    border-radius: 16px !important;
    padding: 1rem 1.25rem !important;
    color: #fff !important;
    font-family: inherit !important;
    transition: all 0.3s !important;
    width: 100%;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(100);
    cursor: pointer;
    opacity: 1;
    transition: 0.3s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: invert(1) brightness(100) drop-shadow(0 0 5px rgba(255,255,255,0.8));
}

input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

/* Tables */
.table-container { overflow-x: auto; width: 100%; }
table { width: 100%; border-collapse: collapse; margin: 0; }
th {
    padding: 1.25rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.02);
}

td {
    padding: 1.25rem 1.5rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--card-border);
    font-size: 0.9rem;
}

tr:hover td { background: rgba(14, 165, 233, 0.04); }
tr:last-child td { border-bottom: none; }

/* Badges */
.badge {
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
}

.badge-pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-under_review { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; border: 1px solid rgba(14, 165, 233, 0.2); }
.badge-accepted, .badge-approved { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-rejected { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-claimed { background: rgba(99, 102, 241, 0.1); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.2); }

/* Tabs */
.tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.03);
    padding: 0.5rem;
    border-radius: 16px;
    width: fit-content;
    border: 1px solid var(--card-border);
}

.tab {
    padding: 0.6rem 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.tab:hover { color: #fff; background: rgba(255,255,255,0.05); }
.tab.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px var(--primary-glow); }

/* Auth Box Premium */
.auth-page {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.auth-box {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    padding: 3.5rem;
    border-radius: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 40px 60px -15px rgba(0, 0, 0, 0.5);
}

.auth-box h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 0.75rem;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.pulse { animation: pulse 2s infinite; }

/* Profile Premium */
.profile-header {
    height: 280px;
    border-radius: 32px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    margin-bottom: 2rem;
}

.profile-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 15, 26, 0.9), transparent);
}

.profile-name { font-size: 2.5rem; font-weight: 800; position: relative; z-index: 2; }
.profile-role { position: relative; z-index: 2; align-self: flex-start; }

/* Grid System */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { width: 70px; }
    .sidebar-logo span, .nav-links span, .nav-divider, .user-info { display: none; }
    .content { margin-left: 70px; padding: 2rem; }
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .content { padding: 1.5rem; }
    .page-title { font-size: 1.75rem; }
}
