@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #f8fafc;
    --sidebar-bg: #0f172a;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-active: rgba(255, 255, 255, 0.15);
    
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --card-blue: linear-gradient(135deg, #0ea5e9, #2563eb);
    --card-teal: linear-gradient(135deg, #14b8a6, #0f766e);
    --card-coral: linear-gradient(135deg, #f43f5e, #e11d48);
    --card-purple: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --card-dark: linear-gradient(135deg, #1e293b, #0f172a);
    --card-glass: rgba(255, 255, 255, 0.1);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-glow-blue: 0 10px 25px -5px rgba(14, 165, 233, 0.4);
    --shadow-glow-teal: 0 10px 25px -5px rgba(20, 184, 166, 0.4);
    --shadow-glow-coral: 0 10px 25px -5px rgba(244, 63, 94, 0.4);
    --shadow-glow-purple: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    padding-left: 1rem;
    letter-spacing: 0.5px;
}

.brand i {
    color: #38bdf8;
    font-size: 1.5rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #cbd5e1;
    position: relative;
}

.nav-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.nav-item:hover {
    background-color: var(--sidebar-hover);
    color: white;
}

.nav-item.active {
    background-color: var(--sidebar-active);
    color: white;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 4px;
    background-color: #38bdf8;
    border-radius: 0 4px 4px 0;
}

.nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-item .badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 2rem 2.5rem;
}

/* Topbar / Smart Search */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.topbar h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.search-bar-container {
    display: flex;
    align-items: center;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    gap: 1rem;
    border: 1px solid #e2e8f0;
}

.search-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-right: 1px solid #e2e8f0;
}

.search-input input {
    border: none;
    outline: none;
    font-size: 0.9rem;
    width: 200px;
}

.search-input i {
    color: var(--text-muted);
}

.search-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0 0.5rem;
}

.search-filter.dropdown {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    border-radius: 20px;
    padding: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.blue { background: var(--card-blue); box-shadow: var(--shadow-glow-blue); }
.stat-card.teal { background: var(--card-teal); box-shadow: var(--shadow-glow-teal); }
.stat-card.coral { background: var(--card-coral); box-shadow: var(--shadow-glow-coral); }
.stat-card.purple { background: var(--card-purple); box-shadow: var(--shadow-glow-purple); }

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Main Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Live Event Radar Card */
.event-radar {
    background: var(--card-dark);
    border-radius: 24px;
    padding: 1.5rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.radar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.radar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.radar-header p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.live-feed-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
}

.event-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.inner-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.inner-card.teal-tint {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(15, 118, 110, 0.1));
}

.inner-card.coral-tint {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(225, 29, 72, 0.1));
}

.inner-card.purple-tint {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.1));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-date {
    background: white;
    color: var(--text-dark);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    float: left;
    margin-right: 1rem;
}

.event-date span {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.event-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-details p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    clear: both;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #1e293b;
    margin-left: -8px;
}
.avatars img:first-child { margin-left: 0; }

/* Latest Jobs */
.latest-jobs {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.latest-jobs h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.job-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.job-item:last-child {
    border-bottom: none;
}

.job-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.job-icon.j1 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.job-icon.j2 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.job-icon.j3 { background: #0f172a; }

.job-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.job-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.job-info .location {
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.job-salary {
    margin-left: auto;
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
    padding: 0.3rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Coming Soon Banner */
.coming-soon-banner {
    background: linear-gradient(90deg, rgba(253, 230, 234, 1) 0%, rgba(250, 208, 224, 1) 100%);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    font-weight: 700;
    color: #be185d;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid rgba(255,255,255,0.5);
}

.coming-soon-banner i {
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
