/* ============================================
   MODULE 4: ALUMNI DASHBOARD
   ============================================ */

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* === Sidebar === */
.dash-sidebar {
    width: 270px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: var(--z-sticky);
    transition: var(--transition);
}

.dash-sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.dash-sidebar-header .logo-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.dash-sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.3px;
}

/* Sidebar User Card */
.sidebar-user {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
}

.sidebar-user-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-user-card .user-meta h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-user-card .user-meta span {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

/* Nav Links */
.dash-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 12px 16px 8px;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    margin-bottom: 4px;
    position: relative;
}

.dash-nav-link i {
    font-size: 20px;
    color: var(--text-muted);
    width: 24px;
    text-align: center;
    transition: var(--transition-fast);
}

.dash-nav-link:hover {
    background: var(--bg-body);
    color: var(--text-primary);
}

.dash-nav-link:hover i {
    color: var(--primary);
}

.dash-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.dash-nav-link.active i {
    color: var(--primary);
}

.dash-nav-link .nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Sidebar Footer */
.dash-sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--border);
}

.dash-sidebar-footer .dash-nav-link {
    color: var(--accent);
}

.dash-sidebar-footer .dash-nav-link:hover {
    background: var(--accent-light);
}

/* === Main Area === */
.dash-main {
    margin-left: 270px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-body);
}

/* Topbar */
.dash-topbar {
    height: 72px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.dash-search {
    display: flex;
    align-items: center;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    width: 320px;
    transition: var(--transition-fast);
}

.dash-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.dash-search i {
    font-size: 18px;
    color: var(--text-muted);
    margin-right: 10px;
}

.dash-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--text-primary);
}

.dash-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.topbar-icon-btn:hover {
    background: var(--bg-body);
    color: var(--primary);
    border-color: var(--primary-light);
}

.topbar-icon-btn .notif-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-card);
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.topbar-profile:hover {
    background: var(--bg-body);
}

.topbar-profile img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.topbar-profile span {
    font-size: 14px;
    font-weight: 600;
}

/* === Dashboard Views === */
.dash-view {
    padding: 32px;
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Page Title */
.page-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.page-title-bar h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.page-title-bar p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Stats Row */
.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.dash-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.dash-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.dash-stat-card .stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.purple { background: #eef2ff; color: #4f46e5; }
.stat-icon.blue { background: #e0f2fe; color: #0ea5e9; }
.stat-icon.green { background: #dcfce7; color: #16a34a; }
.stat-icon.amber { background: #fef3c7; color: #d97706; }
.stat-icon.red { background: #fff1f2; color: #f43f5e; }

/* Extend color system to all icon components */
.nsc-icon.purple, .ms-stat-icon.purple, .ann-icon.purple { background: #eef2ff; color: #4f46e5; }
.nsc-icon.blue, .ms-stat-icon.blue, .ann-icon.blue { background: #e0f2fe; color: #0ea5e9; }
.nsc-icon.green, .ms-stat-icon.green, .ann-icon.green { background: #dcfce7; color: #16a34a; }
.nsc-icon.amber, .ms-stat-icon.amber, .ann-icon.amber { background: #fef3c7; color: #d97706; }
.nsc-icon.red, .ms-stat-icon.red, .ann-icon.red { background: #fff1f2; color: #f43f5e; }

.dash-stat-card .stat-info h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.dash-stat-card .stat-info p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Content Panels */
.dash-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
}

.dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.dash-section-header h3 {
    font-size: 17px;
    font-weight: 700;
}

.dash-section-body {
    padding: 24px;
}

/* Profile Card (Dashboard) */
.profile-overview {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

.profile-card-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
}

.profile-card-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--gradient-primary);
}

.profile-card-main .profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    object-fit: cover;
    position: relative;
    z-index: 2;
    margin: 20px auto 16px;
}

.profile-card-main h3 {
    font-size: 20px;
    font-weight: 700;
}

.profile-card-main .profile-role {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.profile-card-main .profile-company {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.profile-card-main .profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.profile-card-main .profile-stats .ps-item {
    text-align: center;
}

.ps-item .ps-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.ps-item .ps-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Details */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.detail-item .di-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.detail-item .di-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-item .di-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Alumni Network Grid */
.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.network-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.network-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.network-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.network-card .nc-info h4 {
    font-size: 14px;
    font-weight: 700;
}

.network-card .nc-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.network-card .nc-info .nc-batch {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

/* Chat Panel */
.chat-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: calc(100vh - 72px - 64px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chat-contacts {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.chat-contacts-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.chat-contacts-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.chat-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-body);
    padding: 3px;
    border-radius: var(--radius-sm);
}

.chat-tab {
    flex: 1;
    padding: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-xs);
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.chat-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    margin-bottom: 2px;
}

.chat-contact-item:hover,
.chat-contact-item.active {
    background: var(--primary-light);
}

.chat-contact-item .cc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
}

.chat-contact-item .cc-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--bg-card);
    position: absolute;
    bottom: 0;
    right: 0;
}

.chat-contact-item .cc-meta {
    flex: 1;
    min-width: 0;
}

.chat-contact-item .cc-meta h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-contact-item .cc-meta p {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-contact-item .cc-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Chat Main Area */
.chat-main {
    display: flex;
    flex-direction: column;
}

.chat-main-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-main-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.chat-main-header .ch-info h4 {
    font-size: 15px;
    font-weight: 700;
}

.chat-main-header .ch-info span {
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-body);
}

.chat-msg {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.chat-msg.sent {
    align-self: flex-end;
}

.chat-msg.received {
    align-self: flex-start;
}

.chat-msg .msg-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.5;
}

.chat-msg.sent .msg-bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg.received .msg-bubble {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.msg-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.chat-msg .msg-time {
    font-size: 11px;
    color: var(--text-muted);
}

.chat-msg.sent .msg-meta {
    justify-content: flex-end;
}
.chat-msg.sent .msg-time {
    text-align: right;
}

.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    outline: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.chat-input-area input:focus {
    border-color: var(--primary);
}

.chat-input-area .send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-input-area .send-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Activity/Notifications Panel */
.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

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

.activity-item .act-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.activity-item .act-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.activity-item .act-content p {
    font-size: 13px;
    color: var(--text-muted);
}

.activity-item .act-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
}

/* Jobs List */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.job-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.job-card .job-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

.job-card .job-info {
    flex: 1;
}

.job-card .job-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.job-card .job-info .job-company {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.job-card .job-tags {
    display: flex;
    gap: 6px;
}

.job-card .job-tags span {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-body);
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-weight: 500;
}

/* Filter Bar (Maintained in global section below) */

.filter-bar .filter-input {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
}

.filter-bar .filter-input i {
    color: var(--text-muted);
    margin-right: 10px;
    font-size: 18px;
}

.filter-bar .filter-input input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
}

.filter-bar select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Event Cards (Dashboard) */
.dash-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.dash-event-item:hover {
    background: var(--primary-light);
}

.dash-event-item .ev-date {
    width: 52px;
    height: 56px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.dash-event-item .ev-date .ev-day {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.dash-event-item .ev-date .ev-month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.dash-event-item .ev-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.dash-event-item .ev-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Mobile Toggle */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

/* Overview Two-Column Layout */
.overview-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Settings Toggle Row */
.setting-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}
.setting-toggle:last-child {
    border-bottom: none;
}

/* ============================================
   PREMIUM CHAT REDESIGN
   ============================================ */
.chat-header-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-stat-pill {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px;
    background: var(--bg-body); border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.chat-stat-pill.online-pill { color: #10b981; }
.chat-stat-pill i { font-size: 14px; color: var(--primary); }
.chat-stat-pill.online-pill i { color: #10b981; }

.chat-search { padding: 0 16px 12px; }
.chat-tab i { font-size: 14px; }

.ch-avatar-wrap { position: relative; flex-shrink: 0; }
.ch-online-dot {
    position: absolute; bottom: 2px; right: 2px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #10b981; border: 2px solid var(--bg-card);
}
.ch-status { font-size: 12px; font-weight: 500; }
.ch-status.online { color: #10b981; }
.ch-status.offline { color: var(--text-muted); }
.ch-actions { margin-left: auto; display: flex; gap: 6px; }

.chat-date-divider {
    text-align: center; padding: 16px 0; position: relative;
}
.chat-date-divider::before {
    content: ''; position: absolute; left: 10%; right: 10%;
    top: 50%; height: 1px; background: var(--border);
}
.chat-date-divider span {
    position: relative; z-index: 1;
    background: var(--bg-body); padding: 4px 16px;
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 12px; border: 1px solid var(--border);
}

.typing-indicator {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; color: var(--text-muted); font-size: 13px;
}
.typing-dots { display: flex; gap: 3px; }
.typing-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-muted); animation: typingBounce 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-attach-btn { flex-shrink: 0; }

/* ============================================
   PREMIUM NOTIFICATIONS REDESIGN
   ============================================ */
.notif-header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.notif-counter {
    padding: 6px 16px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(79,70,229,0.05));
    color: var(--primary); font-size: 13px; font-weight: 700;
    border: 1px solid rgba(79,70,229,0.2);
}

.notif-summary-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-bottom: 24px;
}
.notif-summary-card {
    display: flex; align-items: center; gap: 14px;
    padding: 20px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border);
    cursor: pointer; transition: var(--transition-fast);
}
.notif-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.nsc-icon {
    width: 44px; height: 44px; min-width: 44px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.nsc-info { display: flex; flex-direction: column; }
.nsc-count { font-size: 22px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.nsc-label { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-top: 2px; }

.notif-list { display: flex; flex-direction: column; }
.notif-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    position: relative; transition: all 0.3s ease;
    cursor: default;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(79,70,229,0.03); }
.notif-item.read { opacity: 0.5; }
.notif-unread-dot {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--primary);
}
.notif-icon { flex-shrink: 0; }
.notif-content { flex: 1; min-width: 0; }
.notif-content h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.notif-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 6px; }
.notif-time { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.notif-dismiss {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    border: none; background: transparent; color: var(--text-muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 18px; transition: var(--transition-fast);
}
.notif-dismiss:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ============================================
   PREMIUM MENTORSHIP REDESIGN
   ============================================ */
.mentor-hero-card {
    position: relative; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border);
    overflow: hidden; margin-bottom: 24px;
}
.mentor-hero-bg {
    position: absolute; top: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #0ea5e9);
}
.mentor-hero-content {
    position: relative; z-index: 2;
    display: flex; align-items: flex-start; gap: 24px;
    padding: 32px 32px 28px;
}
.mentor-hero-avatar {
    width: 100px; height: 100px; border-radius: 50%;
    border: 4px solid var(--bg-card); box-shadow: var(--shadow-md);
    margin-top: 20px; flex-shrink: 0;
}
.mentor-hero-info { padding-top: 60px; flex: 1; min-width: 0; }
.mentor-hero-name { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mentor-hero-name h2 { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.mentor-verified { color: var(--primary); font-size: 20px; }
.mentor-hero-role { color: var(--primary); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.mentor-hero-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.mentor-hero-stats {
    display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.mhs-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    padding: 6px 14px; border-radius: 20px;
    background: var(--bg-body); border: 1px solid var(--border);
}
.mhs-item i { color: var(--primary); font-size: 14px; }

.mentorship-stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-bottom: 24px;
}
.ms-stat-card {
    display: flex; align-items: center; gap: 14px;
    padding: 20px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border);
    transition: var(--transition-fast);
}
.ms-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ms-stat-icon {
    width: 48px; height: 48px; min-width: 48px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.ms-stat-info h3 { font-size: 22px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.ms-stat-info p { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

/* Announcements */
.announcement-list { display: flex; flex-direction: column; }
.announcement-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}
.announcement-item:last-child { border-bottom: none; }
.announcement-item:hover { background: rgba(79,70,229,0.03); }
.ann-icon {
    width: 40px; height: 40px; min-width: 40px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    flex-shrink: 0;
}
.ann-content { flex: 1; min-width: 0; }
.ann-content h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.ann-content p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 6px; }
.ann-time { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.ann-badge {
    flex-shrink: 0; padding: 4px 10px; border-radius: 12px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    align-self: flex-start;
}
.ann-badge.new { background: rgba(79,70,229,0.12); color: var(--primary); }

/* Premium Table */
.premium-table {
    width: 100%; border-collapse: collapse;
}
.premium-table thead tr {
    border-bottom: 2px solid var(--border);
}
.premium-table th {
    padding: 14px 16px; text-align: left;
    font-size: 11px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.2px;
}
.premium-table td { padding: 14px 16px; font-size: 14px; }
.premium-table tbody tr { border-bottom: 1px solid var(--border); }
.premium-table tbody tr:last-child { border-bottom: none; }
.premium-table tbody tr:hover { background: rgba(79,70,229,0.03); }

.status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; padding: 4px 10px;
    border-radius: 12px;
}
.status-badge.upcoming { color: #10b981; background: rgba(16,185,129,0.1); }
.status-badge.planned { color: #f59e0b; background: rgba(245,158,11,0.1); }
.status-badge.completed { color: var(--text-muted); background: var(--bg-body); }

/* Resource Cards */
.resource-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.resource-card {
    padding: 24px; border-radius: var(--radius-lg);
    background: var(--bg-body); border: 1px solid var(--border);
    text-align: center; cursor: pointer; transition: var(--transition-fast);
}
.resource-card:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.rc-icon {
    width: 52px; height: 52px; border-radius: var(--radius-md);
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin: 0 auto 12px;
}
.resource-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.resource-card p { font-size: 12px; color: var(--text-muted); }

/* Responsive for new components */
@media (max-width: 1024px) {
    .notif-summary-row { grid-template-columns: repeat(2, 1fr); }
    .mentorship-stats-row { grid-template-columns: repeat(2, 1fr); }
    .resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .chat-header-stats { display: none; }
    .chat-tab i { display: none; }
    .notif-summary-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .notif-item { padding: 16px; gap: 10px; }
    .notif-header-actions { flex-direction: column; align-items: flex-start; gap: 8px; }
    .mentor-hero-content { flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; }
    .mentor-hero-info { padding-top: 16px; }
    .mentor-hero-name { justify-content: center; }
    .mentor-hero-stats { justify-content: center; }
    .mentor-hero-avatar { margin-top: 40px; }
    .mentorship-stats-row { grid-template-columns: 1fr 1fr; }
    .resource-grid { grid-template-columns: 1fr 1fr; }
    .announcement-item { padding: 16px; }
    .ch-actions { gap: 4px; }
}
@media (max-width: 480px) {
    .notif-summary-row { grid-template-columns: 1fr 1fr; }
    .mentorship-stats-row { grid-template-columns: 1fr; }
    .resource-grid { grid-template-columns: 1fr; }
    .mentor-hero-bg { height: 80px; }
    .notif-item { flex-wrap: wrap; }
    .notif-unread-dot { position: static; transform: none; }
}

/* Event Card Row Layout */
.event-card-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .event-card-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .event-card-row .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mentorship table overflow */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mentor Card Layout */
.mentor-card-flex {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.mentor-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .mentor-card-flex {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .mentor-card-flex > div {
        min-width: 0 !important;
    }
    .mentor-actions {
        justify-content: center;
    }
    .mentor-actions .btn {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .mentor-actions {
        flex-direction: column;
    }
    .mentor-actions .btn {
        width: 100%;
    }
}

/* === Responsive Dashboard === */
@media (max-width: 1024px) {
    .dash-sidebar {
        width: 80px;
    }
    .dash-sidebar-header h2,
    .sidebar-user,
    .nav-section-label,
    .dash-nav-link span,
    .dash-nav-link .nav-badge {
        display: none;
    }
    .dash-nav-link {
        justify-content: center;
        padding: 14px;
    }
    .dash-nav-link i {
        margin: 0;
        font-size: 22px;
    }
    .dash-main {
        margin-left: 80px;
    }
    .chat-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .chat-contacts {
        max-height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .chat-main {
        height: 500px;
    }
    .profile-overview {
        grid-template-columns: 1fr;
    }
    .overview-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dash-sidebar {
        transform: translateX(-100%);
        width: 270px;
    }
    .dash-sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }
    .dash-sidebar-header h2,
    .sidebar-user,
    .nav-section-label,
    .dash-nav-link span,
    .dash-nav-link .nav-badge {
        display: block; /* or appropriate flex/etc. */
    }
    .sidebar-user { display: block; }
    .nav-section-label { display: block; }
    .dash-nav-link span { display: inline; }
    .dash-nav-link .nav-badge { display: block; }
    
    .dash-nav-link {
        justify-content: flex-start;
        padding: 11px 16px;
    }
    .dash-nav-link i {
        margin-right: 0px;
        font-size: 20px;
    }
    .dash-main {
        margin-left: 0 !important;
    }
    .sidebar-toggle {
        display: block;
    }
    .dash-view {
        padding: 20px;
    }
    .dash-stats-row {
        grid-template-columns: 1fr;
    }
    .network-grid {
        grid-template-columns: 1fr;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .page-title-bar {
        flex-direction: column;
        gap: 12px;
    }
}

/* === Premium Dynamic Filter Bar === */
.filter-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.filter-bar:hover {
    box-shadow: 0 6px 24px rgba(79, 70, 229, 0.1);
}

.filter-input {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.filter-input i {
    position: absolute;
    left: 20px;
    color: var(--primary);
    font-size: 20px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.filter-input input {
    width: 100%;
    padding: 14px 20px 14px 52px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filter-bar select {
    appearance: none;
    -webkit-appearance: none;
    padding: 14px 44px 14px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.7);
    /* Premium custom SVG chevron */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    min-width: 170px;
    flex: 0 1 auto;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filter-input input:hover, .filter-bar select:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.filter-input input:focus, .filter-bar select:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    outline: none;
}

@media (max-width: 768px) {
    .filter-bar {
        border-radius: var(--radius-lg);
        padding: 16px;
    }
    .filter-input input, .filter-bar select {
        border-radius: var(--radius-md);
    }
}

/* === Job Board === */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.job-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.job-logo {
    width: 54px;
    height: 54px;
    min-width: 54px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.job-info {
    flex: 1;
}

.job-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.job-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.job-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.job-tags span {
    background: var(--bg-body);
    color: var(--text-muted);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
        align-items: stretch;
    }
    .job-card .btn {
        width: 100%;
        margin-top: 12px;
    }
}

/* === Edit Profile Modal === */
.edit-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.edit-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}
.edit-modal {
    background: var(--bg-card);
    width: 100%;
    max-width: 800px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease forwards;
}

.edit-modal-section-title {
    margin-bottom: 12px;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
}

.edit-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.edit-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.edit-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
}
.edit-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}
.edit-modal-close:hover {
    color: var(--accent);
}
.edit-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.edit-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.edit-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}
.edit-form-group input, .edit-form-group select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-body);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: var(--transition-fast);
}
.edit-form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}
.edit-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* === AI Copilot Widget === */
.ai-copilot-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(79, 70, 229, 0); }
    100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.ai-copilot-btn:hover {
    transform: scale(1.1);
}

.ai-copilot-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    max-height: 500px;
    background: #1e1e2f;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
}

.ai-copilot-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ai-header {
    padding: 16px;
    background: linear-gradient(135deg, #2a2a40, #1e1e2f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ai-header h3 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-header h3 i {
    color: #a78bfa;
}

.ai-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 20px;
    transition: 0.2s;
}

.ai-close:hover { color: #fff; }

.ai-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 250px;
    max-height: 350px;
}

.ai-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.ai-msg.bot {
    background: #2a2a40;
    color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-msg.user {
    background: #4f46e5;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-footer {
    padding: 12px;
    background: #2a2a40;
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.ai-footer input {
    flex: 1;
    background: #1e1e2f;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 8px 16px;
    color: #fff;
    outline: none;
    font-size: 14px;
}

.ai-footer input:focus {
    border-color: #4f46e5;
}

.ai-footer button {
    background: #4f46e5;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.ai-footer button:hover {
    background: #6366f1;
}

/* Card inside AI */
.ai-alumni-card {
    background: #1e1e2f;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ai-alumni-card img {
    width: 40px; height: 40px; border-radius: 50%;
}
.ai-alumni-card h4 { font-size: 13px; color: #fff; margin-bottom: 2px;}
.ai-alumni-card p { font-size: 11px; color: #94a3b8; }

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERHAUL
   ============================================ */

/* --- Sidebar Overlay Backdrop (Mobile) --- */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 199;
    transition: opacity 0.3s ease;
}
.sidebar-backdrop.active {
    display: block;
}

/* --- TABLET (<=1024px) Additional Rules --- */
@media (max-width: 1024px) {
    .dash-topbar {
        padding: 0 20px;
    }
    .dash-search {
        width: 220px;
    }
    .topbar-profile span {
        display: none;
    }
    .alumni-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    .ai-copilot-panel {
        width: 320px;
        right: 16px;
    }
}

/* --- PHONE (<=768px) Full Overhaul --- */
@media (max-width: 768px) {
    /* Topbar */
    .dash-topbar {
        padding: 0 16px;
        height: 64px;
        gap: 8px;
    }
    .dash-search {
        display: none;
    }
    .topbar-profile span {
        display: none;
    }
    .dash-topbar-actions {
        gap: 8px;
    }
    .topbar-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* Main Content View */
    .dash-view {
        padding: 16px;
    }
    .page-title-bar {
        flex-direction: column;
        gap: 10px;
    }
    .page-title-bar h1 {
        font-size: 22px;
    }
    .page-title-bar .btn {
        width: 100%;
        justify-content: center;
    }

    /* Overview Two-Col */
    .overview-two-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Stat Cards */
    .dash-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .dash-stat-card {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .dash-stat-card .stat-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 20px;
    }
    .dash-stat-card .stat-info h3 {
        font-size: 20px;
    }

    /* Profile Overview */
    .profile-overview {
        grid-template-columns: 1fr;
    }
    .profile-card-main {
        padding: 24px 16px;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }

    /* Network Cards */
    .network-grid {
        grid-template-columns: 1fr;
    }
    .network-card {
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px;
    }
    .network-card > div:last-child {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Alumni Cards */
    .alumni-cards-grid {
        grid-template-columns: 1fr;
    }
    .alumni-card {
        padding: 24px 16px;
    }
    .alumni-card .card-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    .alumni-card .card-actions .btn {
        flex: unset;
        padding: 10px 16px;
    }

    /* Chat Layout */
    .chat-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .chat-contacts {
        max-height: 220px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .chat-main {
        height: 450px;
    }
    .chat-messages {
        padding: 16px;
    }
    .chat-msg {
        max-width: 90%;
    }
    .chat-input-area {
        padding: 12px 16px;
        gap: 8px;
    }
    .chat-main-header {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    .chat-main-header > div:last-child {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }

    /* Jobs */
    .job-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .job-card .btn {
        width: 100%;
    }

    /* Events Dash */
    .dash-section-body > div[style*="display:flex"][style*="align-items:center"][style*="gap:20px"] {
        flex-direction: column;
        align-items: flex-start !important;
    }

    /* Filter Bar */
    .filter-bar {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 16px;
        gap: 10px;
    }
    .filter-input {
        min-width: 100%;
    }
    .filter-bar select {
        width: 100%;
        min-width: unset;
    }
    .filter-input input {
        border-radius: var(--radius-md);
    }

    /* Edit/View Modals */
    .edit-modal-overlay {
        padding: 10px;
        align-items: flex-start !important;
        padding-top: 20px;
    }
    .edit-modal {
        max-width: 100%;
        border-radius: var(--radius-md);
        max-height: 95vh;
    }
    .edit-modal-body {
        padding: 16px;
        gap: 14px;
    }
    .edit-modal-header {
        padding: 16px;
    }
    .edit-modal-header h3 {
        font-size: 16px;
    }
    .edit-modal-footer {
        padding: 16px;
        flex-direction: column;
    }
    .edit-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    .edit-modal-grid {
        grid-template-columns: 1fr;
    }
    .edit-modal-section-title {
        font-size: 14px;
    }

    /* Settings page button groups */
    .dash-section-body > div[style*="display:flex"][style*="gap:12px"][style*="flex-wrap"] {
        flex-direction: column;
    }
    .dash-section-body > div[style*="display:flex"][style*="gap:12px"] .btn {
        width: 100%;
        justify-content: center;
    }

    /* Mentorship */
    .dash-section-body > div[style*="display:flex"][style*="gap:8px"][style*="margin-top:12px"] {
        flex-direction: column;
    }
    .dash-section-body > div[style*="display:flex"][style*="gap:8px"] .btn {
        width: 100%;
        justify-content: center;
    }

    /* AI Copilot Panel */
    .ai-copilot-btn {
        bottom: 20px;
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
    .ai-copilot-panel {
        width: calc(100vw - 32px);
        bottom: 82px;
        right: 16px;
        max-height: 70vh;
    }
    .ai-body {
        min-height: 180px;
        max-height: 50vh;
    }
    .ai-alumni-card {
        flex-direction: column;
        text-align: center;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .gallery-tabs {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    /* Mentorship Tables */
    table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    table th, table td {
        padding: 8px !important;
    }
    thead, tbody {
        display: table;
        width: 100%;
    }

    /* Dash Section Headers */
    .dash-section-header {
        padding: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .dash-section-header h3 {
        font-size: 15px;
    }
    .dash-section-body {
        padding: 16px;
    }

    /* Activity items */
    .activity-item {
        gap: 10px;
        flex-wrap: wrap;
    }
    .activity-item .act-time {
        width: 100%;
        margin-left: 50px;
        font-size: 11px;
    }
}

/* --- SMALL PHONE (<=480px) --- */
@media (max-width: 480px) {
    .dash-stats-row {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
    .chat-main {
        height: 380px;
    }
    .dash-stat-card {
        flex-direction: row;
        align-items: center;
    }
    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
        padding: 20px;
    }
    .edit-modal {
        max-height: 98vh;
        border-radius: var(--radius-sm);
    }
    .alumni-card .alumni-avatar {
        width: 72px;
        height: 72px;
    }
    .profile-card-main .profile-avatar {
        width: 80px;
        height: 80px;
    }
    .profile-card-main .profile-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================
   COORDINATOR PORTAL HERO & COMPONENTS
   ============================================ */
.coord-hero {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.4);
}
.coord-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}
.dept-title {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,255,255,0.15);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.coord-quickaction {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.coord-quickaction:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* ============================================
   MENTOR PORTAL HERO & COMPONENTS
   ============================================ */
.mentor-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}
.mentor-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

/* ============================================
   SHARED HERO STAT BLOCKS (Coordinator + Mentor)
   ============================================ */
.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}
.h-stat {
    background: rgba(255,255,255,0.1);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    flex: 1;
}
.h-stat h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}
.h-stat p {
    font-size: 13px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ============================================
   QUICK ACTION GRID (Mentor Dashboard)
   ============================================ */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.qa-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.qa-card:hover {
    transform: translateY(-3px);
    border-color: #4f46e5;
    box-shadow: var(--shadow-md);
    color: #4f46e5;
}
.qa-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* ============================================
   APPROVAL ROW (Mentor Pending Queue)
   ============================================ */
.app-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: var(--bg-card);
    transition: all 0.3s;
}
.app-row:hover {
    border-color: #4f46e5;
    box-shadow: var(--shadow-sm);
}
.app-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}
.app-meta img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Responsive overrides for portal heroes */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    .quick-action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .quick-action-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ALUMNI DASHBOARD HOME (dh-*)
   ============================================ */
:root {
    --dh-border: rgba(0,0,0,0.08);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.03);
    --shadow-hover: 0 15px 35px rgba(79, 70, 229, 0.1);
}

.dh-container {
    padding: 10px 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: dhFadeIn 0.4s ease;
    max-width: 1400px;
    margin: 0 auto;
}

/* Alumni Hero Banner */
.dh-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    border-radius: 20px;
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(79,70,229,0.2);
}
.dh-hero-content { position: relative; z-index: 2; color: #fff; }
.dh-hero-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.dh-hero-subtitle { font-size: 15px; opacity: 0.9; font-weight: 500; max-width: 500px; line-height: 1.5; }
.dh-hero-actions { position: relative; z-index: 2; display: flex; gap: 15px; }
.dh-btn-white {
    background: #fff; color: #4f46e5; border: none; padding: 12px 24px; border-radius: 12px;
    font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.dh-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* Alumni Stats Row */
.dh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dh-stat-card {
    background: var(--bg-card); border-radius: 20px; padding: 25px;
    border: 1px solid var(--dh-border); box-shadow: var(--shadow-soft);
    display: flex; align-items: center; gap: 18px; transition: all 0.3s;
}
.dh-stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: #4f46e5; }
.dh-stat-icon {
    width: 55px; height: 55px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; flex-shrink: 0;
}
.icon-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.icon-purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.icon-green { background: rgba(16,185,129,0.1); color: #10b981; }
.icon-amber { background: rgba(245,158,11,0.1); color: #f59e0b; }
.dh-stat-info h3 { font-size: 26px; font-weight: 800; color: var(--text-primary); margin-bottom: 2px; }
.dh-stat-info p { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Alumni Dashboard Grid */
.dh-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; }

/* Alumni Dashboard Cards */
.dh-card {
    background: var(--bg-card); border-radius: 20px;
    border: 1px solid var(--dh-border); box-shadow: var(--shadow-soft);
}
.dh-card-header {
    padding: 20px 25px; border-bottom: 1px solid var(--dh-border);
    display: flex; justify-content: space-between; align-items: center;
}
.dh-card-header h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.dh-card-header h3 i { color: #4f46e5; font-size: 22px; }
.dh-card-action { font-size: 13px; font-weight: 600; color: #4f46e5; text-decoration: none; transition: color 0.2s; }
.dh-card-action:hover { color: #3730a3; text-decoration: underline; }
.dh-card-body { padding: 25px; }

/* Network Activity Feed */
.dh-feed { display: flex; flex-direction: column; gap: 20px; }
.feed-item { display: flex; gap: 15px; position: relative; }
.feed-item:not(:last-child)::after {
    content: ''; position: absolute; left: 22px; top: 50px; bottom: -15px;
    width: 2px; background: var(--dh-border);
}
.feed-avatar {
    width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--bg-card); box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 2; flex-shrink: 0;
}
.feed-content {
    flex: 1; background: rgba(79,70,229,0.03);
    border: 1px solid rgba(79,70,229,0.08); padding: 15px; border-radius: 14px; transition: background 0.2s;
}
.feed-content:hover { background: rgba(79,70,229,0.06); }
.feed-meta { font-size: 14px; color: var(--text-primary); margin-bottom: 6px; }
.feed-meta strong { font-weight: 700; }
.feed-time { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-left: 8px; }
.feed-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.feed-img-preview { margin-top: 10px; border-radius: 10px; overflow: hidden; height: 120px; }
.feed-img-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Event Snapshot */
.event-snap { display: flex; flex-direction: column; gap: 15px; }
.event-row {
    display: flex; align-items: stretch; gap: 15px; padding: 15px; border-radius: 14px;
    border: 1px solid var(--dh-border); background: var(--bg-body); transition: transform 0.2s; cursor: pointer;
}
.event-row:hover { transform: translateY(-2px); border-color: #3b82f6; box-shadow: 0 5px 15px rgba(59,130,246,0.1); }
.event-date-box {
    background: rgba(59,130,246,0.1); color: #3b82f6; border-radius: 12px; min-width: 65px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px;
}
.event-month { font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 2px; }
.event-day { font-size: 22px; font-weight: 800; line-height: 1; }
.event-info { display: flex; flex-direction: column; justify-content: center; }
.event-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.event-loc { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }

/* Quick Shortcuts Grid */
.shortcuts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.sc-card {
    background: var(--bg-body); border-radius: 14px; padding: 20px 15px; text-align: center;
    border: 1px solid var(--dh-border); cursor: pointer; transition: all 0.2s;
}
.sc-card:hover {
    background: #4f46e5; color: #fff; transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79,70,229,0.25); border-color: transparent;
}
.sc-card i { font-size: 32px; color: inherit; margin-bottom: 10px; opacity: 0.8; }
.sc-card:hover i { opacity: 1; color: #fff; }
.sc-card h4 { font-size: 14px; font-weight: 600; color: inherit; }

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

@media (max-width: 1024px) {
    .dh-stats { grid-template-columns: repeat(2, 1fr); }
    .dh-grid { grid-template-columns: 1fr; }
    .dh-hero { flex-direction: column; text-align: center; gap: 25px; padding: 30px 20px; }
    .dh-hero-subtitle { margin: 0 auto; }
}
@media (max-width: 600px) {
    .dh-stats { grid-template-columns: 1fr; }
    .shortcuts-grid { grid-template-columns: 1fr; }
}
