/* FIZ6 Gaming Member Dashboard - Professional Slate/Blue Theme */

/* ===== LOGO OVERRIDE ===== */
.nav-logo svg {
  height: 32px !important;
  width: auto;
}

/* ===== BASE & LAYOUT ===== */
.dashboard-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: rgba(15, 23, 42, 1);
  color: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.dashboard-sidebar {
  width: 280px;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 100;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

/* Sidebar Header */
.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.online-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid rgba(15, 23, 42, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-info .user-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.5rem;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
  font-size: 0.938rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-item:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #cbd5e1;
  border-left-color: rgba(59, 130, 246, 0.3);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), transparent);
  color: #f1f5f9;
  border-left-color: #3b82f6;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 2;
  display: block;
  fill: none;
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Normalize SVG child elements to avoid asymmetric rendering (fixes deformed cog/gear icon) */
.nav-item svg path,
.nav-item svg circle,
.nav-item svg line,
.nav-item svg polyline,
.nav-item svg rect {
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.nav-item:hover svg,
.nav-item.active svg {
  color: #60a5fa;
}

.nav-item span {
  flex: 1;
}

.nav-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.688rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.nav-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.1);
  margin: 0.5rem 1.5rem;
}

.admin-only {
  opacity: 0.9;
}

.logout-link {
  color: #f87171;
}

.logout-link:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  border-left-color: #ef4444;
}

/* Sidebar Scrollbar */
.dashboard-sidebar::-webkit-scrollbar {
  width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.3);
}

/* ===== MAIN CONTENT ===== */
.dashboard-main {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  background: transparent;
}

.dashboard-content {
  padding: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Dashboard Header */
.dashboard-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.page-description {
  font-size: 0.938rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

/* Notification Button */
.notification-button {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #94a3b8;
  flex-shrink: 0;
}

.notification-button:hover {
  background: rgba(30, 41, 59, 1);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.688rem;
  font-weight: 700;
  border: 2px solid #0f172a;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ===== WELCOME SECTION ===== */
.welcome-section {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.welcome-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.5rem 0;
}

.welcome-section p {
  font-size: 0.938rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

/* ===== STATS GRID ===== */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card-large {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-icon-large {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

.stat-icon-large svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.stat-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.5rem 0;
  line-height: 1;
}

.stat-card-label {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
}

/* ===== RECENT ACTIVITY ===== */
.recent-activity {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 1.5rem 0;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.15);
  transform: translateX(4px);
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

.activity-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 0.938rem;
  font-weight: 500;
  color: #f1f5f9;
  margin: 0 0 0.25rem 0;
}

.activity-time {
  font-size: 0.813rem;
  color: #64748b;
  margin: 0;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.action-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 1.75rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.action-icon-wrapper {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
}

.action-icon-wrapper svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.action-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

.action-description {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 320px;
  pointer-events: all;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.938rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.25rem 0;
}

.toast-message {
  font-size: 0.813rem;
  color: #94a3b8;
  margin: 0;
}

.toast.online .toast-title {
  color: #10b981;
}

.toast.offline .toast-title {
  color: #64748b;
}

/* ===== FILTER SECTION ===== */
.filter-section {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-select {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 0.938rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.filter-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stats-bar {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 0.813rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f1f5f9;
}

.stat-value.status-new {
  color: #60a5fa;
}

.stat-value.status-reviewing {
  color: #fbbf24;
}

/* ===== APPLICATIONS LIST ===== */
.applications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.application-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.application-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--grad-new-start, #667eea), var(--grad-new-end, #764ba2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.application-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(102, 126, 234, 0.2);
}

.application-card:hover::before {
  opacity: 1;
}

.application-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.application-info {
  flex: 1;
}

.applicant-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.applicant-name::before {
  content: '';
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--grad-new-start, #667eea), var(--grad-new-end, #764ba2));
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.position-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 8px;
  color: #a5b4fc;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.application-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

.meta-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.status-badge {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.status-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.status-badge.status-new {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  animation: statusGlow 2s ease-in-out infinite;
}

.status-badge.status-reviewing {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.status-badge.status-accepted {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.status-badge.status-rejected {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
}

@keyframes statusGlow {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
  }
}

.application-details {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-label {
  font-size: 1rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.detail-value {
  color: #f1f5f9;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.6;
}

.application-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.action-btn:hover::before {
  width: 300px;
  height: 300px;
}

.action-btn.btn-view {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  color: #a5b4fc;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.action-btn.btn-view:hover {
  background: linear-gradient(135deg, var(--grad-new-start, #667eea), var(--grad-new-end, #764ba2));
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.action-btn.btn-accept {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: 1px solid transparent;
}

.action-btn.btn-accept:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.action-btn.btn-reject {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border: 1px solid transparent;
}

.action-btn.btn-reject:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.action-btn:active {
  transform: translateY(0);
}

.expand-btn {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.08));
  border: 1px solid rgba(102, 126, 234, 0.25);
  color: #a5b4fc;
  cursor: pointer;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.expand-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.expand-btn:hover::before {
  width: 300px;
  height: 300px;
}

.expand-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.15));
  border-color: rgba(102, 126, 234, 0.4);
  color: #c7d2fe;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.expand-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.4));
}

.expand-btn.expanded {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.expand-btn.expanded:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.expand-btn.expanded svg {
  transform: rotate(180deg) scale(1.1);
}

.expanded-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0;
}

.expanded-content.visible {
  max-height: 3000px;
  opacity: 1;
}

.answers-section {
  margin-top: 2rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.answers-section h3 {
  color: #f1f5f9;
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--grad-new-start, #667eea), var(--grad-new-end, #764ba2), transparent) 1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.answers-section h3::before {
  content: '📋';
  font-size: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.answer-item {
  margin-bottom: 2rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.answer-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--grad-new-start, #667eea), var(--grad-new-end, #764ba2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.answer-item:hover {
  transform: translateX(8px);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15), 0 0 0 1px rgba(102, 126, 234, 0.1);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
}

.answer-item:hover::before {
  opacity: 1;
}

.answer-item:last-child {
  margin-bottom: 0;
}

.answer-question {
  color: transparent;
  background: linear-gradient(135deg, var(--grad-new-start, #667eea), var(--grad-new-end, #764ba2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.938rem;
  font-weight: 700;
  margin-bottom: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.answer-question::before {
  content: '▸';
  color: var(--grad-new-start, #667eea);
  font-size: 1.2rem;
  animation: pulse 2s ease-in-out infinite;
}

.answer-text {
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1.8;
  padding-left: 1.5rem;
  font-weight: 400;
  position: relative;
}

.answer-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(102, 126, 234, 0.3), transparent);
  border-radius: 2px;
}

.loading-state {
  text-align: center;
  padding: 4rem;
  color: #94a3b8;
  font-size: 1.125rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-state::before {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-top-color: var(--grad-new-start, #667eea);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 4rem;
  color: #94a3b8;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  opacity: 0.3;
}

.empty-state h3 {
  color: #cbd5e1;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.empty-state p {
  font-size: 0.938rem;
  max-width: 400px;
  margin: 0 auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    width: 240px;
  }
  
  .dashboard-main {
    margin-left: 240px;
  }
  
  .dashboard-content {
    padding: 2rem;
  }
  
  .quick-stats-grid,
  .quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  }
  
  .dashboard-main {
    margin-left: 0;
  }
  
  .dashboard-layout {
    flex-direction: column;
  }
  
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .quick-stats-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .filter-controls {
    flex-direction: column;
  }
  
  .filter-select {
    width: 100%;
  }
  
  .stats-bar {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .toast {
    min-width: 280px;
  }
}

@media (max-width: 480px) {
  .dashboard-content {
    padding: 1.5rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .welcome-section {
    padding: 1.5rem;
  }
  
  .stat-card-large,
  .action-card,
  .filter-section,
  .recent-activity {
    padding: 1.5rem;
  }
  
  .stat-card-value {
    font-size: 2rem;
  }
}

/* ===== LOADING ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-content {
  animation: fadeIn 0.5s ease;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== TEAM SECTION STYLES ===== */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.search-bar svg {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  color: #94a3b8;
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 0.938rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-bar input::placeholder {
  color: #64748b;
}

.team-members-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 2rem;
}

.team-member-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.team-member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(59, 130, 246, 0.3);
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.team-member-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.25rem 0;
}

.team-member-role {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0 0 0.75rem 0;
  text-transform: capitalize;
}

.team-member-division {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.team-member-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.813rem;
  color: #94a3b8;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.status-dot.active {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-dot.inactive {
  background: #64748b;
}

.status-dot.trial {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.team-member-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
}

.team-member-actions button {
  flex: 1;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  font-size: 0.813rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.team-member-actions button:hover {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Team Section Responsive */
@media (max-width: 768px) {
  .team-members-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .team-member-card {
    padding: 1.25rem;
  }
  
  .team-member-avatar {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .team-members-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== TEAM DIVISION SECTIONS ===== */
.team-divisions-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.team-division {
  margin-bottom: 0;
}

.division-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.division-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  letter-spacing: -0.01em;
}

.division-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* ===== MEMBER CARDS ===== */
.member-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.member-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid rgba(30, 41, 59, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.status-indicator.online {
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.status-indicator.offline {
  background: #64748b;
}

.member-info {
  width: 100%;
  margin-bottom: 1rem;
}

.member-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0 0 0.25rem 0;
}

.member-role {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0 0 0.75rem 0;
  text-transform: capitalize;
}

.member-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.813rem;
  color: #94a3b8;
}

.meta-item svg {
  color: #60a5fa;
  flex-shrink: 0;
}

.status-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.status-badge.trial {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-badge.inactive {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.member-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  width: 100%;
  justify-content: center;
}

.btn-icon {
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #60a5fa;
  padding: 0;
}

.btn-icon:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* Member Cards Responsive */
@media (max-width: 768px) {
  .members-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .member-card {
    padding: 1.25rem;
  }
  
  .member-avatar {
    width: 64px;
    height: 64px;
  }
  
  .division-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
  
  .team-division {
    margin-bottom: 2rem;
  }
}

/* ===== REAL-TIME CHAT SYSTEM ===== */
.chat-system {
  position: fixed;
  bottom: 0;
  right: 20px;
  width: 380px;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-system.collapsed {
  height: 56px;
}

.chat-system.expanded {
  height: 600px;
  max-height: calc(100vh - 100px);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(30, 41, 59, 0.8));
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  cursor: pointer;
  user-select: none;
  border-radius: 12px 12px 0 0;
}

.chat-header:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(30, 41, 59, 0.9));
}

.chat-header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f1f5f9;
  font-weight: 600;
}

.chat-header-content svg {
  color: #60a5fa;
}

.chat-unread-badge {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.chat-expand-icon {
  color: #94a3b8;
  transition: transform 0.3s ease;
}

.chat-system.expanded .chat-expand-icon {
  transform: rotate(180deg);
}

.chat-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Conversations List */
.chat-conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.chat-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #94a3b8;
}

.chat-empty-state svg {
  color: #60a5fa;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.chat-empty-state p {
  margin: 0.5rem 0;
  font-weight: 600;
  color: #cbd5e1;
}

.chat-empty-state small {
  font-size: 0.813rem;
  color: #64748b;
}

.chat-conversation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-conversation-item:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(4px);
}

.chat-conv-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.chat-conv-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(59, 130, 246, 0.3);
}

.chat-conv-avatar .status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(15, 23, 42, 0.98);
}

.chat-conv-info {
  flex: 1;
  min-width: 0;
}

.chat-conv-name {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 0.938rem;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv-preview {
  font-size: 0.813rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.chat-conv-time {
  font-size: 0.75rem;
  color: #64748b;
}

.chat-conv-unread {
  background: #3b82f6;
  color: #ffffff;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.688rem;
  font-weight: 700;
  min-width: 20px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Conversation View */
.chat-conversation-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-conversation-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.chat-back-btn {
  width: 36px;
  height: 36px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #60a5fa;
  padding: 0;
  flex-shrink: 0;
}

.chat-back-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateX(-2px);
}

.chat-conversation-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.chat-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.chat-user-name {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 0.938rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-user-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.chat-user-status .status-dot {
  width: 8px;
  height: 8px;
}

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(10, 15, 28, 0.5);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.chat-messages::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Keep these for compatibility but they won't show */
.chat-messages::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 3px;
}

.chat-empty-messages {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #94a3b8;
  font-size: 0.938rem;
  text-align: center;
  padding: 2rem;
}

.chat-message {
  display: flex;
  margin-bottom: 0.5rem;
}

.chat-message.mine {
  justify-content: flex-end;
}

.chat-message.theirs {
  justify-content: flex-start;
}

.chat-message-bubble {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  word-wrap: break-word;
  animation: messageSlideIn 0.2s ease;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.mine .chat-message-bubble {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-message.theirs .chat-message-bubble {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
}

.chat-message-text {
  font-size: 0.938rem;
  line-height: 1.5;
  margin-bottom: 0.25rem;
  white-space: pre-wrap;
}

.chat-message-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.chat-message-time {
  font-size: 0.688rem;
  opacity: 0.7;
}

.msg-status {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.msg-status.sent {
  color: #94a3b8;
}

.msg-status.delivered {
  color: #cbd5e1;
}

.msg-status.read {
  color: #60a5fa;
}

/* Typing Indicator */
.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(30, 41, 59, 0.6);
  border-top: 1px solid rgba(148, 163, 184, 0.05);
  font-size: 0.813rem;
  color: #94a3b8;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: #60a5fa;
  border-radius: 50%;
  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);
  }
  30% {
    transform: translateY(-8px);
  }
}

/* Chat Input */
.chat-input-container {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(30, 41, 59, 0.8);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.chat-input {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 0.938rem;
  font-family: inherit;
  resize: none;
  transition: all 0.2s ease;
}

.chat-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-input::placeholder {
  color: #64748b;
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff;
  padding: 0;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.chat-send-btn:active {
  transform: translateY(0);
}

/* Chat System Responsive */
@media (max-width: 768px) {
  .chat-system {
    right: 10px;
    width: calc(100vw - 20px);
    max-width: 380px;
  }
}

@media (max-width: 480px) {
  .chat-system {
    right: 0;
    width: 100vw;
    max-width: none;
    border-radius: 0;
  }
  
  .chat-header {
    border-radius: 0;
  }
  
  .chat-system.expanded {
    height: calc(100vh - 80px);
    max-height: none;
  }
}

/* ===== SCHEDULE/CALENDAR SECTION ===== */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.calendar-nav-btn {
  background: rgba(0, 204, 255, 0.1);
  border: 1px solid rgba(0, 204, 255, 0.3);
  color: #00CCFF;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calendar-nav-btn:hover {
  background: rgba(0, 204, 255, 0.2);
  transform: scale(1.05);
}

.calendar-month-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  min-width: 200px;
  text-align: center;
}

.calendar-today-btn {
  background: linear-gradient(135deg, #00CCFF 0%, #0099CC 100%);
  border: none;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.calendar-today-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 204, 255, 0.3);
}

.calendar-container {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  margin-bottom: 2rem;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.calendar-weekday {
  text-align: center;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  padding: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 100px;
  overflow: hidden;
}

.calendar-day:hover {
  background: rgba(0, 204, 255, 0.05);
  border-color: rgba(0, 204, 255, 0.3);
  transform: translateY(-2px);
}

.calendar-day.other-month {
  opacity: 0.3;
  cursor: default;
}

.calendar-day.other-month:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(148, 163, 184, 0.1);
  transform: none;
}

.calendar-day.today {
  background: rgba(0, 204, 255, 0.15);
  border-color: rgba(0, 204, 255, 0.5);
  font-weight: 700;
}

.calendar-day.has-events {
  border-color: rgba(0, 204, 255, 0.4);
}

.calendar-day-number {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.375rem;
  width: 100%;
}

.calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  flex: 1;
  overflow: hidden;
}

.calendar-event-item {
  width: 100%;
  padding: 0.25rem 0.375rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.calendar-event-item.practice {
  background: rgba(0, 204, 255, 0.2);
  color: #00CCFF;
  border-left: 3px solid #00CCFF;
}

.calendar-event-item.match {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
  border-left: 3px solid #ff4444;
}

.calendar-event-item.tournament {
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
  border-left: 3px solid #ffa500;
}

.calendar-event-item.meeting {
  background: rgba(147, 51, 234, 0.2);
  color: #9333ea;
  border-left: 3px solid #9333ea;
}

.calendar-event-item.other {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border-left: 3px solid #6b7280;
}

.calendar-event-more {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.25rem 0.375rem;
  font-weight: 500;
}

/* Events List */
.schedule-events-section {
  margin-top: 2rem;
}

.events-list {
  display: grid;
  gap: 1rem;
}

.event-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.event-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 204, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.event-type-badge {
  padding: 0.375rem 0.875rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-type-badge.practice {
  background: rgba(0, 204, 255, 0.15);
  color: #00CCFF;
  border: 1px solid rgba(0, 204, 255, 0.3);
}

.event-type-badge.match {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
  border: 1px solid rgba(255, 68, 68, 0.3);
}

.event-type-badge.tournament {
  background: rgba(255, 165, 0, 0.15);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.3);
}

.event-type-badge.meeting {
  background: rgba(147, 51, 234, 0.15);
  color: #9333ea;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.event-type-badge.other {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.event-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 0.5rem 0;
}

.event-datetime {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.event-datetime svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.event-location svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.event-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.no-events-message {
  text-align: center;
  padding: 3rem;
  color: rgba(255, 255, 255, 0.5);
}

.no-events-message svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* Responsive Calendar */
@media (max-width: 768px) {
  .calendar-day {
    min-height: 70px;
    padding: 0.375rem 0.25rem;
  }
  
  .calendar-day-number {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
  }
  
  .calendar-event-item {
    font-size: 0.65rem;
    padding: 0.2rem 0.3rem;
  }
  
  .calendar-event-more {
    font-size: 0.6rem;
  }
  
  .calendar-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .calendar-nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .calendar-month-title {
    font-size: 1.25rem;
  }
}

/* Footer Styling */
footer {
  margin-left: 280px; /* Match sidebar width */
  padding: 2rem;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 0.875rem;
}

@media (max-width: 1024px) {
  footer {
    margin-left: 0;
  }
}
