/* ============================================
   SentinelBot — Telegram Web Interface
   Desktop-first design
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a24;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
  --accent: #007AFF;
  --accent-hover: #0056b3;
  --border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: -25%;
  left: -15%;
  width: 65%;
  height: 65%;
  background: 
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(120, 80, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 30%, rgba(0, 122, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -25%;
  right: -15%;
  width: 65%;
  height: 65%;
  background: 
    radial-gradient(ellipse 80% 60% at 70% 60%, rgba(0, 122, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 50%, rgba(120, 80, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Screens */
.screen {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

.screen.active {
  display: block;
}

/* ============================================
   AUTH SCREEN
   ============================================ */

.auth-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.auth-subtitle {
  font-size: 14px;
  color: rgba(142, 142, 147, 0.8);
  margin-bottom: 40px;
  animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.auth-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 0.5px 0 rgba(255, 255, 255, 0.08);
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.auth-step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.auth-step-desc {
  font-size: 13px;
  color: rgba(142, 142, 147, 0.7);
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--ios-blue);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.auth-input::placeholder {
  color: rgba(142, 142, 147, 0.5);
}

.auth-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #007AFF 0%, #0056b3 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.auth-button:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.auth-button:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.auth-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-button:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.auth-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-back-button {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: rgba(142, 142, 147, 0.8);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.auth-back-button:active {
  opacity: 0.6;
}

.auth-footer {
  margin-top: 32px;
  text-align: center;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.auth-footer p {
  font-size: 12px;
  color: rgba(142, 142, 147, 0.5);
  letter-spacing: 0.02em;
}

/* ============================================
   MAIN APP SCREEN
   ============================================ */

.app-container {
  max-width: 420px;
  margin: 0 auto;
  padding: 0 16px 100px;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-info {
  flex: 1;
  min-width: 0;
}

.header-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header-subtitle {
  font-size: 11px;
  color: rgba(142, 142, 147, 0.7);
  margin-top: 2px;
}

.header-logout {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ios-red);
}

.header-logout:active {
  transform: scale(0.95);
  background: rgba(255, 59, 48, 0.2);
}

/* Search & Filters */
.search-section {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.search-box:focus-within {
  border-color: var(--accent);
  background: rgba(26, 26, 36, 0.8);
}

.search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.filter-btn {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.filter-btn:active {
  transform: scale(0.95);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.refresh-button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(142, 142, 147, 0.7);
}

.refresh-button:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.1);
}

/* Chat List */
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: cardAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.chat-item:active {
  transform: scale(0.98);
}

.chat-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid;
}

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-preview {
  font-size: 13px;
  color: rgba(142, 142, 147, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(142, 142, 147, 0.5);
}

.chat-time {
  font-size: 11px;
  color: rgba(142, 142, 147, 0.5);
  flex-shrink: 0;
}

/* Messages Section */
.messages-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.back-button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ios-blue);
  flex-shrink: 0;
}

.back-button:active {
  transform: scale(0.95);
}

.messages-header-info {
  flex: 1;
  min-width: 0;
}

.messages-header-info h3 {
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages-header-info p {
  font-size: 12px;
  color: rgba(142, 142, 147, 0.6);
  margin-top: 2px;
}

.clear-button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ios-red);
  flex-shrink: 0;
}

.clear-button:active {
  transform: scale(0.95);
  background: rgba(255, 59, 48, 0.2);
}

/* Messages List */
.messages-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 4px 0;
}

.messages-list::-webkit-scrollbar {
  width: 3px;
}

.messages-list::-webkit-scrollbar-track {
  background: transparent;
}

.messages-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

/* Message Bubbles */
.message-bubble {
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  animation: messageAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes messageAppear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-owner {
  background: var(--ios-blue);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  align-self: flex-end;
  margin: 2px 0 2px auto;
}

.message-user {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 18px 18px 18px 4px;
  align-self: flex-start;
  margin: 2px auto 2px 0;
}

.message-deleted {
  background: rgba(255, 59, 48, 0.08);
  color: rgba(255, 59, 48, 0.6);
  border-radius: 18px 18px 18px 4px;
  align-self: flex-start;
  margin: 2px auto 2px 0;
  font-size: 12px;
  font-style: italic;
  border: 0.5px solid rgba(255, 59, 48, 0.15);
  padding: 9px 12px;
}

.message-time {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.6;
}

.message-owner .message-time {
  text-align: right;
}

/* Media Messages */
.message-media {
  padding: 5px;
  overflow: hidden;
}

.message-media img,
.message-media video {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.message-media .message-text {
  padding: 8px 8px 0;
  font-size: 14px;
}

.message-media .message-time {
  padding: 0 8px 4px;
}

.message-sticker {
  width: 120px;
  height: 120px;
  display: block;
}

.message-voice {
  width: 100%;
  height: 40px;
  margin-top: 4px;
}

/* Skeleton Loading */
.skeleton-item {
  height: 72px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 16px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: rgba(142, 142, 147, 0.4);
  text-align: center;
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(142, 142, 147, 0.5);
}

.empty-state-desc {
  font-size: 13px;
  color: rgba(142, 142, 147, 0.4);
}

/* ============================================
   SIDEBAR LAYOUT (Desktop-first)
   ============================================ */

.app {
  display: flex;
  height: 100vh;
  position: relative;
}

.sidebar {
  width: 320px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.sidebar-header h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  background: var(--glass-bg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.icon-btn:active {
  transform: scale(0.95);
}

.chat-filters {
  display: flex;
  gap: 6px;
  padding: 0 16px 12px;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 8px;
}

.chat-list::-webkit-scrollbar {
  width: 6px;
}

.chat-list::-webkit-scrollbar-track {
  background: transparent;
}

.chat-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Main Chat Area */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  position: relative;
}

.empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.empty-state h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 14px;
  max-width: 300px;
}

.chat-view {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
}

.chat-header-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.chat-header-info:hover {
  opacity: 0.8;
}

.chat-details h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.chat-details p {
  font-size: 12px;
  color: var(--text-secondary);
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.messages-container::-webkit-scrollbar {
  width: 6px;
}

.messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Message Input */
.message-input-area {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
}

.message-input-area input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;
  border: 0.5px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.message-input-area input:focus {
  border-color: var(--accent);
}

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.send-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.send-btn:active {
  transform: scale(0.95);
}

/* Profile Panel */
.profile-panel {
  width: 340px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.profile-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-header h3 {
  font-size: 18px;
  font-weight: 600;
}

.profile-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  background: var(--bg-tertiary);
  border: 3px solid var(--border);
}

.profile-name {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.profile-username {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border-radius: 8px;
  font-size: 13px;
}

.profile-info-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.profile-info-item span {
  color: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: rgba(255, 59, 48, 0.2);
  border-color: rgba(255, 59, 48, 0.3);
}

.toast.success {
  background: rgba(52, 199, 89, 0.2);
  border-color: rgba(52, 199, 89, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: absolute;
    z-index: 10;
    height: 100%;
  }

  .chat-area {
    width: 100%;
  }

  .profile-panel {
    width: 100%;
    position: absolute;
    z-index: 10;
    height: 100%;
  }
}

@media (max-width: 420px) {
  .auth-container,
  .app-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Safe areas */
.safe-top {
  padding-top: env(safe-area-inset-top, 8px);
}

.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 16px);
}
