/* style.css - DailyDiary Premium Responsive Styles */
body { scroll-behavior: smooth; }

/* ========== READING PROGRESS BAR ========== */
#readingProgress { z-index: 9998; }

/* ========== PROFESSIONAL LOGO STYLES ========== */
.logo-container { position: relative; display: flex; align-items: center; }
.logo-icon { transition: transform 0.3s ease, filter 0.3s ease; }
.logo-container:hover .logo-icon { transform: scale(1.05) rotate(-5deg); filter: drop-shadow(0 8px 12px rgba(37, 99, 235, 0.4)); }
.logo-text {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dark .logo-text {
  background: linear-gradient(135deg, #F8FAFC 0%, #CBD5E1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
@keyframes logoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.logo-animated { animation: logoPulse 2s ease-in-out infinite; }

/* ========== NAVBAR STYLES ========== */
.nav-link { position: relative; transition: all 0.2s ease; }
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: #2563EB; border-radius: 2px; transition: width 0.3s ease;
}
.nav-link:hover::after { width: 20px; }
.nav-link.active { color: #2563EB; font-weight: 600; }
.nav-link.active::after { width: 24px; }
.mobile-nav-link { transition: all 0.2s ease; }
.mobile-nav-link:active { background: rgba(37, 99, 235, 0.1); }

/* ========== BOOKMARK DROPDOWN ========== */
#bookmarkDropdown { animation: dropdownFade 0.2s ease-out; }
@keyframes dropdownFade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ========== RESPONSIVE ACTION BUTTONS ========== */
/* Extra small screen support */
@media (min-width: 400px) {
  .xs\:inline { display: inline !important; }
}

/* Action buttons in modal */
#likeBtn, #bookmarkBtn, #shareBtn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  min-height: 40px;
}

#likeBtn:active, #bookmarkBtn:active, #shareBtn:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Card action buttons */
.card-like-btn, .quick-bookmark {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== PROFESSIONAL AUTHOR CARDS ========== */
.author-card {
  position: relative; background: white; border-radius: 1.5rem;
  padding: 2rem 1.5rem 1.5rem; text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); overflow: hidden;
}
.dark .author-card { background: rgba(30, 41, 59, 0.8); border-color: rgba(255,255,255,0.05); }
.author-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(135deg, #2563EB, #06B6D4); opacity: 0;
  transition: opacity 0.4s ease; z-index: 0;
}
.author-card:hover::before { opacity: 0.06; }
.author-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 40px -15px rgba(0,0,0,0.15);
  border-color: rgba(37, 99, 235, 0.15);
}
.dark .author-card:hover { box-shadow: 0 25px 40px -15px rgba(0,0,0,0.5); }

.author-avatar-wrapper { position: relative; z-index: 1; display: inline-block; margin-bottom: 1rem; }
.author-avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 3px solid white; box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}
.dark .author-avatar { border-color: #1E293B; }
.author-card:hover .author-avatar { transform: scale(1.08); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25); }
.author-verified {
  position: absolute; bottom: 4px; right: 4px;
  width: 22px; height: 22px; background: #2563EB; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 2px solid white;
}
.dark .author-verified { border-color: #1E293B; }
.author-verified i { color: white; font-size: 10px; }
.author-card .author-name {
  position: relative; z-index: 1; font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; transition: color 0.3s;
}
.author-card:hover .author-name { color: #2563EB; }
.author-role { position: relative; z-index: 1; font-size: 0.8rem; color: #64748B; font-weight: 500; margin-bottom: 0.5rem; }
.author-bio { position: relative; z-index: 1; font-size: 0.8rem; color: #94A3B8; line-height: 1.5; margin-bottom: 1rem; }
.author-stats {
  position: relative; z-index: 1; display: flex; justify-content: center;
  gap: 1.25rem; padding: 0.75rem 0; border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9; margin-bottom: 1rem;
}
.dark .author-stats { border-color: #334155; }
.author-stat { text-align: center; }
.author-stat-value { font-weight: 700; font-size: 1rem; color: #0F172A; }
.dark .author-stat-value { color: #F1F5F9; }
.author-stat-label { font-size: 0.7rem; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.05em; }
.author-social { position: relative; z-index: 1; display: flex; justify-content: center; gap: 0.75rem; }
.author-social-btn {
  width: 34px; height: 34px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; color: #94A3B8;
  background: #F8FAFC; transition: all 0.25s ease; font-size: 0.85rem;
}
.dark .author-social-btn { background: #334155; color: #CBD5E1; }
.author-social-btn:hover { background: #2563EB; color: white; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3); }

/* ========== CATEGORY CARDS ========== */
.category-card {
  position: relative; background: white; border-radius: 1rem; padding: 1.25rem;
  cursor: pointer; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.04); overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
@media (min-width: 640px) { .category-card { border-radius: 1.5rem; padding: 2rem 1.5rem; } }
.dark .category-card { background: rgba(30,41,59,0.8); border-color: rgba(255,255,255,0.05); }
.category-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.4s ease; z-index: 0; border-radius: 1rem;
}
@media (min-width: 640px) { .category-card::before { border-radius: 1.5rem; } }
.category-card:hover::before { opacity: 0.08; }
.category-card[data-category="Technology"]::before { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.category-card[data-category="Artificial Intelligence"]::before { background: linear-gradient(135deg, #7C3AED, #6D28D9); }
.category-card[data-category="Programming"]::before { background: linear-gradient(135deg, #059669, #047857); }
.category-card[data-category="Business"]::before { background: linear-gradient(135deg, #EA580C, #C2410C); }
.category-card[data-category="Productivity"]::before { background: linear-gradient(135deg, #0891B2, #0E7490); }
.category-card[data-category="Design"]::before { background: linear-gradient(135deg, #DB2777, #BE185D); }
.category-card[data-category="Lifestyle"]::before { background: linear-gradient(135deg, #4F46E5, #4338CA); }
.category-card[data-category="Startups"]::before { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.category-card:hover { transform: translateY(-8px); box-shadow: 0 25px 40px -15px rgba(0,0,0,0.12); border-color: transparent; }
.dark .category-card:hover { box-shadow: 0 25px 40px -15px rgba(0,0,0,0.4); }
.category-icon-container {
  position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; transition: all 0.4s ease;
}
@media (min-width: 640px) { .category-icon-container { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.25rem; } }
.category-card:hover .category-icon-container { transform: scale(1.1) rotate(-5deg); }
.icon-tech { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); color: #2563EB; }
.icon-ai { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); color: #7C3AED; }
.icon-programming { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); color: #059669; }
.icon-business { background: linear-gradient(135deg, #FED7AA, #FDBA74); color: #EA580C; }
.icon-productivity { background: linear-gradient(135deg, #CFFAFE, #A5F3FC); color: #0891B2; }
.icon-design { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); color: #DB2777; }
.icon-lifestyle { background: linear-gradient(135deg, #E0E7FF, #C7D2FE); color: #4F46E5; }
.category-name { position: relative; z-index: 1; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.15rem; }
@media (min-width: 640px) { .category-name { font-size: 1.125rem; margin-bottom: 0.25rem; } }
.category-count { position: relative; z-index: 1; font-size: 0.7rem; color: #94A3B8; }
@media (min-width: 640px) { .category-count { font-size: 0.8125rem; } }
.dark .category-count { color: #64748B; }
.category-arrow { position: absolute; bottom: 0.75rem; right: 1rem; z-index: 1; opacity: 0; transform: translateX(-8px); transition: all 0.3s ease; color: #94A3B8; }
@media (min-width: 640px) { .category-arrow { bottom: 1.25rem; right: 1.5rem; } }
.category-card:hover .category-arrow { opacity: 1; transform: translateX(0); }

/* ========== LIVE SEARCH ========== */
.search-result-item { padding: 10px 12px; cursor: pointer; transition: background-color 0.15s; border-bottom: 1px solid rgba(0,0,0,0.05); }
@media (min-width: 640px) { .search-result-item { padding: 12px 16px; } }
.dark .search-result-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.search-result-item:hover { background-color: rgba(37,99,235,0.05); }
.search-result-item:last-child { border-bottom: none; }
.search-highlight { background-color: rgba(37,99,235,0.2); padding: 0 2px; border-radius: 2px; }

/* ========== LIVE STATS ========== */
#liveStatsTicker { animation: slideUp 0.5s ease-out; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ========== GENERAL ========== */
.glass-card { background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.3); }
.dark .glass-card { background: rgba(15,23,42,0.7); border-color: rgba(255,255,255,0.1); }
#desktopSearch:focus, #heroSearch:focus, #mobileSearch:focus { box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
@keyframes heartBeat { 0%{transform:scale(1)} 15%{transform:scale(1.3)} 30%{transform:scale(1)} 45%{transform:scale(1.15)} 60%{transform:scale(1)} }
.like-animation { animation: heartBeat 0.6s ease-in-out; color: #EF4444; }
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn { 0%{opacity:0;transform:translateY(10px)} 100%{opacity:1;transform:translateY(0)} }
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15); }

/* Toast - responsive */
.toast {
  background: white; padding: 0.75rem 1rem; border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1); display: flex; align-items: center;
  gap: 0.5rem; animation: slideIn 0.3s ease-out; font-size: 0.8rem;
}
@media (min-width: 640px) { .toast { padding: 1rem 1.5rem; border-radius: 1rem; gap: 0.75rem; font-size: 0.875rem; } }
.dark .toast { background: #1e293b; color: white; }
@keyframes slideIn { from{transform:translateX(100px);opacity:0} to{transform:translateX(0);opacity:1} }

/* Scrollbar */
::-webkit-scrollbar{width:4px} @media(min-width:640px){::-webkit-scrollbar{width:6px}}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:10px}

/* Skeleton */
.skeleton { background: linear-gradient(90deg,#e2e8f0 25%,#f1f5f9 50%,#e2e8f0 75%); background-size:200% 100%; animation:shimmer 1.5s infinite; }
.dark .skeleton { background: linear-gradient(90deg,#1e293b 25%,#334155 50%,#1e293b 75%); }
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* Bookmark Active */
.bookmark-active { color: #2563EB; }
.bookmark-active i { font-weight: 900; }

/* ========== MOBILE OPTIMIZATIONS ========== */
@media (max-width: 639px) {
  /* Prevent iOS zoom on input focus */
  input[type="text"], input[type="email"], input[type="search"] { font-size: 16px !important; }
  
  /* Larger touch targets for buttons */
  button, .nav-link, .mobile-nav-link { min-height: 40px; }
  
  /* Card touch feedback */
  .card-hover:active { transform: scale(0.98); }
  
  /* Modal full-width on mobile */
  #articleModal > div { border-radius: 1rem; }
}

/* Tablet optimizations */
@media (min-width: 640px) and (max-width: 1023px) {
  .card-hover:hover { transform: translateY(-2px); }
}
/* style.css - DailyDiary Premium Styles with Firebase Support */
body { scroll-behavior: smooth; }

/* Reading Progress */
#readingProgress { z-index: 9998; }

/* Logo */
.logo-container { position: relative; display: flex; align-items: center; }
.logo-icon { transition: transform 0.3s ease, filter 0.3s ease; }
.logo-container:hover .logo-icon { transform: scale(1.05) rotate(-5deg); filter: drop-shadow(0 8px 12px rgba(37, 99, 235, 0.4)); }
.logo-text { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dark .logo-text { background: linear-gradient(135deg, #F8FAFC 0%, #CBD5E1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
@keyframes logoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.logo-animated { animation: logoPulse 2s ease-in-out infinite; }

/* Navbar */
.nav-link { position: relative; transition: all 0.2s ease; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: #2563EB; border-radius: 2px; transition: width 0.3s ease; }
.nav-link:hover::after { width: 20px; }
.nav-link.active { color: #2563EB; font-weight: 600; }
.nav-link.active::after { width: 24px; }

/* Author Cards */
.author-card { position: relative; background: white; border-radius: 1.5rem; padding: 2rem 1.5rem 1.5rem; text-align: center; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); overflow: hidden; }
.dark .author-card { background: rgba(30, 41, 59, 0.8); border-color: rgba(255,255,255,0.05); }
.author-card:hover { transform: translateY(-8px); box-shadow: 0 25px 40px -15px rgba(0,0,0,0.15); }
.author-avatar-wrapper { position: relative; z-index: 1; display: inline-block; margin-bottom: 1rem; }
.author-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid white; box-shadow: 0 8px 20px rgba(0,0,0,0.1); transition: all 0.4s ease; }
.dark .author-avatar { border-color: #1E293B; }
.author-card:hover .author-avatar { transform: scale(1.08); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25); }
.author-verified { position: absolute; bottom: 4px; right: 4px; width: 22px; height: 22px; background: #2563EB; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid white; }
.dark .author-verified { border-color: #1E293B; }
.author-verified i { color: white; font-size: 10px; }
.author-name { position: relative; z-index: 1; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; transition: color 0.3s; }
.author-card:hover .author-name { color: #2563EB; }
.author-role { position: relative; z-index: 1; font-size: 0.8rem; color: #64748B; font-weight: 500; margin-bottom: 0.5rem; }
.author-bio { position: relative; z-index: 1; font-size: 0.8rem; color: #94A3B8; line-height: 1.5; margin-bottom: 1rem; }
.author-stats { position: relative; z-index: 1; display: flex; justify-content: center; gap: 1.25rem; padding: 0.75rem 0; border-top: 1px solid #F1F5F9; border-bottom: 1px solid #F1F5F9; margin-bottom: 1rem; }
.dark .author-stats { border-color: #334155; }
.author-stat { text-align: center; }
.author-stat-value { font-weight: 700; font-size: 1rem; color: #0F172A; }
.dark .author-stat-value { color: #F1F5F9; }
.author-stat-label { font-size: 0.7rem; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.05em; }
.author-social { position: relative; z-index: 1; display: flex; justify-content: center; gap: 0.75rem; }
.author-social-btn { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #94A3B8; background: #F8FAFC; transition: all 0.25s ease; font-size: 0.85rem; }
.dark .author-social-btn { background: #334155; color: #CBD5E1; }
.author-social-btn:hover { background: #2563EB; color: white; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3); }

/* Category Cards */
.category-card { position: relative; background: white; border-radius: 1rem; padding: 1.25rem; cursor: pointer; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(0,0,0,0.04); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
@media (min-width: 640px) { .category-card { border-radius: 1.5rem; padding: 2rem 1.5rem; } }
.dark .category-card { background: rgba(30,41,59,0.8); border-color: rgba(255,255,255,0.05); }
.category-card:hover { transform: translateY(-8px); box-shadow: 0 25px 40px -15px rgba(0,0,0,0.12); border-color: transparent; }
.category-icon-container { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; transition: all 0.4s ease; }
@media (min-width: 640px) { .category-icon-container { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.25rem; } }
.category-card:hover .category-icon-container { transform: scale(1.1) rotate(-5deg); }
.icon-tech { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); color: #2563EB; }
.icon-ai { background: linear-gradient(135deg, #EDE9FE, #DDD6FE); color: #7C3AED; }
.icon-programming { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); color: #059669; }
.icon-business { background: linear-gradient(135deg, #FED7AA, #FDBA74); color: #EA580C; }
.icon-productivity { background: linear-gradient(135deg, #CFFAFE, #A5F3FC); color: #0891B2; }
.icon-design { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); color: #DB2777; }
.icon-lifestyle { background: linear-gradient(135deg, #E0E7FF, #C7D2FE); color: #4F46E5; }
.category-name { position: relative; z-index: 1; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.15rem; }
@media (min-width: 640px) { .category-name { font-size: 1.125rem; margin-bottom: 0.25rem; } }
.category-count { position: relative; z-index: 1; font-size: 0.7rem; color: #94A3B8; }
.dark .category-count { color: #64748B; }
.category-arrow { position: absolute; bottom: 0.75rem; right: 1rem; z-index: 1; opacity: 0; transform: translateX(-8px); transition: all 0.3s ease; color: #94A3B8; }
.category-card:hover .category-arrow { opacity: 1; transform: translateX(0); }

/* Search Results */
.search-result-item { padding: 10px 12px; cursor: pointer; transition: background-color 0.15s; border-bottom: 1px solid rgba(0,0,0,0.05); }
.dark .search-result-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.search-result-item:hover { background-color: rgba(37,99,235,0.05); }
.search-result-item:last-child { border-bottom: none; }

/* General */
.glass-card { background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.3); }
.dark .glass-card { background: rgba(15,23,42,0.7); border-color: rgba(255,255,255,0.1); }
@keyframes heartBeat { 0%{transform:scale(1)} 15%{transform:scale(1.3)} 30%{transform:scale(1)} 45%{transform:scale(1.15)} 60%{transform:scale(1)} }
.like-animation { animation: heartBeat 0.6s ease-in-out; color: #EF4444; }
.fade-in { animation: fadeIn 0.6s ease-out; }
@keyframes fadeIn { 0%{opacity:0;transform:translateY(10px)} 100%{opacity:1;transform:translateY(0)} }
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15); }
.toast { background: white; padding: 0.75rem 1rem; border-radius: 0.75rem; box-shadow: 0 10px 25px rgba(0,0,0,0.12); display: flex; align-items: center; gap: 0.5rem; animation: slideIn 0.35s ease-out; font-size: 0.8rem; pointer-events: auto; }
@media (min-width: 640px) { .toast { padding: 1rem 1.5rem; border-radius: 1rem; font-size: 0.875rem; } }
.dark .toast { background: #1e293b; color: #f1f5f9; }
@keyframes slideIn { from{transform:translateX(120px);opacity:0} to{transform:translateX(0);opacity:1} }
::-webkit-scrollbar{width:4px} @media(min-width:640px){::-webkit-scrollbar{width:6px}}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:10px}

/* Custom scrollbar for modals */
.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.dark .custom-scrollbar::-webkit-scrollbar-thumb { background: #475569; }

@media (max-width: 639px) {
  input[type="text"], input[type="email"], input[type="search"], textarea, select { font-size: 16px !important; }
  button { min-height: 40px; }
}
@media (min-width: 400px) {
  .xs\:inline { display: inline !important; }
}

/* Connection Status Indicator */
.connection-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.connection-online { background: #10B981; color: white; }
.connection-offline { background: #EF4444; color: white; }