/* ================= DESIGN SYSTEM STYLING (BLUE, BLACK, & WHITE THEME) ================= */
:root {
    --bg-main: #07080d; /* Pure Deep Black-Blue */
    --bg-card: rgba(13, 17, 28, 0.75); /* Obsidian Black Card with subtle blue tint */
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff; /* Pure White */
    --text-secondary: #94a3b8; /* Cool Grey-White */
    --primary: #3b82f6; /* Electric Blue */
    --primary-hover: #1d4ed8;
    --primary-rgb: 59, 130, 246;
    --secondary: #00e5ff; /* Cyan / Neon Blue */
    --secondary-hover: #00b8d4;
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);
    --sidebar-width: 260px;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-glow: 0 10px 30px rgba(59, 130, 246, 0.25);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ================= GLOW BACKGROUND ANIMATIONS ================= */
.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    mix-blend-mode: screen;
}

.sphere-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--primary) 0%, rgba(59, 130, 246, 0) 70%);
    top: -100px;
    right: -50px;
}

.sphere-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--secondary) 0%, rgba(0, 229, 255, 0) 70%);
    bottom: -150px;
    left: -100px;
}

/* ================= UTILITY CLASSES ================= */
.hidden { display: none !important; }
.btn-block { width: 100%; }
.margin-top { margin-top: 1.5rem; }
.subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }

/* ================= AUTHENTICATION STYLING ================= */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

.auth-lang-selector-card {
    margin-top: 1.2rem;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.auth-lang-select-box {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-lang-select-box:focus {
    outline: none;
}

.auth-lang-selector-card i {
    color: var(--primary);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(25px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.5s ease-out;
}

.brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-glow);
}

.brand h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label i {
    margin-right: 6px;
    color: var(--primary);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

select option {
    background-color: #0c0d12;
    color: #ffffff;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.col-6 {
    flex: 1;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-hover));
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-icon-only {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.btn-round {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
}

.btn-logout {
    background: transparent;
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 100%;
}

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

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: white;
    text-decoration: underline;
}

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

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(8, 10, 16, 0.9);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: white;
}

.sidebar-header span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Language selector */
.lang-selector-box {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: var(--radius-md);
}

.lang-selector-box label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.lang-selector-box label i {
    color: var(--primary);
}

.lang-selector-box select {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.lang-selector-box select:focus {
    outline: none;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.9rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.menu-item i {
    font-size: 1.1rem;
    width: 20px;
}

.menu-item:hover, .menu-item.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-left: 4px solid var(--primary);
    color: var(--primary);
}

.badge {
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    right: 15px;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

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

.avatar-small {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--border-color);
}

.user-info-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.user-info-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 3rem;
    animation: fadeIn 0.4s ease-out;
}

.app-view {
    animation: fadeIn 0.4s ease-out;
}

.view-header {
    margin-bottom: 2.5rem;
}

.view-header h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.view-header p {
    color: var(--text-secondary);
}

/* ================= DASHBOARD VIEW ================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(15px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}

.icon-primary { background: rgba(59, 130, 246, 0.12); color: var(--primary); }
.icon-secondary { background: rgba(0, 229, 255, 0.12); color: var(--secondary); }
.icon-success { background: var(--success-bg); color: var(--success); }

.stat-info h3 {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dashboard-layout {
    display: flex;
    gap: 2rem;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(15px);
}

.card-large { flex: 2; }
.card-small { flex: 1.2; }

.dashboard-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 1.5rem;
}

.avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 3px solid var(--primary);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-glow);
}

.profile-card-preview h4 {
    font-size: 1.2rem;
    font-weight: 800;
}

.profile-card-preview p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.preview-divider {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.preview-section {
    width: 100%;
    text-align: left;
    margin-bottom: 1.25rem;
}

.preview-section h5 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-chip {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chip-it { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }
.chip-design { background: rgba(236, 72, 153, 0.15); border-color: rgba(236, 72, 153, 0.3); color: #f472b6; }
.chip-business { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); color: #34d399; }
.chip-language { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }
.chip-other { background: rgba(156, 163, 175, 0.15); border-color: rgba(156, 163, 175, 0.3); color: #d1d5db; }

.skill-chip .remove-skill {
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.skill-chip .remove-skill:hover {
    opacity: 1;
    color: var(--danger);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.recommended-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-match-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.user-match-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
}

.user-match-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-match-details h4 {
    font-size: 1rem;
    font-weight: 700;
}

.user-match-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.match-percentage {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 30px;
    margin-left: 8px;
}

/* ================= BUMBLE CARD SWIPING DECK ================= */
.swiper-deck-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
}

.card-stack {
    position: relative;
    width: 340px;
    height: 480px;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #10121a;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    cursor: grab;
    user-select: none;
    transform-origin: 50% 99%;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s;
    backdrop-filter: blur(15px);
}

.swipe-card:active {
    cursor: grabbing;
}

/* Stack styling (3D tumpukan) */
.swipe-card:nth-last-child(1) {
    transform: translate3d(0, 0, 0) scale(1);
    z-index: 10;
    opacity: 1;
}

.swipe-card:nth-last-child(2) {
    transform: translate3d(0, 12px, -30px) scale(0.95);
    z-index: 9;
    opacity: 0.85;
    pointer-events: none;
}

.swipe-card:nth-last-child(3) {
    transform: translate3d(0, 24px, -60px) scale(0.9);
    z-index: 8;
    opacity: 0.6;
    pointer-events: none;
}

.swipe-card:nth-last-child(n+4) {
    transform: translate3d(0, 36px, -90px) scale(0.85);
    z-index: 7;
    opacity: 0;
    pointer-events: none;
}

/* Card details design */
.card-user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid var(--primary);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-glow);
    pointer-events: none;
}

.card-user-info h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.card-user-info .dept {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.card-skills-section {
    text-align: left;
    width: 100%;
}

.card-skills-section h4 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Buttons style below stack */
.swipe-actions-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-no:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-bg);
}

.btn-yes:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, 0.12);
    box-shadow: var(--shadow-glow);
}

/* Empty Deck Message */
.empty-deck-message {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    border-radius: 24px;
    border: 2px dashed var(--border-color);
    color: var(--text-secondary);
}

.empty-deck-message i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.empty-deck-message h3 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: white;
}

/* ================= MATCHES VIEW ================= */
.matches-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.matches-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(15px);
    min-height: 400px;
}

.matches-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.match-user-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.match-user-details p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.match-actions {
    display: flex;
    gap: 6px;
}

.btn-sm-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-success { background: var(--success); }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #dc2626; }

/* ================= CHAT CONTAINER ================= */
.chat-container-box {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    height: 70vh;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.chat-sidebar {
    width: 280px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-sidebar-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.chat-users-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.chat-user-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.chat-user-item.active {
    background: rgba(59, 130, 246, 0.12);
    border-left: 3px solid var(--primary);
}

.chat-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.chat-user-item-info {
    flex-grow: 1;
    overflow: hidden;
}

.chat-user-item-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-user-item-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat Window */
.chat-window {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(8, 10, 16, 0.3);
}

.chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
}

.chat-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.chat-active-window {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.chat-header-user h4 {
    font-size: 1rem;
    font-weight: 700;
}

.chat-partner-status {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.chat-partner-status.status-online {
    color: var(--success);
}

.chat-partner-status.status-offline {
    color: var(--danger);
}

.chat-partner-status i {
    font-size: 0.55rem;
}

/* Presence status indicator dot */
.status-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-indicator-dot.online {
    background-color: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.status-indicator-dot.offline {
    background-color: var(--danger);
}

/* Translate Box in header */
.chat-translate-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.chat-translate-selector label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.chat-translate-selector label i {
    color: var(--primary);
}

.chat-translate-selector select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.chat-translate-selector select:focus {
    outline: none;
}

.chat-messages-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.wrapper-sent {
    align-self: flex-end;
    align-items: flex-end;
}

.wrapper-received {
    align-self: flex-start;
    align-items: flex-start;
}

.message-bubble {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.45;
    word-wrap: break-word;
}

.msg-sent {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.msg-received {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

/* Chat translation subtext */
.translate-subtext {
    font-size: 0.7rem;
    color: var(--primary);
    margin-top: 4px;
    font-style: italic;
    background: rgba(59, 130, 246, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.chat-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.chat-footer input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0.85rem 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.chat-footer input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ================= EDIT PROFILE & FORM LAYOUT ================= */
.profile-layout {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr;
    gap: 2rem;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(15px);
}

.profile-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-manage-section h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.skill-input-row {
    display: flex;
    gap: 8px;
}

.skill-input-row input {
    flex-grow: 1;
}

/* ================= BUMBLE MATCH MODAL OVERLAY ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 10, 16, 0.93);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    animation: fadeIn 0.4s;
}

.match-modal-card {
    text-align: center;
    max-width: 480px;
    width: 90%;
    padding: 3rem 2rem;
    border-radius: 28px;
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.15);
    animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.match-modal-card h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    letter-spacing: 2px;
}

.match-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.match-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.match-star {
    font-size: 2rem;
    color: var(--primary);
    background: #10121a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-glow);
    z-index: 5;
    animation: pulse 1.5s infinite;
}

#match-modal-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
}

/* ================= NOTIFICATION TOAST ================= */
.toast {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1100;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(8, 10, 16, 0.95);
    border-left: 4px solid var(--primary);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    animation: slideIn 0.3s ease-out;
}

.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ================= RESPONSIVE LAYOUT ================= */
@media (max-width: 1024px) {
    .profile-layout, .dashboard-layout, .matches-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        padding: 2rem 0.5rem;
        align-items: center;
    }
    
    .sidebar-header span, .user-info-text, .btn-logout span, .lang-selector-box {
        display: none;
    }
    
    .menu-item {
        justify-content: center;
    }
    
    .menu-item i {
        margin: 0;
    }
    
    .main-content {
        margin-left: 80px;
        padding: 1.5rem;
    }
    
    .view-header h1 {
        font-size: 1.6rem;
    }
    
    .chat-container-box {
        flex-direction: column;
        height: auto;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ================= PHASE 2 GLOBAL & COMPONENTS ================= */

/* Badge Give & Take */
.badge-teach {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #10b981 !important;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-learn {
    background: rgba(139, 92, 246, 0.15) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    color: #8b5cf6 !important;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.skill-level-indicator {
    font-size: 0.65rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

/* User Card Badges list */
.user-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.user-badge-item {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Gamification Progress on Dashboard */
.xp-level-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.xp-level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.xp-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

.xp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.xp-progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Leaderboard Page */
.leaderboard-podium {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

.podium-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: var(--transition);
}

.podium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.podium-card.first {
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.05), rgba(255, 255, 255, 0.01));
    border-color: rgba(245, 158, 11, 0.4);
    height: 240px;
    justify-content: center;
}

.podium-card.second {
    background: linear-gradient(180deg, rgba(156, 163, 175, 0.05), rgba(255, 255, 255, 0.01));
    border-color: rgba(156, 163, 175, 0.4);
    height: 210px;
}

.podium-card.third {
    background: linear-gradient(180deg, rgba(180, 83, 9, 0.05), rgba(255, 255, 255, 0.01));
    border-color: rgba(180, 83, 9, 0.4);
    height: 190px;
}

.podium-rank {
    position: absolute;
    top: -15px;
    width: 32px;
    height: 32px;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.first .podium-rank { border-color: #f59e0b; color: #f59e0b; }
.second .podium-rank { border-color: #9ca3af; color: #9ca3af; }
.third .podium-rank { border-color: #b45309; color: #b45309; }

.podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 2px solid var(--border-color);
}

.first .podium-avatar { border-color: #f59e0b; width: 76px; height: 76px; }

.leaderboard-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 60px 1fr 120px 100px;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row.header {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    color: var(--text-muted);
}

/* Q&A Forum Page */
.forum-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.forum-search {
    flex: 1;
    position: relative;
}

.forum-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.forum-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-light);
}

.question-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.question-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.question-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-light);
}

.question-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    white-space: pre-line;
}

.question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.question-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-detail-view {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.forum-answers-container {
    margin-top: 1.5rem;
}

.answer-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.answer-body {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* Open Study Room Layout */
.study-room-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 180px);
}

.study-room-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pomodoro-box {
    text-align: center;
    padding: 1rem 0;
}

/* Mode selector tabs */
.pomodoro-modes {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pomodoro-mode-btn {
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pomodoro-mode-btn:hover {
    background: rgba(108,99,255,0.15);
    border-color: rgba(108,99,255,0.5);
    color: var(--text-primary);
}

.pomodoro-mode-btn.active {
    background: linear-gradient(135deg, #6c63ff, #3b82f6);
    color: #fff;
    border-color: transparent;
    font-weight: 600;
}

/* Ring wrapper: SVG + timer overlay */
.pomodoro-ring-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
}

.pomodoro-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
}

.pomodoro-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.4rem;
    font-weight: 800;
    font-family: monospace;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(108,99,255,0.4);
    line-height: 1;
    pointer-events: none;
}

.pomodoro-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
}


/* HTTPS warning banner */
/* ========== STUDY ROOM â€” PRIVATE SESSION ========== */

.study-https-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.1));
    border: 1px solid rgba(245,158,11,0.4);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 1.5rem;
    color: #fbbf24;
    font-size: 0.9rem;
    line-height: 1.5;
}
.study-https-warning .fa-triangle-exclamation { font-size:1.4rem; margin-top:2px; flex-shrink:0; }

/* â”€â”€ Lobby â”€â”€ */
.study-lobby { display: flex; flex-direction: column; gap: 2rem; }

.lobby-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 3rem 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.lobby-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #6c63ff22, #3b82f622);
    border: 1px solid rgba(108,99,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #6c63ff;
}

.lobby-hero h2 { font-size: 1.2rem; margin: 0; }

.study-invite-list { padding: 1.5rem; background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); border-radius: var(--radius-lg); }

.invite-incoming-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(108,99,255,0.07);
    border: 1px solid rgba(108,99,255,0.25);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}
.invite-incoming-card .invite-info { flex: 1; }
.invite-incoming-card .invite-info strong { display: block; font-size: 0.95rem; }
.invite-incoming-card .invite-info small { opacity: 0.6; font-size: 0.8rem; }

/* â”€â”€ Active Session â”€â”€ */
.study-session-active { display: flex; flex-direction: column; gap: 1rem; }

.session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
    gap: 10px;
}
.session-header-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.session-header-actions { display: flex; gap: 8px; }

.session-live-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse-green 1.5s infinite;
    flex-shrink: 0;
}
@keyframes pulse-green {
    0%,100% { box-shadow: 0 0 4px #22c55e; }
    50%      { box-shadow: 0 0 12px #22c55e; }
}

.session-skill-badge {
    background: rgba(108,99,255,0.15);
    border: 1px solid rgba(108,99,255,0.3);
    color: #a78bfa;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.75rem;
}
.session-members-count { font-size: 0.85rem; opacity: 0.65; }

/* â”€â”€ Session Main Layout â”€â”€ */
.session-main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1rem;
    align-items: start;
}
@media (max-width: 900px) {
    .session-main-layout { grid-template-columns: 1fr; }
}

.session-pomodoro-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* â”€â”€ Video Grid â”€â”€ */
.session-right-col { display: flex; flex-direction: column; gap: 10px; }

.session-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.session-video-tile {
    position: relative;
    background: #0d1117;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: border-color 0.2s;
}
.session-video-tile.local-tile { border-color: #6c63ff55; }
.session-video-tile.cam-active { border-color: #6c63ff; box-shadow: 0 0 12px rgba(108,99,255,0.3); }

.tile-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}
.tile-avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    object-fit: cover;
}

.tile-name-label {
    position: absolute;
    bottom: 7px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    backdrop-filter: blur(4px);
}
.tile-status-badge {
    position: absolute;
    top: 7px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
    padding: 2px 6px;
    font-size: 0.72rem;
}

/* â”€â”€ Media Control Buttons â”€â”€ */
.session-media-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.media-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 18px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    transition: all 0.2s;
    min-width: 70px;
}
.media-btn i { font-size: 1.2rem; }
.media-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.media-btn.active { background: linear-gradient(135deg,#6c63ff,#3b82f6); border-color: transparent; color: #fff; }
.media-btn.muted { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); color: #f87171; }

/* â”€â”€ Mini Chat â”€â”€ */
.session-mini-chat {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255,255,255,0.02);
}
.session-chat-messages {
    height: 130px;
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.session-chat-bubble {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.session-chat-bubble .bubble-name { font-weight: 600; font-size: 0.78rem; color: #a78bfa; min-width: 60px; }
.session-chat-bubble .bubble-text { font-size: 0.82rem; opacity: 0.85; line-height: 1.4; }
.session-chat-form {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-top: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}
.session-chat-form input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
}

/* â”€â”€ Invite Candidates â”€â”€ */
.session-invite-candidates { display: flex; flex-direction: column; gap: 10px; }
.invite-candidate-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.invite-candidate-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.invite-candidate-row .candidate-info { flex: 1; }
.invite-candidate-row .candidate-info strong { display: block; font-size: 0.9rem; }
.invite-candidate-row .candidate-info small { opacity: 0.55; font-size: 0.75rem; }

/* â”€â”€ Study Room Info Box â”€â”€ */
.study-room-info p {
    background: rgba(0,0,0,0.6);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
}

.study-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
}

/* Flash Match / Urgent Requests Board */
.flash-requests-container {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.flash-requests-container h4 {
    color: var(--danger);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.flash-scroll-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.flash-req-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.flash-req-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.flash-req-info h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.flash-req-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Notification Bell Dropdown styling */
.nav-notifications {
    position: relative;
    margin-right: 12px;
}

.notifications-bell-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    position: relative;
    padding: 6px;
    transition: var(--transition);
}

.notifications-bell-btn:hover {
    color: var(--text-light);
}

.notifications-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

.notifications-dropdown {
    position: absolute;
    top: 40px;
    right: 0;
    width: 320px;
    max-height: 400px;
    background: #161b22;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow: hidden;
}

.notif-header {
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.notif-clear-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    cursor: pointer;
}

.notif-list-box {
    overflow-y: auto;
    flex: 1;
}

.notif-item {
    padding: 10px 12px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

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

.notif-item span {
    color: var(--text-light);
}

.notif-item small {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Scheduler Widget inside Chat View */
.chat-scheduler-container {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 1.5rem;
}

.chat-scheduler-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-scheduler-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.schedules-list-inline {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 6px;
    padding-bottom: 4px;
}

.schedule-mini-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.7rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.schedule-mini-card i {
    color: var(--success);
}

/* Profile Exporter Styles (Skill Passport) */
.passport-export-wrapper {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    
    .passport-export-wrapper, .passport-export-wrapper * {
        visibility: visible;
    }
    
    .passport-export-wrapper {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #000 !important;
        background: #fff !important;
        padding: 40px;
    }
    
    .passport-border {
        border: 10px double #1a365d;
        padding: 30px;
        border-radius: 8px;
        text-align: center;
    }
    
    .passport-header h1 {
        font-size: 2.5rem;
        font-family: 'Times New Roman', Times, serif;
        color: #1a365d;
        margin-bottom: 5px;
    }
    
    .passport-header h3 {
        font-size: 1.2rem;
        font-family: Arial, sans-serif;
        color: #4a5568;
        margin-bottom: 25px;
    }
    
    .passport-line {
        height: 2px;
        background: #1a365d;
        width: 80%;
        margin: 20px auto;
    }
    
    .passport-body {
        margin: 30px 0;
        text-align: left;
        padding: 0 40px;
    }
    
    .passport-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-top: 25px;
    }
    
    .passport-section-box {
        border: 1px solid #cbd5e0;
        padding: 15px;
        border-radius: 6px;
    }
    
    .passport-section-box h4 {
        color: #1a365d;
        border-bottom: 2px solid #e2e8f0;
        padding-bottom: 6px;
        margin-bottom: 10px;
    }
    
    .passport-footer-signature {
        margin-top: 50px;
        display: flex;
        justify-content: space-between;
        padding: 0 40px;
    }
    
    .signature-line {
        border-top: 1px solid #000;
        width: 200px;
        text-align: center;
        padding-top: 5px;
        font-size: 0.8rem;
    }
}

/* ============================================================
   WAF MONITOR — Integrated Security Dashboard
   ============================================================ */

/* Stats Grid */
.waf-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 1.25rem;
}
@media (max-width: 1100px) { .waf-stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .waf-stats-grid { grid-template-columns: repeat(2, 1fr); } }

.waf-stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.waf-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), transparent);
    pointer-events: none;
}
.waf-stat-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(108,99,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.wsc-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.wsc-body { flex: 1; min-width: 0; }
.wsc-label { font-size: 0.72rem; opacity: 0.55; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.wsc-value { font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--text-primary); }
.wsc-sub   { font-size: 0.68rem; opacity: 0.4; margin-top: 3px; }

/* WAF Card */
.waf-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.waf-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02); font-weight: 600; font-size: 0.88rem; gap: 10px;
}
.waf-card-body { padding: 0; }

@media (max-width: 900px) { .waf-two-col { grid-template-columns: 1fr !important; } }

/* WAF Table */
.waf-table-wrap { overflow-x: auto; max-height: 300px; overflow-y: auto; }
.waf-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.waf-table thead th {
    padding: 8px 12px; text-align: left; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
    background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1;
}
.waf-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.15s; }
.waf-table tbody tr:last-child { border-bottom: none; }
.waf-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.waf-table td { padding: 8px 12px; color: var(--text-secondary); vertical-align: middle; }
.waf-table td.mono { font-family: 'Courier New', monospace; font-size: 0.78rem; color: #94a3b8; }
.waf-loading { text-align: center; padding: 2rem !important; color: var(--text-muted); font-size: 0.85rem; }

/* WAF Badges */
.waf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.waf-badge.success { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.waf-badge.failed  { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.waf-badge.blocked { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.waf-badge.visit   { background: rgba(148,163,184,0.1); color: #94a3b8; border: 1px solid rgba(148,163,184,0.15); }
.waf-badge.action  { background: rgba(108,99,255,0.12); color: #a78bfa; border: 1px solid rgba(108,99,255,0.2); }

/* WAF Filter Select */
.waf-filter-select {
    background: rgba(255,255,255,0.06); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-primary);
    padding: 6px 12px; font-size: 0.82rem; font-family: inherit; cursor: pointer; transition: var(--transition);
}
.waf-filter-select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(108,99,255,0.15); }
.waf-filter-select option { background: #1a1f2e; }

/* WAF Empty state */
.waf-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 2.5rem; color: var(--text-muted); font-size: 0.85rem; }
.waf-empty i { font-size: 1.8rem; opacity: 0.3; }

/* Unblock button */
.btn-unblock {
    background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25);
    color: #f87171; padding: 3px 10px; border-radius: 6px; font-size: 0.72rem;
    cursor: pointer; font-family: inherit; font-weight: 600; transition: var(--transition);
}
.btn-unblock:hover { background: rgba(239,68,68,0.22); border-color: rgba(239,68,68,0.4); }

/* Admin WAF sidebar item */
#admin-waf-item { border-top: 1px solid var(--border-color); margin-top: 4px; padding-top: 8px; color: #a78bfa !important; }
#admin-waf-item i { color: #a78bfa; }
#admin-waf-item:hover { background: rgba(167,139,250,0.1) !important; }
