﻿/* Core Admin Panel Styles */
.admin-section {
  padding: 140px 0 60px;
  /* Increased padding to clear sticky header */
  position: relative;
  z-index: 5;
  min-height: 100vh;
}

.admin-card {
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(25px) saturate(200%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.15);
  margin-bottom: 30px;
  animation: cardFadeIn 0.5s ease-out;
  color: #fff;
  /* Ensure text is white */
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
}

.admin-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #fff, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header p {
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 0 0;
  font-size: 15px;
}

.admin-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  text-decoration: none;
}

.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  filter: brightness(1.1);
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-family: inherit;
}

.tab-btn.active {
  color: #34d399 !important;
  border-bottom-color: #34d399 !important;
  background: rgba(52, 211, 153, 0.1) !important;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
  outline: none;
}

.loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  color: #34d399;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  margin: 20px 0;
}

.loading.show {
  display: flex !important;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: none;
}

.success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: none;
}

/* Page Background Blobs */
.blob {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.1;
  pointer-events: none;
}

.blob-1 {
  background: #10b981;
  top: -10%;
  right: -5%;
}

.blob-2 {
  background: #6366f1;
  bottom: -10%;
  left: -5%;
}

.blob-3 {
  background: #34d399;
  top: 40%;
  left: 30%;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

#supportBellBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.25), 0 8px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(52, 211, 153, 0.5);
}

#supportBellBtn:hover .fa-comments {
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.8);
}

#supportUnreadBadge {
  animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

#supportBellBtn:hover .hover-effect {
  opacity: 1;
}

#supportBellList::-webkit-scrollbar {
  width: 6px;
}

#supportBellList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

#supportBellList::-webkit-scrollbar-thumb {
  background: rgba(52, 211, 153, 0.3);
  border-radius: 10px;
}

#supportBellList::-webkit-scrollbar-thumb:hover {
  background: rgba(52, 211, 153, 0.5);
}

/* Custom Context Menu */
.custom-context-menu {
  display: none;
  position: absolute;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 2000000;
  animation: menuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-context-menu .context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.custom-context-menu .context-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.custom-context-menu .context-menu-item i {
  font-size: 14px;
  color: #94a3b8;
  width: 18px;
  text-align: center;
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Security Modal Styles */
.security-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: 0.3s;
}

.security-modal-overlay.active {
  opacity: 1;
  display: flex;
}

.security-modal-box {
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(239, 68, 68, 0.15);
  transform: scale(0.9);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.security-modal-overlay.active .security-modal-box {
  transform: scale(1);
}

.security-modal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.verify-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 24px;
  transition: 0.3s;
  user-select: none;
  justify-content: center;
}

.verify-checkbox:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.verify-checkbox.checked {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.verify-box {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.checked .verify-box {
  background: #34d399;
  border-color: #34d399;
}

.verify-box i {
  color: #fff;
  font-size: 12px;
  transform: scale(0);
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checked .verify-box i {
  transform: scale(1);
}

/* Chat Messages */
.message-container {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  max-width: 85%;
  transition: all 0.3s ease;
}

.message-bubble {
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 14px 18px;
  position: relative;
  line-height: 1.5;
  font-size: 15px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message-container.sent .message-bubble {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  font-weight: 500;
}

.message-container.received .message-bubble {
  background: linear-gradient(135deg, #1e3a4c 0%, #0f3a4a 100%);
  color: #ecfdf5;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1.5px solid rgba(34, 197, 195, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.message-time {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.message-container.sent .message-time {
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.95);
}

.message-container.received .message-time {
  justify-content: flex-start;
  color: rgba(236, 253, 245, 0.8);
}