/* Portal - Dark Glass Morphism Theme */

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

:root {
  --primary: rgba(99, 102, 241, 0.6);
  --primary-hover: rgba(99, 102, 241, 0.8);
  --primary-border: rgba(99, 102, 241, 0.4);
  --bg-dark: rgba(15, 15, 25, 0.8);
  --bg-light: rgba(255, 255, 255, 0.1);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.18);
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.sidebar-open {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.container.dashboard-container {
  max-width: 100%;
  height: 100vh;
  display: flex;
  padding: 0;
  margin: 0;
  align-items: stretch;
  justify-content: flex-start;
}

.glass-card {
  background: var(--bg-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  animation: fadeInUp 0.6s ease;
}

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

.logo {
  text-align: center;
  margin-bottom: 40px;
}

.logo h1 {
  font-size: 36px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.logo p {
  color: var(--text-secondary);
  font-size: 16px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  border-color: var(--primary-border);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--primary-border);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-light);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.link {
  text-align: center;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 14px;
}

.link a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.link a:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
}

.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

.alert-success {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

/* Dashboard Styles */
.dashboard-container {
  max-width: 100%;
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--bg-light);
  border-color: var(--primary-border);
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Sidebar */
.dashboard-sidebar {
  width: 280px;
  background: var(--bg-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-header {
  padding: 30px 24px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-header h1 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.sidebar-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 14px 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-primary);
  border-left-color: var(--primary);
}

.nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.nav-text {
  flex: 1;
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-footer .user-badge {
  width: 100%;
  text-align: center;
}

.sidebar-footer .logout-btn {
  width: 100%;
  text-align: center;
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 6px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.dashboard-main::-webkit-scrollbar {
  width: 8px;
}

.dashboard-main::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-main::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.dashboard-main::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Main Content Area */
.dashboard-main {
  flex: 1;
  margin-left: 280px;
  height: 100vh;
  overflow-y: auto;
  background: transparent;
  padding: 20px;
}

.dashboard-content {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  min-height: calc(100vh - 40px);
}

.user-badge {
  background: var(--bg-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.loading-indicator {
  text-align: center;
  padding: 60px 40px;
  color: rgba(255, 255, 255, 0.7);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Statistics Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-border);
}

.stat-icon {
  font-size: 40px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-value {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Tab Content (no longer using tab buttons, using sidebar nav) */
.tab-content {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.tab-content.active {
  display: flex;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.session-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.filter-btn {
  padding: 8px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-border);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary-border);
  color: white;
  font-weight: 600;
}

.filter-btn.active:hover {
  background: var(--primary-hover);
  border-color: var(--primary-border-hover);
}

.section-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.section-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.search-input {
  padding: 12px 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  min-width: 250px;
  max-width: 400px;
  flex: 1;
}

.search-input:focus {
  border-color: var(--primary-border);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.refresh-btn {
  padding: 12px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.refresh-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-border);
  transform: rotate(180deg);
}

.refresh-btn:active {
  transform: rotate(180deg) scale(0.95);
}

.session-id-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-badge {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.info-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.dashboard-content {
  background: var(--bg-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

.section-title {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  padding: 0;
  border: none;
}

.api-key-container {
  background: var(--bg-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
}

.api-key-display {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.api-key-display input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  outline: none;
}

.api-key-display button {
  padding: 12px 20px;
  background: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.api-key-display button:hover {
  background: var(--primary-hover);
}

.embed-code-container {
  background: var(--bg-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
}

.embed-code-display {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.embed-code-display code {
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-btn {
  padding: 10px 20px;
  background: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: var(--primary-hover);
}

.copy-btn:active {
  transform: scale(0.98);
}

.logout-btn {
  padding: 10px 20px;
  background: rgba(239, 68, 68, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.5);
}

.info-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.user-info {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.user-info strong {
  color: var(--text-primary);
}

/* Notification Settings */
.settings-section {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--bg-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.settings-btn {
  padding: 12px 24px;
  background: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
}

.settings-btn:hover {
  background: var(--primary-hover);
  border-color: var(--primary-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.settings-btn:active {
  transform: translateY(0);
}

.notification-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.notification-status.enabled {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: rgba(34, 197, 94, 1);
}

.notification-status.disabled {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: rgba(239, 68, 68, 1);
}

.notification-status.default {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.name-edit-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-name-display {
  color: var(--text-primary);
  margin-right: 8px;
}

.user-name-input {
  padding: 6px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  min-width: 150px;
  transition: all 0.3s ease;
}

.user-name-input:focus {
  border-color: var(--primary-border);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.edit-name-btn,
.save-name-btn,
.cancel-name-btn {
  padding: 6px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.edit-name-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-border);
}

.save-name-btn {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

.save-name-btn:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.5);
}

.cancel-name-btn {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

.cancel-name-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Chat Sessions */
.chat-sessions-container {
  background: var(--bg-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 20px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  overflow-y: auto;
  min-height: 400px;
}

.sessions-list::-webkit-scrollbar {
  width: 8px;
}

.sessions-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.sessions-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.sessions-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.session-item {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

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

.session-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid var(--primary-border);
  padding-left: 17px;
}

.session-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-left: 3px solid var(--primary);
  padding-left: 17px;
}

.session-avatar {
  flex-shrink: 0;
  position: relative;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(236, 72, 153, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: rgba(239, 68, 68, 0.95);
  color: white;
  border-radius: 12px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
  border: 2px solid var(--bg-dark);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  z-index: 10;
}

.session-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.session-name-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.session-visitor-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-email {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-time {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.session-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.session-id-label {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.session-id-value {
  color: var(--text-secondary);
  font-size: 11px;
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.session-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-last-sender {
  color: var(--text-secondary);
  font-size: 12px;
}

.session-last-sender strong {
  color: var(--text-primary);
  font-weight: 600;
}

.session-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.delete-session-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: rgba(239, 68, 68, 0.8);
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.session-item:hover .delete-session-btn {
  opacity: 1;
}

.delete-session-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: rgba(239, 68, 68, 1);
  transform: scale(1.05);
}

.session-arrow {
  color: var(--text-muted);
  opacity: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.session-item:hover .session-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.loading-sessions,
.no-sessions {
  text-align: center;
  color: var(--text-secondary);
  padding: 60px 40px;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.no-sessions {
  color: var(--text-muted);
}

.loading-sessions::before {
  content: '⏳';
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
}

.no-sessions::before {
  content: '💬';
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
}

/* Chat Interface */
.chat-interface {
  background: var(--bg-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 0;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
  max-height: 800px;
  min-height: 500px;
}

.chat-interface-header {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.back-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-border);
  transform: translateX(-2px);
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

.chat-visitor-header {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chat-visitor-actions {
  display: flex;
  gap: 8px;
}

.block-visitor-btn,
.unblock-visitor-btn {
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.unblock-visitor-btn {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
}

.block-visitor-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.05);
}

.unblock-visitor-btn:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.5);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .chat-interface-header {
    padding: 12px 16px;
    gap: 12px;
  }
  
  .back-btn {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
  
  .visitor-avatar-circle {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  
  .chat-visitor-name-text {
    font-size: 15px;
  }
  
  .chat-visitor-email-text {
    font-size: 12px;
  }

  .online-status {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  .session-avatar .online-status {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }
  
  .chat-header-actions {
    gap: 8px;
  }
  
  .block-visitor-btn,
  .unblock-visitor-btn,
  .session-id-toggle {
    width: 36px;
    height: 36px;
    padding: 6px;
  }
  
  .session-id-popup {
    right: 0;
    left: auto;
    min-width: 240px;
  }
}

.chat-visitor-avatar {
  flex-shrink: 0;
}

.visitor-avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(236, 72, 153, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  position: relative;
}

.chat-visitor-avatar {
  position: relative;
}

.online-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  z-index: 10;
  transition: all 0.2s ease;
}

.online-status.online {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3), 0 0 8px rgba(34, 197, 94, 0.5);
}

.online-status.offline {
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.session-avatar {
  position: relative;
}

.session-avatar .online-status {
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-width: 2px;
}

.chat-visitor-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visitor-name-container,
.visitor-email-container {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.visitor-name-container:hover .visitor-edit-controls,
.visitor-email-container:hover .visitor-edit-controls {
  opacity: 1;
}

.visitor-edit-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chat-visitor-name-text {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.chat-visitor-email-text {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.chat-visitor-email-text:empty {
  color: var(--text-muted);
  font-style: italic;
}

.chat-visitor-name-input,
.chat-visitor-email-input {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  min-width: 150px;
  transition: all 0.3s ease;
}

.chat-visitor-name-input:focus,
.chat-visitor-email-input:focus {
  border-color: var(--primary-border);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.edit-visitor-btn,
.save-visitor-btn,
.cancel-visitor-btn {
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 1;
}

.edit-visitor-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.save-visitor-btn {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

.save-visitor-btn:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.5);
}

.cancel-visitor-btn {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: rgba(255, 255, 255, 0.95);
}

.cancel-visitor-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

.chat-session-id-dropdown {
  position: relative;
}

.session-id-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-secondary);
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.session-id-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-border);
  color: var(--text-primary);
}

.session-id-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.session-id-popup-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-detail-label {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.session-detail-value {
  color: var(--text-primary);
  font-size: 12px;
  font-family: 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 6px;
  word-break: break-all;
  line-height: 1.4;
}

.session-id-text {
  color: var(--text-primary);
  font-size: 12px;
  font-family: 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 6px;
  word-break: break-all;
  line-height: 1.5;
}

.visitor-location-info {
  margin-top: 4px;
}

.chat-visitor-location-text {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(0, 0, 0, 0.15);
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.chat-message {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  max-width: 75%;
  min-width: 120px;
  align-self: flex-start;
  transition: all 0.2s ease;
  position: relative;
}

.chat-message:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chat-message.admin {
  align-self: flex-end;
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.35);
}

.chat-message.admin:hover {
  background: rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.45);
}

.chat-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
}

.chat-message-sender {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-right: 12px;
  font-size: 13px;
}

.chat-message.admin .chat-message-sender {
  color: rgba(255, 255, 255, 0.98);
}

.chat-message-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  margin-left: auto;
  font-weight: 500;
  white-space: nowrap;
}

.chat-message-actions {
  display: flex;
  gap: 6px;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.chat-message:hover .chat-message-actions {
  opacity: 1;
}

.edit-message-btn,
.delete-message-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.edit-message-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.delete-message-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.message-edit-input {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--primary-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.chat-message-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* File Attachments */
.chat-file-attachment {
  margin: 8px 0;
  border-radius: 8px;
  overflow: hidden;
}

.chat-file-link {
  display: inline-block;
  text-decoration: none;
  color: white;
  transition: all 0.2s ease;
}

.chat-file-link:hover {
  opacity: 0.8;
}

.chat-file-icon {
  font-size: 32px;
  display: inline-block;
}

.chat-file-image {
  max-width: 300px;
  max-height: 300px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.chat-typing-indicator {
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  display: none;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.chat-typing-indicator.active {
  display: block;
}

.chat-input-container {
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.chat-file-button {
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
}

.chat-file-button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.chat-file-button:active {
  transform: scale(0.95);
}

#chatInput {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

#chatInput:focus {
  border-color: var(--primary-border);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#chatInput::placeholder {
  color: var(--text-muted);
}

.chat-send-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.chat-send-button:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.chat-send-button:active {
  transform: scale(0.95);
}

.chat-send-button svg {
  width: 20px;
  height: 20px;
}

.chat-send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .sidebar-overlay {
    display: block;
  }

  .dashboard-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-sidebar.active {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
    padding: 20px;
    padding-top: 70px;
  }

  .dashboard-content {
    padding: 10px;
    border-radius: 16px;
    min-height: calc(100vh - 100px);
  }

  .glass-card {
    padding: 30px 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
  }

  .stat-value {
    font-size: 24px;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-actions {
    flex-direction: column;
    width: 100%;
  }

  .search-input {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
  }

  .refresh-btn {
    width: 100%;
    justify-content: center;
  }

  .api-key-display {
    flex-direction: column;
  }

  .api-key-display input,
  .api-key-display button {
    width: 100%;
  }

  .chat-interface {
    height: calc(100vh - 80px);
    max-height: none;
    min-height: 400px;
    border-radius: 0;
    margin-bottom: 0;
  }

  .chat-interface-header {
    padding: 12px;
    gap: 10px;
  }

  .back-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .back-btn span {
    display: none;
  }

  .visitor-avatar-circle {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .chat-visitor-name-text {
    font-size: 15px;
  }

  .chat-visitor-email-text {
    font-size: 12px;
  }

  .chat-session-id {
    padding-top: 6px;
    gap: 6px;
  }

  .session-id-text {
    font-size: 10px;
    padding: 3px 8px;
    max-width: 200px;
  }

  .chat-messages {
    padding: 14px 12px;
    gap: 12px;
  }

  .chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
  }

  .chat-message-header {
    margin-bottom: 6px;
    gap: 8px;
  }

  .chat-message-sender {
    font-size: 12px;
  }

  .chat-message-time {
    font-size: 10px;
  }

  .chat-message-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .chat-input-container {
    padding: 14px;
    gap: 10px;
  }

  #chatInput {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 20px;
  }

  .chat-send-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .chat-send-button svg {
    width: 18px;
    height: 18px;
  }

  .sessions-list {
    flex: 1;
    min-height: 300px;
  }

  .session-item {
    padding: 14px;
    gap: 12px;
  }

  .avatar-circle {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .unread-badge {
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    padding: 0 5px;
    top: -3px;
    right: -3px;
    border-width: 1.5px;
  }

  .session-filters {
    margin-bottom: 12px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .session-filters::-webkit-scrollbar {
    height: 4px;
  }

  .session-filters::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .session-visitor-name {
    font-size: 15px;
  }

  .session-filters {
    margin-bottom: 12px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .session-filters::-webkit-scrollbar {
    height: 4px;
  }

  .session-filters::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .session-header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .session-name-group {
    flex: 1;
    min-width: 0;
  }

  .session-time {
    flex-shrink: 0;
  }

  .session-arrow {
    display: none;
  }
  
  .delete-session-btn {
    opacity: 1 !important;
    padding: 8px 12px;
    font-size: 16px;
  }

  .sidebar-header {
    padding: 20px;
  }

  .sidebar-nav {
    padding: 12px 0;
  }

  .nav-item {
    padding: 12px 20px;
  }

  .sidebar-footer {
    padding: 16px 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .dashboard-sidebar {
    width: 240px;
  }

  .dashboard-main {
    margin-left: 240px;
  }

  .dashboard-content {
    padding: 30px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

