/* Dashboard Layout */
body {
    margin: 0;
    overflow-x: hidden;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
}

.sidebar-header {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-logo {
    font-size: 2.5rem;
    color: var(--accent-highlight);
    margin-bottom: 10px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-nav {
    padding: 20px 0;
    overflow-y: auto;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item i {
    width: 25px;
    font-size: 1.1rem;
    margin-right: 15px;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-highlight);
    border-left-color: var(--accent-highlight);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logout-btn:hover {
    background-color: var(--danger);
    color: white;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.topbar {
    height: 70px;
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 99;
}

.topbar-left h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.notification-bell:hover {
    color: var(--accent-highlight);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
}

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

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Dashboard Content */
.dashboard-content {
    padding: 30px;
    flex-grow: 1;
}

/* Profile Summary Card */
.profile-summary-card {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.profile-summary-card::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, rgba(0,0,0,0) 70%);
}

.profile-summary-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-highlight);
    position: relative;
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background-color: var(--success);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
}

.profile-details h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.intern-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-highlight);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(22, 163, 74, 0.2);
    color: var(--success);
    border-radius: 4px;
    font-size: 0.85rem;
    margin-left: 10px;
}

/* Stats Row */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent-highlight);
    margin-bottom: 15px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Rajdhani', sans-serif;
}

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

/* Activity Feed */
.activity-feed {
    margin-top: 30px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.activity-content p {
    margin-bottom: 5px;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================
   LIGHT MODE - DASHBOARD
   ============================ */

[data-theme="light"] .sidebar {
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .sidebar-header {
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .sidebar-title {
    color: #0f172a;
}

[data-theme="light"] .nav-item {
    color: #475569;
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
    background-color: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border-left-color: #2563eb;
}

[data-theme="light"] .sidebar-footer {
    border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .logout-btn {
    border: 1px solid #ef4444;
    color: #ef4444;
}

[data-theme="light"] .logout-btn:hover {
    background-color: #ef4444;
    color: white;
}

[data-theme="light"] .topbar {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .topbar-left h2 {
    color: #0f172a;
}

[data-theme="light"] .stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stat-value {
    color: #0f172a;
}

[data-theme="light"] .activity-item {
    border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .profile-summary-card::after {
    background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, rgba(255,255,255,0) 70%);
}
