* {
  box-sizing: border-box;
}

:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #213547;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

button:focus {
  outline: none;
}

input {
  font-family: inherit;
}

input:focus {
  outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
}
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem;
}

.login-form {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  animation: slideUp 0.5s ease-out;
}

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

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.login-header p {
  color: #666;
  margin: 0;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.error-message {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-message::before {
  content: '⚠️';
  font-size: 1rem;
}

.login-button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

.login-button:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-info {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid #667eea;
}

.login-info p {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 0.9rem;
}

.login-info ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #666;
}

.login-info li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .login-container {
    padding: 0.5rem;
  }
  
  .login-form {
    padding: 2rem 1.5rem;
  }
  
  .login-header h1 {
    font-size: 1.75rem;
  }
  
  .form-group input,
  .login-button {
    padding: 12px 14px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}
.conversations-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.conversations-header {
  padding: 1rem;
  border-bottom: 1px solid #e1e5e9;
  background: #fafbfc;
}

.conversations-header h3 {
  margin: 0;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}

.conversations-container {
  flex: 1;
  overflow-y: auto;
}

.no-conversations {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: #666;
  height: 100%;
}

.no-conversations-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-conversations p {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: #333;
}

.no-conversations span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.conversation-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.conversation-item:hover {
  background: #f8f9fa;
}

.conversation-item.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-right: 3px solid #667eea;
}

.conversation-avatar {
  position: relative;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  overflow: hidden;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
}

.status-indicator.online {
  background: #10b981;
}

.status-indicator.offline {
  background: #9ca3af;
}

.conversation-content {
  flex: 1;
  min-width: 0;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.conversation-name {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-time {
  font-size: 0.75rem;
  color: #9ca3af;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.conversation-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.last-message {
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.last-message.typing {
  color: #667eea;
  font-style: italic;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.unread-badge {
  background: #ff4757;
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  margin-left: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.conversation-phone {
  font-size: 0.75rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Scrollbar Styling */
.conversations-container::-webkit-scrollbar {
  width: 6px;
}

.conversations-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.conversations-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.conversations-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .conversation-item {
    padding: 0.75rem;
  }
  
  .avatar-circle {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
  
  .conversation-name {
    font-size: 0.9rem;
  }
  
  .last-message {
    font-size: 0.8rem;
  }
  
  .conversation-phone {
    font-size: 0.7rem;
  }
}
.message-status-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 2px;
}

.message-status {
  font-size: 12px;
  font-weight: bold;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.message-status.sending {
  color: #999;
  animation: pulse 1.5s infinite;
}

.message-status.sent {
  color: #999;
}

.message-status.delivered {
  color: #999;
}

.message-status.read {
  color: #4285f4; /* Blue color for read messages */
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* Hover effects */
.message-status:hover {
  opacity: 1;
  transform: scale(1.1);
}
.message-context-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  backdrop-filter: blur(2px);
}

.message-context-menu {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  overflow: hidden;
  transition: all 0.2s ease;
  border: 1px solid #e1e5e9;
}

.context-menu-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-size: 14px;
  color: #333;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.context-menu-item:hover {
  background-color: #f5f7fa;
}

.context-menu-item:active {
  background-color: #e8ecf0;
}

.context-menu-item.delete-for-everyone {
  color: #e74c3c;
}

.context-menu-item.delete-for-everyone:hover {
  background-color: #fdf2f2;
}

.context-menu-icon {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.context-menu-divider {
  height: 1px;
  background-color: #e1e5e9;
  margin: 4px 0;
}

/* Animation for menu appearance */
@keyframes contextMenuAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.message-context-menu {
  animation: contextMenuAppear 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .message-context-menu {
    min-width: 180px;
  }
  
  .context-menu-item {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .context-menu-icon {
    font-size: 18px;
  }
}
.message-info-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
  padding: 16px;
}

.message-info-modal {
  background: var(--bg-primary, white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  animation: modalAppear 0.3s ease;
  display: flex;
  flex-direction: column;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.message-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light, #e1e5e9);
  background: var(--bg-secondary, #f8f9fa);
  flex-shrink: 0;
}

.message-info-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary, #333);
}

.close-button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-secondary, #666);
  padding: 4px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.close-button:hover {
  background-color: var(--bg-tertiary, #e9ecef);
}

.message-info-content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.message-preview {
  background: var(--bg-secondary, #f8f9fa);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border-left: 4px solid var(--accent-primary, #667eea);
}

.message-text {
  font-size: 14px;
  color: var(--text-primary, #333);
  line-height: 1.4;
  word-wrap: break-word;
}

.message-status-details {
  margin-bottom: 24px;
}

.status-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light, #f1f3f4);
}

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

.status-icon {
  width: 40px;
  display: flex;
  justify-content: center;
  font-size: 16px;
  margin-right: 16px;
}

.status-info {
  flex: 1;
}

.status-label {
  font-weight: 600;
  color: var(--text-primary, #333);
  font-size: 14px;
  margin-bottom: 2px;
}

.status-time {
  font-size: 12px;
  color: var(--text-secondary, #666);
}

.message-details {
  background: var(--bg-secondary, #f8f9fa);
  border-radius: 8px;
  padding: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light, #e9ecef);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: var(--text-secondary, #666);
  font-size: 13px;
}

.detail-value {
  font-size: 13px;
  color: var(--text-primary, #333);
  font-family: monospace;
  background: var(--bg-primary, white);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-light, #e1e5e9);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .message-info-modal {
    width: 95%;
    margin: 20px;
  }
  
  .message-info-header {
    padding: 16px 20px;
  }
  
  .message-info-content {
    padding: 20px;
  }
  
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .detail-value {
    width: 100%;
    word-break: break-all;
  }
}
.forward-message-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.forward-message-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: modalAppear 0.3s ease;
}

.forward-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e1e5e9;
  background: #f8f9fa;
}

.forward-message-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.forward-message-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.message-preview {
  padding: 20px 24px;
  border-bottom: 1px solid #e1e5e9;
  background: #f8f9fa;
}

.preview-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.preview-text {
  background: white;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  font-size: 14px;
  color: #333;
  max-height: 60px;
  overflow-y: auto;
}

.contacts-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-section {
  padding: 16px 24px;
  border-bottom: 1px solid #e1e5e9;
}

.contact-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-search-input:focus {
  border-color: #667eea;
}

.selected-contacts {
  padding: 16px 24px;
  border-bottom: 1px solid #e1e5e9;
  background: #f8f9fa;
}

.selected-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-contact {
  display: flex;
  align-items: center;
  background: #667eea;
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  gap: 8px;
}

.remove-contact {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-contact:hover {
  background: rgba(255, 255, 255, 0.2);
}

.contacts-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.contact-item:hover {
  background-color: #f5f7fa;
}

.contact-item.selected {
  background-color: #e3f2fd;
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  margin-right: 12px;
}

.contact-info {
  flex: 1;
}

.contact-name {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.contact-phone {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.contact-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #667eea;
  font-weight: bold;
}

.contact-item.selected .contact-checkbox {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.loading, .no-contacts {
  text-align: center;
  padding: 40px 24px;
  color: #666;
  font-size: 14px;
}

.forward-message-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid #e1e5e9;
  background: #f8f9fa;
}

.cancel-button, .forward-button {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.cancel-button {
  background: #e9ecef;
  color: #666;
}

.cancel-button:hover {
  background: #dee2e6;
}

.forward-button {
  background: #667eea;
  color: white;
}

.forward-button:hover:not(:disabled) {
  background: #5a6fd8;
}

.forward-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .forward-message-modal {
    width: 95%;
    height: 90vh;
  }
  
  .forward-message-header,
  .message-preview,
  .search-section,
  .selected-contacts,
  .forward-message-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .contact-item {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.other-user-profile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.back-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.back-btn:hover {
  background: #e5e7eb;
}

.profile-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  background: white;
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
  background: #f8faff;
}

.profile-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* Info Tab Styles */
.user-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.user-photo-section {
  margin-bottom: 1rem;
}

.user-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #667eea;
}

.user-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 600;
  border: 4px solid #667eea;
  margin: 0 auto;
}

.user-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.5rem 0;
}

.user-status {
  margin-bottom: 1rem;
}

.online-status {
  color: #10b981;
  font-weight: 500;
}

.offline-status {
  color: #6b7280;
  font-weight: 500;
}

.user-bio {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  text-align: left;
  max-width: 300px;
  margin: 0 auto;
}

.bio-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bio-text {
  color: #111827;
  line-height: 1.5;
}

.contact-info {
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.info-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.info-content {
  flex: 1;
}

.info-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.25rem;
}

.info-value {
  display: block;
  color: #111827;
  font-weight: 500;
}

.quick-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}

.action-btn:hover {
  border-color: #667eea;
  background: #f8faff;
}

.btn-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.btn-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

/* Media Tab Styles */
.media-section, .files-section {
  margin-bottom: 2rem;
}

.media-section h3, .files-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.media-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.media-item:hover {
  transform: scale(1.05);
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.play-icon {
  font-size: 2rem;
}

.files-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.file-item:hover {
  background: #f3f4f6;
}

.file-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.file-info {
  flex: 1;
}

.file-name {
  display: block;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.25rem;
}

.file-size {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
}

.download-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.download-btn:hover {
  background: #e5e7eb;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.empty-icon {
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Settings Tab Styles */
.settings-section {
  margin-bottom: 2rem;
}

.settings-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-item:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.settings-item.danger {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.settings-item.danger:hover {
  background: #fee2e2;
}

.item-info {
  display: flex;
  align-items: center;
}

.item-icon {
  font-size: 1.2rem;
  margin-right: 0.75rem;
}

.item-title {
  font-weight: 500;
}

.arrow {
  color: #9ca3af;
  font-size: 1.2rem;
}

/* Confirm Dialog */
.confirm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.confirm-dialog {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.confirm-dialog h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.confirm-dialog p {
  margin: 0 0 2rem 0;
  color: #6b7280;
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cancel-btn, .confirm-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cancel-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
}

.cancel-btn:hover {
  background: #e5e7eb;
}

.confirm-btn {
  background: #667eea;
  border: 1px solid #667eea;
  color: white;
}

.confirm-btn:hover {
  background: #5a67d8;
}

.confirm-btn.danger {
  background: #dc2626;
  border-color: #dc2626;
}

.confirm-btn.danger:hover {
  background: #b91c1c;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-content {
    padding: 1rem;
  }
  
  .user-photo, .user-photo-placeholder {
    width: 100px;
    height: 100px;
  }
  
  .user-photo-placeholder {
    font-size: 2.5rem;
  }
  
  .quick-actions {
    flex-wrap: wrap;
  }
  
  .action-btn {
    min-width: 70px;
    padding: 0.75rem;
  }
  
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .confirm-dialog {
    margin: 1rem;
    width: calc(100% - 2rem);
    padding: 1.5rem;
  }
  
  .dialog-actions {
    flex-direction: column;
  }
}
.enhanced-message-input {
  position: relative;
  background: white;
  border-top: 1px solid #e0e0e0;
}

.reply-input-preview {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.08) 0%, rgba(0, 123, 255, 0.04) 100%);
  border-left: 4px solid #007bff;
  padding: 0.75rem 1rem;
  margin: 0.5rem 1rem 0;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 123, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
  transition: all 0.2s ease;
  animation: replySlideIn 0.3s ease-out;
}

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

.reply-input-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.reply-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #007bff;
  font-weight: 600;
}

.clear-reply-button {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #666;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.clear-reply-button:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.3);
  color: #dc3545;
  transform: scale(1.1);
}

.reply-input-text {
  font-size: 0.9rem;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-input-container {
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  gap: 0.75rem;
}

.attach-button {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.attach-button:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}

.message-form {
  display: flex;
  align-items: flex-end;
  flex: 1;
  gap: 0.75rem;
}

.message-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  transition: border-color 0.2s ease;
}

.message-input:focus {
  border-color: #007bff;
}

.send-button, .voice-button {
  background: #007bff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.send-button:hover, .voice-button:hover {
  background: #0056b3;
  transform: scale(1.05);
}

.send-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.voice-button {
  background: #28a745;
}

.voice-button:hover {
  background: #1e7e34;
}

/* Voice Recording */
.voice-recording-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f8f9fa;
  border-top: 2px solid #dc3545;
}

.recording-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.recording-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #dc3545;
  font-weight: 600;
}

.recording-dot {
  width: 12px;
  height: 12px;
  background: #dc3545;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.recording-controls {
  display: flex;
  gap: 0.75rem;
}

.cancel-recording-btn, .stop-recording-btn {
  background: #dc3545;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.cancel-recording-btn:hover, .stop-recording-btn:hover {
  background: #c82333;
  transform: scale(1.05);
}

.stop-recording-btn {
  background: #28a745;
}

.stop-recording-btn:hover {
  background: #1e7e34;
}

/* Attachment Menu */
.attachment-menu {
  position: absolute;
  bottom: 100%;
  left: 1rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  z-index: 1000;
  min-width: 200px;
}

.attachment-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.attachment-option:hover {
  background: #f8f9fa;
}

.attachment-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: #f0f0f0;
}

.attachment-option:nth-child(1) .attachment-icon {
  background: #e3f2fd;
}

.attachment-option:nth-child(2) .attachment-icon {
  background: #f3e5f5;
}

.attachment-option:nth-child(3) .attachment-icon {
  background: #e8f5e8;
}

.attachment-option span {
  font-weight: 500;
  color: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .message-input-container {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .attach-button, .send-button, .voice-button {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  .message-input {
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
  }
  
  .attachment-menu {
    left: 0.75rem;
    right: 0.75rem;
    min-width: auto;
  }
  
  .recording-controls {
    gap: 0.5rem;
  }
  
  .cancel-recording-btn, .stop-recording-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}

/* Upload Progress */
.upload-progress-container {
  background: #f8f9fa;
  border-left: 4px solid #28a745;
  padding: 0.75rem 1rem;
  margin: 0.5rem 1rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upload-progress-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.upload-file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.upload-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 50%;
  border: 2px solid rgba(40, 167, 69, 0.2);
}

.upload-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}

.upload-filename {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.upload-filesize {
  font-size: 0.75rem;
  color: #666;
}

.upload-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 0.5rem;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.upload-percentage {
  font-size: 0.85rem;
  color: #28a745;
  font-weight: 700;
  min-width: 3rem;
  text-align: right;
}
.enhanced-message {
  position: relative;
  margin-bottom: 0.75rem !important;
  max-width: 75% !important;
  word-wrap: break-word;
  animation: messageSlideIn 0.3s ease-out;
  z-index: 1;
}

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

.enhanced-message.error-message {
  max-width: 90%;
}

.enhanced-message.error-message .message-content {
  background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
  border: 1px solid #f48fb1;
  color: #c62828;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.15);
}

.enhanced-message.own-message {
  margin-left: auto !important;
  margin-right: 0.5rem !important;
  align-self: flex-end !important;
}

.enhanced-message.other-message {
  margin-left: 0.5rem !important;
  margin-right: auto !important;
  align-self: flex-start !important;
}

.reply-preview {
  display: flex;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 123, 255, 0.08);
  border-radius: 12px 12px 0 0;
  border-left: 4px solid #007bff;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.reply-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reply-preview:hover {
  background: rgba(0, 123, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.reply-preview:hover::before {
  opacity: 1;
}

.reply-line {
  width: 4px;
  background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
  margin-right: 0.75rem;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

.reply-content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
}

.reply-sender {
  font-size: 0.8rem;
  font-weight: 600;
  color: #007bff;
  letter-spacing: 0.01em;
}

.reply-text {
  font-size: 0.85rem;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Enhanced message content with higher specificity */
.enhanced-message .message-content {
  background: white;
  border-radius: 20px;
  padding: 0.875rem 1.125rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

.enhanced-message .message-content:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.enhanced-message.own-message .message-content {
  background: #1976d2 !important;
  color: white !important;
  box-shadow: 0 1px 3px rgba(25, 118, 210, 0.3);
  border-radius: 18px 18px 4px 18px !important;
}

.enhanced-message.own-message .message-content:hover {
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.4);
}

.enhanced-message.other-message .message-content {
  background: #ffffff !important;
  color: #2c3e50 !important;
  border: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 18px 18px 18px 4px !important;
}

/* Text Messages */
.message-text {
  line-height: 1.5;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.deleted-text {
  font-style: italic;
  opacity: 0.6;
  font-size: 0.9rem;
}

.forwarded-message {
  border-left: 3px solid rgba(255, 255, 255, 0.4);
  padding-left: 0.75rem;
  margin-left: 0.25rem;
  position: relative;
}

.forwarded-message::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 100%);
  border-radius: 2px;
}

.forwarded-label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Media Messages */
.message-media {
  max-width: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.message-image {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.message-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.message-video {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.media-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
  opacity: 0.95;
}

/* Audio Messages */
.message-audio {
  min-width: 200px;
}

.audio-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.audio-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.own-message .audio-icon {
  background: rgba(255, 255, 255, 0.2);
}

.other-message .audio-icon {
  background: rgba(0, 0, 0, 0.1);
}

.audio-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.audio-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.audio-duration {
  font-size: 0.8rem;
  opacity: 0.8;
}

.audio-player {
  width: 100%;
  height: 30px;
}

/* Document Messages */
.message-document {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 250px;
}

.document-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.document-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.own-message .document-icon {
  background: rgba(255, 255, 255, 0.2);
}

.other-message .document-icon {
  background: rgba(0, 0, 0, 0.1);
}

.document-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.document-name {
  font-size: 0.9rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.document-size {
  font-size: 0.8rem;
  opacity: 0.8;
}

.download-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
}

.download-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.other-message .download-button {
  background: rgba(0, 0, 0, 0.1);
}

.other-message .download-button:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Location Messages */
.message-location {
  min-width: 250px;
}

.location-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.location-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.own-message .location-icon {
  background: rgba(255, 255, 255, 0.2);
}

.other-message .location-icon {
  background: rgba(0, 0, 0, 0.1);
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.location-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.location-coords {
  font-size: 0.8rem;
  opacity: 0.8;
  font-family: monospace;
}

.open-maps-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  width: 100%;
}

.open-maps-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.other-message .open-maps-button {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
}

.other-message .open-maps-button:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Message Reactions */
.message-reactions {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.reaction-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.reaction-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Message Footer with higher specificity */
.enhanced-message .message-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.5rem !important;
  margin-top: 0.75rem !important;
  font-size: 0.75rem !important;
  opacity: 0.85 !important;
  font-weight: 500 !important;
}

.enhanced-message.own-message .message-footer {
  color: rgba(255, 255, 255, 0.8) !important;
}

.enhanced-message.other-message .message-footer {
  color: rgba(0, 0, 0, 0.6) !important;
}

.enhanced-message .message-time {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  opacity: 1 !important;
}

.reaction-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  padding: 0.25rem;
  border-radius: 50%;
}

.reaction-button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

/* Reaction Picker */
.reaction-picker {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 0.25rem;
  z-index: 1000;
}

.reaction-emoji {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.reaction-emoji:hover {
  background: #f0f0f0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .enhanced-message {
    max-width: 85%;
    margin-bottom: 0.375rem;
  }

  .message-content {
    padding: 0.75rem 1rem;
    border-radius: 18px;
  }

  .message-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .message-media {
    max-width: 280px;
  }

  .message-image, .message-video {
    max-width: 280px;
    border-radius: 14px;
  }

  .message-document {
    min-width: 200px;
  }

  .document-name {
    max-width: 120px;
  }

  .message-location {
    min-width: 200px;
  }

  .message-footer {
    margin-top: 0.5rem;
    font-size: 0.7rem;
  }

  .reply-preview {
    padding: 0.625rem;
    margin-bottom: 0.5rem;
  }
}

/* Force override any conflicting styles */
.enhanced-message {
  max-width: 75% !important;
  margin-bottom: 0.75rem !important;
  position: relative !important;
  word-wrap: break-word !important;
}

.enhanced-message.own-message {
  margin-left: auto !important;
  margin-right: 1rem !important;
}

.enhanced-message.other-message {
  margin-left: 1rem !important;
  margin-right: auto !important;
}

/* Ensure message content styling is applied */
.enhanced-message .message-content {
  border-radius: 20px !important;
  padding: 0.875rem 1.125rem !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.2s ease !important;
  position: relative !important;
}

.enhanced-message.own-message .message-content {
  background: #1976d2 !important;
  color: white !important;
  border-radius: 18px 18px 4px 18px !important;
}

.enhanced-message.other-message .message-content {
  background: #ffffff !important;
  color: #2c3e50 !important;
  border: 1px solid #e9ecef !important;
  border-radius: 18px 18px 18px 4px !important;
}

/* Text styling */
.enhanced-message .message-text {
  line-height: 1.5 !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
}

/* Footer styling */
.enhanced-message .message-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.5rem !important;
  margin-top: 0.75rem !important;
  font-size: 0.75rem !important;
}

.enhanced-message .message-time {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
}

/* Reaction picker animation */
@keyframes reactionPickerSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Reaction item hover effects */
.reaction-item:hover {
  transform: scale(1.05) !important;
}

.reaction-emoji:hover {
  transform: scale(1.2) !important;
}
.report-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.report-modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.report-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #f5f5f5;
  color: #666;
}

.report-user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 30px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.report-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.report-user-details h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

.report-user-details p {
  margin: 5px 0 0 0;
  color: #666;
  font-size: 0.9rem;
}

.report-form {
  padding: 30px;
}

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

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.required {
  color: #e74c3c;
  margin-left: 3px;
}

.report-types {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-type-option {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fafafa;
}

.report-type-option:hover {
  border-color: #3498db;
  background: #f0f8ff;
}

.report-type-option.selected {
  border-color: #3498db;
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.option-label {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.radio-button {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.report-type-option.selected .radio-button {
  border-color: #3498db;
}

.radio-selected {
  width: 10px;
  height: 10px;
  background: #3498db;
  border-radius: 50%;
  animation: radioSelect 0.3s ease-out;
}

@keyframes radioSelect {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.option-description {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: border-color 0.3s ease;
}

textarea:focus {
  border-color: #3498db;
}

.char-count {
  text-align: right;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #999;
}

.report-disclaimer {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 25px;
}

.report-disclaimer p {
  margin: 0;
  color: #856404;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.cancel-btn,
.submit-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cancel-btn {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e0e0e0;
}

.cancel-btn:hover {
  background: #e9ecef;
  border-color: #ced4da;
}

.submit-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  min-width: 140px;
  justify-content: center;
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success State */
.report-success {
  text-align: center;
  padding: 50px 30px;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.report-success h2 {
  margin: 0 0 15px 0;
  color: #27ae60;
  font-size: 1.8rem;
  font-weight: 700;
}

.report-success p {
  margin: 0 0 30px 0;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.success-animation {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.checkmark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #27ae60;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #27ae60;
  animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
  position: relative;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #27ae60;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  border: 3px solid #27ae60;
}

.checkmark-stem {
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 12px;
  background: #27ae60;
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: bottom;
  opacity: 0;
}

.checkmark-kick {
  animation: stroke 0.2s cubic-bezier(0.65, 0, 0.45, 1) 0.9s forwards;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 6px;
  background: #27ae60;
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: bottom;
  opacity: 0;
  margin-left: -6px;
  margin-top: 3px;
}

@keyframes stroke {
  100% {
    opacity: 1;
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #27ae60;
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .report-modal {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
  
  .report-header,
  .report-user-info,
  .report-form {
    padding: 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .cancel-btn,
  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}
.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
  position: relative;
  min-width: 0;
  width: 100%;
}

/* Modern Header Styles */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.app-name {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.user-avatar:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Contact Header */
.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.contact-info {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex: 1;
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 0.75rem;
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

.contact-details {
  flex: 1;
}

.contact-name {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
}

.contact-status {
  font-size: 0.85rem;
  color: #6c757d;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #667eea;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.action-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  border-color: #667eea;
}

.action-btn:active {
  transform: scale(0.95);
}

/* Animations for typing indicator */
@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

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

/* Messages Area */
.messages-area {
  flex: 1;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
  position: relative;
}

.messages-container {
  height: 100%;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Date Separator */
.date-separator {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  text-align: center;
}

.date-separator span {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #667eea;
  font-weight: 600;
  margin: 0 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-left: 1rem;
  margin-right: auto;
  max-width: 75%;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  animation: pulse 1.5s infinite;
}

.typing-dots {
  display: flex;
  gap: 0.2rem;
  margin-right: 0.5rem;
}

.typing-text {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
}

/* No Messages State */
.no-messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6c757d;
  text-align: center;
}

.no-messages-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-messages h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.no-messages p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.8;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  overflow: hidden;
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-details h3 {
  margin: 0 0 0.25rem 0;
  color: #333;
  font-size: 1.1rem;
}

.contact-status {
  font-size: 0.85rem;
}

.online-status {
  color: #10b981;
  font-weight: 500;
}

.offline-status {
  color: #9ca3af;
}

.typing-status {
  color: #667eea;
  font-weight: 500;
  font-style: italic;
  animation: pulse 1.5s infinite;
}

.contact-phone {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.messages-area {
  flex: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
}

.messages-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.messages-container {
  height: 100%;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  position: relative;
  z-index: 1;
}

.no-messages {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #666;
}

.no-messages-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-messages p {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: #333;
}

.no-messages span {
  font-size: 0.9rem;
  opacity: 0.8;
}

.message {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease-in;
  position: relative;
}

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

.own-message {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.other-message {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.message-content {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.message-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.7;
}

.other-message .message-footer {
  justify-content: flex-start;
}

.other-message .message-time {
  text-align: left;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  max-width: 200px;
  align-self: flex-start;
  animation: fadeIn 0.3s ease-in;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: #667eea;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.typing-text {
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

.message-input-area {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-top: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.message-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.message-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  resize: none;
  font-family: inherit;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.message-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
  background: #ffffff;
}

.message-input::placeholder {
  color: #9ca3af;
}

.send-button {
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.send-button:hover:not(:disabled) {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.send-button:disabled {
  background: linear-gradient(135deg, #d1d5db 0%, #e5e7eb 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Scrollbar Styling */
.messages-container::-webkit-scrollbar {
  width: 6px;
}

.messages-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.messages-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chat-window-header {
    padding: 0.75rem 1rem;
  }
  
  .contact-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .contact-details h3 {
    font-size: 1rem;
  }
  
  .messages-container {
    padding: 0.75rem;
  }
  
  .message {
    max-width: 85%;
    padding: 0.6rem 0.8rem;
  }
  
  .message-input-area {
    padding: 0.75rem 1rem;
  }
  
  .message-input {
    padding: 10px 14px;
    font-size: 16px;
  }
  
  .send-button {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }
}

/* Reply functionality styles */
.reply-preview {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.reply-line {
  width: 3px;
  background: #667eea;
  border-radius: 2px;
  min-height: 40px;
  margin-top: 2px;
}

.reply-content {
  flex: 1;
  background: rgba(102, 126, 234, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.reply-sender {
  font-size: 12px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 2px;
}

.reply-text {
  font-size: 13px;
  color: #666;
  line-height: 1.3;
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Reply input preview */
.reply-input-preview {
  background: #f8f9fa;
  border-top: 1px solid #e1e5e9;
  padding: 12px 16px;
}

.reply-input-content {
  background: white;
  border-radius: 8px;
  padding: 12px;
  border-left: 3px solid #667eea;
}

.reply-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.reply-input-header span {
  font-size: 12px;
  font-weight: 600;
  color: #667eea;
}

.clear-reply-button {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 14px;
  padding: 2px;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-reply-button:hover {
  background: #e9ecef;
}

.reply-input-text {
  font-size: 13px;
  color: #666;
  line-height: 1.3;
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Message interaction styles */
.message:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}

.message:active {
  transform: scale(0.98);
}

/* Deleted message styles */
.deleted-message {
  opacity: 0.6;
  font-style: italic;
}

.deleted-text {
  color: #999;
  font-size: 13px;
}

/* Forwarded message styles */
.forwarded-message {
  position: relative;
}

.forwarded-label {
  font-size: 11px;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.group-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

/* Modern Header Styles */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.header-left {
  display: flex;
  align-items: center;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.app-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

.header-right {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Group Header */
.group-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
}

.group-info-section {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex: 1;
}

.group-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 0.75rem;
}

.group-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

.group-details {
  flex: 1;
}

.group-name {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
}

.group-status {
  font-size: 0.85rem;
  color: #6c757d;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.group-info-section {
  display: flex;
  align-items: center;
  flex: 1;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.group-info-section:hover {
  background: rgba(255, 255, 255, 0.1);
}

.group-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 1rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.group-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
}

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

.group-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.group-status {
  font-size: 0.85rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.action-button {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #6c757d;
  transition: all 0.2s ease;
  padding: 0;
  outline: none;
}

.action-button:hover {
  background: #f8f9fa;
  color: #495057;
  transform: scale(1.05);
}

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

/* Messages Container */
.group-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
}

.group-messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 100%;
}

/* Date Separator */
.date-separator {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
  position: relative;
}

.date-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
}

.date-label {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.typing-dots {
  display: flex;
  gap: 0.2rem;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: #007bff;
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

.typing-text {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* Custom Scrollbar */
.group-messages-container::-webkit-scrollbar {
  width: 6px;
}

.group-messages-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

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

.group-messages-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .group-chat-header {
    padding: 0.5rem;
  }
  
  .group-avatar {
    width: 40px;
    height: 40px;
  }
  
  .group-name {
    font-size: 1rem;
  }
  
  .group-status {
    font-size: 0.8rem;
  }
  
  .action-button {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .group-messages-container {
    padding: 0.5rem;
  }
}

/* Group message specific styles */
.group-message {
  position: relative;
}

.group-message .message-sender {
  font-size: 0.8rem;
  font-weight: 600;
  color: #007bff;
  margin-bottom: 0.2rem;
  display: block;
}

.group-message.own-message .message-sender {
  display: none;
}

/* System messages */
.system-message {
  text-align: center;
  margin: 0.5rem 0;
}

.system-message .message-content {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #666 !important;
  font-style: italic;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  display: inline-block;
  max-width: 80%;
}
.group-info-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.group-info-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.group-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.group-info-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.close-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.group-details-section {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.group-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.group-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-avatar-placeholder-large {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.group-basic-info .group-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #2c3e50;
}

.group-description {
  color: #7f8c8d;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.group-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #95a5a6;
}

.group-type {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-weight: 500;
}

.group-info-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.tab.active {
  color: #007bff;
  border-bottom-color: #007bff;
  background: white;
}

.tab:hover:not(.active) {
  background: rgba(0, 123, 255, 0.05);
}

.tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* Info Tab */
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #f1f3f4;
}

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

.info-label {
  font-weight: 500;
  color: #6c757d;
}

.info-value {
  color: #2c3e50;
  font-weight: 500;
}

.invite-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: monospace;
  background: #f8f9fa;
  padding: 0.5rem;
  border-radius: 8px;
}

.copy-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.copy-button:hover {
  background: rgba(0, 0, 0, 0.1);
}

.group-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.action-btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-btn {
  background: #007bff;
  color: white;
}

.edit-btn:hover {
  background: #0056b3;
}

.mute-btn {
  background: #6c757d;
  color: white;
}

.mute-btn:hover {
  background: #545b62;
}

.leave-btn {
  background: #dc3545;
  color: white;
}

.leave-btn:hover {
  background: #c82333;
}

/* Members Tab */
.add-member-btn {
  width: 100%;
  padding: 0.75rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: background 0.2s ease;
}

.add-member-btn:hover {
  background: #0056b3;
}

/* Add Member Modal */
.add-member-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.add-member-modal {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.add-member-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}

.add-member-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.add-member-search {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #eee;
}

.search-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.search-input:focus {
  border-color: #007bff;
}

.available-contacts {
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem;
}

.available-contacts .contact-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.available-contacts .contact-item:hover {
  background: #f8f9fa;
}

.available-contacts .contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
  overflow: hidden;
}

.available-contacts .contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.available-contacts .avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

.available-contacts .contact-info {
  flex: 1;
}

.available-contacts .contact-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.25rem;
}

.available-contacts .contact-phone {
  font-size: 0.9rem;
  color: #666;
}

.no-contacts {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.member-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: background 0.2s ease;
  position: relative;
}

.member-item:hover {
  background: #e9ecef;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
  overflow: hidden;
  position: relative;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #28a745;
  border: 2px solid white;
  border-radius: 50%;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-status {
  font-size: 0.8rem;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  margin-left: 0.5rem;
}

.member-actions {
  position: relative;
}

.member-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  color: #6c757d;
  transition: background 0.2s ease;
}

.member-action-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.member-actions-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 10;
  min-width: 120px;
  overflow: hidden;
}

.member-actions-menu button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.9rem;
}

.member-actions-menu button:hover {
  background: #f8f9fa;
}

.member-actions-menu .remove-btn {
  color: #dc3545;
}

.member-actions-menu .remove-btn:hover {
  background: #f8d7da;
}

/* Media Tab */
.media-placeholder {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  .group-info-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .group-info-header {
    padding: 0.75rem 1rem;
  }
  
  .group-details-section {
    padding: 1.5rem 1rem 0.75rem;
  }
  
  .tab-content {
    padding: 1rem;
  }
}
.group-creation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.group-creation-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.group-creation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.group-creation-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.back-button, .next-button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.back-button:hover, .next-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.next-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Member Selection */
.member-selection {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.search-section {
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: #007bff;
}

.selected-members {
  margin-bottom: 1.5rem;
}

.selected-members h4 {
  margin: 0 0 0.75rem;
  color: #2c3e50;
  font-size: 0.9rem;
  font-weight: 600;
}

.selected-members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.selected-member {
  display: flex;
  align-items: center;
  background: #e3f2fd;
  border-radius: 20px;
  padding: 0.3rem 0.5rem 0.3rem 0.3rem;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.member-avatar-small {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  overflow: hidden;
}

.member-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder-small {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  color: white;
}

.member-name-small {
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1976d2;
  font-weight: 500;
}

.remove-member-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.remove-member-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.contacts-list h4 {
  margin: 0 0 0.75rem;
  color: #2c3e50;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.contact-item:hover {
  background: #f8f9fa;
}

.contact-item.selected {
  background: #e3f2fd;
  border: 2px solid #2196f3;
}

.contact-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.9rem;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-name {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-phone {
  font-size: 0.8rem;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selection-indicator {
  color: #2196f3;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Group Details Form */
.group-details-form {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.avatar-section {
  text-align: center;
  margin-bottom: 2rem;
}

.group-avatar-upload {
  position: relative;
  display: inline-block;
}

.group-avatar-upload img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e9ecef;
}

.avatar-placeholder-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #6c757d;
  border: 3px solid #e9ecef;
}

.avatar-input {
  display: none;
}

.avatar-label {
  display: block;
  margin-top: 0.5rem;
  color: #007bff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.avatar-label:hover {
  color: #0056b3;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}

.form-input:focus, .form-textarea:focus {
  border-color: #007bff;
}

.char-count {
  text-align: right;
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.group-type-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.type-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-option:hover {
  border-color: #007bff;
  background: #f8f9fa;
}

.type-option input[type="radio"] {
  margin-right: 0.75rem;
  transform: scale(1.2);
}

.type-info {
  flex: 1;
}

.type-name {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.2rem;
}

.type-description {
  font-size: 0.85rem;
  color: #6c757d;
}

.create-group-btn {
  width: 100%;
  padding: 1rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 1rem;
}

.create-group-btn:hover:not(:disabled) {
  background: #0056b3;
}

.create-group-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .group-creation-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .group-creation-header {
    padding: 0.75rem 1rem;
  }
  
  .member-selection, .group-details-form {
    padding: 1rem;
  }
}
.user-search {
  padding: 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-header {
  margin-bottom: 1.5rem;
}

.search-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
}

.search-form {
  margin-bottom: 1rem;
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
}

.search-input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.search-button {
  padding: 10px 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
  min-width: 44px;
}

.search-button:hover:not(:disabled) {
  background: #5a67d8;
}

.search-button:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.search-error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.search-result {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.user-found {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.user-phone {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.user-status {
  font-size: 0.8rem;
  font-weight: 500;
}

.user-status.online {
  color: #10b981;
}

.user-status.offline {
  color: #9ca3af;
}

.start-chat-button {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.start-chat-button:hover {
  transform: translateY(-1px);
}

.search-tips {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.8rem;
}

.search-tips p {
  margin: 0 0 0.5rem 0;
  color: #0369a1;
  font-weight: 600;
}

.search-tips ul {
  margin: 0;
  padding-left: 1rem;
  color: #0284c7;
}

.search-tips li {
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .user-search {
    padding: 0.75rem;
  }
  
  .search-input-group {
    gap: 0.25rem;
  }
  
  .search-input,
  .search-button {
    padding: 8px 10px;
    font-size: 14px;
  }
  
  .user-found {
    gap: 0.5rem;
  }
  
  .user-avatar {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .user-name {
    font-size: 0.9rem;
  }
  
  .user-phone {
    font-size: 0.8rem;
  }
}
.contacts-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f8f9fa;
  overflow: hidden;
}

.contacts-header {
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contacts-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.contacts-title h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
}

.close-contacts {
  background: transparent;
  border: none;
  color: #6c757d;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.close-contacts:hover {
  background: #f8f9fa;
  color: #495057;
}

.contacts-search {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  outline: none;
  transition: background-color 0.2s;
}

.search-input:focus {
  background: white;
}

.search-input::placeholder {
  color: #6b7280;
}

.contacts-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.contacts-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  color: #6b7280;
}

.no-contacts-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.no-contacts p {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  color: #374151;
}

.no-contacts span {
  font-size: 0.9rem;
  color: #6b7280;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 0.25rem;
}

.contact-item:hover {
  background: #f9fafb;
}

.contact-avatar {
  position: relative;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  overflow: hidden;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
}

.status-indicator.online {
  background: #10b981;
}

.status-indicator.offline {
  background: #6b7280;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.contact-name {
  font-weight: 600;
  color: #111827;
  font-size: 0.95rem;
}

.contact-status {
  font-size: 0.75rem;
}

.online-text {
  color: #10b981;
  font-weight: 500;
}

.offline-text {
  color: #6b7280;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.contact-phone {
  font-size: 0.8rem;
  color: #6b7280;
}

.last-interaction {
  font-size: 0.75rem;
  color: #9ca3af;
}

.contact-actions {
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.chat-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.chat-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

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

/* Scrollbar styling */
.contacts-list::-webkit-scrollbar {
  width: 6px;
}

.contacts-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.contacts-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.contacts-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.profile-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f8f9fa;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.profile-header-bar {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 1rem;
  border-radius: 8px;
  transition: background 0.2s;
  color: #6c757d;
}

.back-btn:hover {
  background: #f8f9fa;
  color: #495057;
}

.profile-header-bar h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
}

.profile-tabs {
  display: flex;
  border-bottom: 1px solid #e9ecef;
  background: #ffffff;
}

.tab-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  color: #1976d2;
  border-bottom-color: #1976d2;
  background: #f8faff;
}

.profile-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

/* Profile Tab Styles */
.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-photo-section {
  margin-bottom: 1rem;
}

.profile-photo-container {
  position: relative;
  display: inline-block;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #667eea;
}

.profile-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: 600;
  border: 4px solid #667eea;
}

.photo-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #667eea;
  border: 3px solid white;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.photo-edit-btn:hover {
  background: #5a67d8;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.qr-btn, .edit-btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.qr-btn:hover, .edit-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.edit-btn {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.edit-btn:hover {
  background: #5a67d8;
}

.profile-fields {
  max-width: 400px;
  margin: 0 auto;
}

.field-group {
  margin-bottom: 1.5rem;
}

.field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-value {
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
  color: #111827;
}

.field-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.field-input:focus {
  outline: none;
  border-color: #667eea;
}

.bio-input {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.phone-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.change-number-btn {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: underline;
}

.edit-actions {
  text-align: center;
  margin-top: 2rem;
}

.save-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.save-btn:hover {
  background: #059669;
}

/* Settings Tab Styles */
.settings-section {
  margin-bottom: 2rem;
}

.settings-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-item:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.settings-item.danger {
  color: #dc2626;
}

.settings-item.danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.arrow {
  color: #9ca3af;
  font-size: 1.2rem;
}

/* QR Modal */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.qr-modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 300px;
  width: 90%;
  text-align: center;
}

.qr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.qr-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.qr-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
}

.qr-code-container img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.qr-code-container p {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-content {
    padding: 1rem;
  }
  
  .profile-photo, .profile-photo-placeholder {
    width: 100px;
    height: 100px;
  }
  
  .profile-photo-placeholder {
    font-size: 2.5rem;
  }
  
  .photo-edit-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}
.privacy-settings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f8f9fa;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.settings-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 1rem;
  border-radius: 8px;
  transition: background 0.2s;
  color: #6c757d;
}

.back-btn:hover {
  background: #f8f9fa;
  color: #495057;
}

.settings-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
}

.privacy-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.privacy-section {
  margin-bottom: 2rem;
}

.privacy-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

.privacy-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.item-info {
  flex: 1;
}

.item-title {
  display: block;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.25rem;
}

.item-subtitle {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
}

.change-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.change-btn:hover {
  background: #5a67d8;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #667eea;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.privacy-note {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.privacy-note p {
  margin: 0;
  font-size: 0.85rem;
  color: #0369a1;
}

/* Privacy Modal */
.privacy-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.privacy-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.modal-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
}

.privacy-options {
  padding: 1rem;
  overflow-y: auto;
}

.privacy-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.5rem;
}

.privacy-option:hover {
  background: #f9fafb;
}

.privacy-option.selected {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.option-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.option-content {
  flex: 1;
}

.option-label {
  display: block;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.25rem;
}

.option-desc {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
}

.selected-icon {
  color: #667eea;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .privacy-content {
    padding: 1rem;
  }
  
  .privacy-item {
    padding: 0.75rem;
  }
  
  .item-title {
    font-size: 0.9rem;
  }
  
  .item-subtitle {
    font-size: 0.8rem;
  }
  
  .change-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .privacy-modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-header h3 {
    font-size: 1rem;
  }
  
  .privacy-option {
    padding: 0.75rem;
  }
  
  .option-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
  }
}
.notification-settings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f8f9fa;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.settings-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.back-btn:hover {
  background: #e5e7eb;
}

.settings-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.notification-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.notification-section {
  margin-bottom: 2rem;
}

.notification-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.item-info {
  flex: 1;
}

.item-title {
  display: block;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.25rem;
}

.item-subtitle {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
}

.change-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.change-btn:hover {
  background: #5a67d8;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #667eea;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Sound Modal */
.sound-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.sound-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 350px;
  width: 90%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.modal-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
}

.sound-options {
  padding: 1rem;
  overflow-y: auto;
}

.sound-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.5rem;
}

.sound-option:hover {
  background: #f9fafb;
}

.sound-option.selected {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.sound-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.sound-label {
  flex: 1;
  font-weight: 500;
  color: #111827;
}

.selected-icon {
  color: #667eea;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .notification-content {
    padding: 1rem;
  }
  
  .notification-item {
    padding: 0.75rem;
  }
  
  .item-title {
    font-size: 0.9rem;
  }
  
  .item-subtitle {
    font-size: 0.8rem;
  }
  
  .change-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .sound-modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-header h3 {
    font-size: 1rem;
  }
  
  .sound-option {
    padding: 0.75rem;
  }
  
  .sound-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
  }
}
.chat-settings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f8f9fa;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.settings-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.back-btn:hover {
  background: #e5e7eb;
}

.settings-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.chat-settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.settings-section {
  margin-bottom: 2rem;
}

.settings-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.settings-item.danger {
  border-color: #fecaca;
  background: #fef2f2;
}

.item-info {
  flex: 1;
}

.item-title {
  display: block;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.25rem;
}

.item-subtitle {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
}

.change-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.change-btn:hover {
  background: #5a67d8;
}

.danger-btn {
  background: #dc2626;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.danger-btn:hover {
  background: #b91c1c;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #667eea;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* Picker Modals */
.picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.picker-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.modal-header button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
}

/* Wallpaper Picker */
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
  overflow-y: auto;
}

.wallpaper-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.wallpaper-option:hover {
  background: #f9fafb;
}

.wallpaper-option.selected {
  background: #f0f9ff;
  border: 2px solid #667eea;
}

.wallpaper-preview {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 2px solid #e5e7eb;
}

.wallpaper-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

.selected-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: #667eea;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Theme Picker */
.theme-options {
  padding: 1rem;
  overflow-y: auto;
}

.theme-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.5rem;
}

.theme-option:hover {
  background: #f9fafb;
}

.theme-option.selected {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.theme-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.theme-label {
  flex: 1;
  font-weight: 500;
  color: #111827;
}

/* Font Size Picker */
.font-options {
  padding: 1rem;
  overflow-y: auto;
}

.font-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.5rem;
}

.font-option:hover {
  background: #f9fafb;
}

.font-option.selected {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.font-preview {
  font-weight: 500;
  color: #111827;
}

.font-label {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
  .chat-settings-content {
    padding: 1rem;
  }
  
  .settings-item {
    padding: 0.75rem;
  }
  
  .item-title {
    font-size: 0.9rem;
  }
  
  .item-subtitle {
    font-size: 0.8rem;
  }
  
  .change-btn, .danger-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .picker-modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }
  
  .wallpaper-grid {
    grid-template-columns: 1fr;
  }
  
  .wallpaper-preview {
    width: 120px;
    height: 80px;
  }
}
.call-window {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

.call-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 2rem;
}

/* Call Info */
.call-info {
  margin-bottom: 3rem;
}

.caller-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.caller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: white;
}

.caller-name {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: white;
}

.call-type {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

.call-duration {
  font-size: 1rem;
  opacity: 0.8;
  margin: 0;
}

/* Call Actions */
.call-actions {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.accept-btn, .reject-btn, .end-call-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.accept-btn {
  background: #28a745;
  color: white;
  transform: rotate(0deg);
}

.accept-btn:hover {
  background: #218838;
  transform: scale(1.1);
}

.reject-btn, .end-call-btn {
  background: #dc3545;
  color: white;
  transform: rotate(135deg);
}

.reject-btn:hover, .end-call-btn:hover {
  background: #c82333;
  transform: rotate(135deg) scale(1.1);
}

/* Connected Call State */
.call-state.connected {
  height: 100vh;
  max-width: none;
  padding: 0;
  justify-content: space-between;
}

.call-header {
  padding: 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  width: 100%;
}

/* Video call header overlay */
.call-state.connected .call-header {
  position: absolute;
  top: 20px;
  left: 20px;
  width: auto;
  padding: 12px 20px;
  border-radius: 25px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  z-index: 15;
  text-align: left;
}

.call-state.connected .call-header .caller-name {
  color: white;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.call-state.connected .call-header .call-duration {
  color: #ccc;
  margin: 4px 0 0 0;
  font-size: 14px;
}

/* Video Container */
.video-container {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100vh - 200px);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.local-video {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 200px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
  transition: all 0.3s ease;
  background: #333;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.local-video:hover {
  transform: scale(1.05);
  border-color: #1976d2;
}

/* Call Controls */
.call-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  width: 100%;
  position: relative;
  z-index: 15;
}

/* Video call controls overlay */
.call-state.connected .call-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  padding: 15px 25px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
}

.control-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.control-btn.active {
  background: #dc3545;
}

.control-btn.end-call {
  background: #dc3545;
  transform: rotate(135deg);
}

.control-btn.end-call:hover {
  background: #c82333;
  transform: rotate(135deg) scale(1.1);
}

.control-btn.play-btn {
  background: #4caf50;
  color: white;
  animation: pulse-play 2s infinite;
}

.control-btn.play-btn:hover {
  background: #45a049;
  transform: scale(1.1);
}

@keyframes pulse-play {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* Outgoing Call Animation */
.call-state.outgoing .caller-avatar {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
}

/* Incoming Call Animation */
.call-state.incoming .caller-avatar {
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

/* Call Ended State */
.call-state.ended {
  opacity: 0.8;
}

.call-state.ended .call-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .caller-avatar {
    width: 100px;
    height: 100px;
  }
  
  .avatar-placeholder {
    font-size: 2.5rem;
  }
  
  .caller-name {
    font-size: 1.5rem;
  }
  
  .call-type {
    font-size: 1rem;
  }
  
  .accept-btn, .reject-btn, .end-call-btn {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
  
  .control-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .local-video {
    width: 120px;
    height: 160px;
    top: 15px;
    right: 15px;
  }
  
  .call-controls {
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .call-header {
    padding: 1.5rem;
  }
}

/* Connection State Indicators */
.connection-indicator {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  font-size: 0.9rem;
  color: white;
}

.connection-indicator.connecting {
  background: rgba(255, 193, 7, 0.8);
}

.connection-indicator.connected {
  background: rgba(40, 167, 69, 0.8);
}

.connection-indicator.failed {
  background: rgba(220, 53, 69, 0.8);
}

/* Audio-only call styling */
.call-state.connected.audio-only {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.call-state.connected.audio-only .call-info {
  margin: 2rem 0;
}

.call-state.connected.audio-only .caller-avatar {
  width: 200px;
  height: 200px;
  margin: 2rem auto;
}

.call-state.connected.audio-only .avatar-placeholder {
  font-size: 4rem;
}
/* CallManager specific styles */
.call-manager {
  position: relative;
}

/* Call notification styles */
.call-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 1500;
  min-width: 300px;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.call-notification-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.call-notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
  overflow: hidden;
}

.call-notification-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-notification-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.call-notification-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.call-notification-info p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.call-notification-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.call-notification-btn {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.call-notification-btn.accept {
  background: #28a745;
  color: white;
}

.call-notification-btn.accept:hover {
  background: #218838;
}

.call-notification-btn.reject {
  background: #dc3545;
  color: white;
}

.call-notification-btn.reject:hover {
  background: #c82333;
}

/* Call history styles */
.call-history {
  padding: 1rem;
}

.call-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e9ecef;
}

.call-history-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

.call-history-list {
  max-height: 400px;
  overflow-y: auto;
}

.call-history-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.call-history-item:hover {
  background: #f8f9fa;
}

.call-history-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.75rem;
  overflow: hidden;
}

.call-history-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-history-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.call-history-info {
  flex: 1;
  min-width: 0;
}

.call-history-name {
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
}

.call-history-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.call-history-type {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.call-history-status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.call-history-status.missed {
  color: #dc3545;
}

.call-history-status.rejected {
  color: #ffc107;
}

.call-history-status.ended {
  color: #28a745;
}

.call-history-time {
  font-size: 0.8rem;
  color: #6c757d;
  text-align: right;
}

.call-history-duration {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Empty state */
.call-history-empty {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.call-history-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.call-history-empty h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.call-history-empty p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Call status indicators */
.call-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
}

.call-status-indicator.incoming {
  background: #e3f2fd;
  color: #1976d2;
}

.call-status-indicator.outgoing {
  background: #f3e5f5;
  color: #7b1fa2;
}

.call-status-indicator.missed {
  background: #ffebee;
  color: #d32f2f;
}

.call-status-indicator.rejected {
  background: #fff3e0;
  color: #f57c00;
}

/* Responsive design */
@media (max-width: 768px) {
  .call-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
  }
  
  .call-history-item {
    padding: 0.5rem;
  }
  
  .call-history-avatar {
    width: 35px;
    height: 35px;
  }
  
  .call-history-name {
    font-size: 0.9rem;
  }
  
  .call-history-details {
    font-size: 0.8rem;
  }
}
.call-history {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f8f9fa;
  overflow: hidden;
}

.call-history-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 1rem;
  border-radius: 8px;
  transition: background 0.2s;
  color: #6c757d;
}

.back-btn:hover {
  background: #f8f9fa;
  color: #495057;
}

.call-history-header h2 {
  flex: 1;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
}

.clear-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
  color: #6c757d;
}

.clear-btn:hover {
  background: #f8f9fa;
  color: #dc3545;
}

.call-filters {
  display: flex;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  padding: 0 1rem;
}

.filter-btn {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.filter-btn.active {
  color: #1976d2;
  border-bottom-color: #1976d2;
  background: #f8faff;
}

.filter-btn:hover:not(.active) {
  background: #f8f9fa;
  color: #495057;
}

.call-history-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.call-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.call-history-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.call-history-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.call-history-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.call-history-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

.call-history-info {
  flex: 1;
  min-width: 0;
}

.call-history-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-history-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #6c757d;
}

.call-history-type {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.call-status-text {
  font-weight: 500;
}

.call-history-duration {
  font-weight: 500;
  color: #28a745;
}

.call-history-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.call-history-time {
  font-size: 0.8rem;
  color: #6c757d;
  white-space: nowrap;
}

.call-back-btn {
  background: #1976d2;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  color: white;
}

.call-back-btn:hover {
  background: #1565c0;
  transform: scale(1.1);
}

/* Empty state */
.call-history-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
}

.call-history-empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.call-history-empty h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #495057;
}

.call-history-empty p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Status-specific styling */
.call-history-item[data-status="missed"] {
  border-left: 4px solid #dc3545;
}

.call-history-item[data-status="missed"] .call-history-name {
  color: #dc3545;
}

.call-history-item[data-status="rejected"] {
  border-left: 4px solid #ffc107;
}

.call-history-item[data-status="ended"] {
  border-left: 4px solid #28a745;
}

/* Responsive design */
@media (max-width: 768px) {
  .call-history-header {
    padding: 1rem;
  }
  
  .call-history-content {
    padding: 0.5rem;
  }
  
  .call-history-item {
    padding: 0.75rem;
  }
  
  .call-history-avatar {
    width: 45px;
    height: 45px;
    margin-right: 0.75rem;
  }
  
  .avatar-placeholder {
    font-size: 1.1rem;
  }
  
  .call-history-name {
    font-size: 0.95rem;
  }
  
  .call-history-details {
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  
  .call-back-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .call-filters {
    padding: 0 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}

/* Animation for new call entries */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.call-history-item.new-entry {
  animation: slideInFromTop 0.3s ease-out;
}
.admin-panel {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
}

.admin-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-user {
  font-weight: 600;
  color: #666;
}

.admin-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0 30px;
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-btn {
  background: none;
  border: none;
  padding: 15px 25px;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.nav-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.admin-content {
  padding: 30px;
}

/* Dashboard Styles */
.admin-dashboard h2 {
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 12px;
  color: white;
}

.stat-info h3 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
}

.stat-info p {
  margin: 5px 0 0 0;
  color: #666;
  font-weight: 500;
}

.recent-activity {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
  margin-bottom: 20px;
  color: #333;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.activity-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.activity-time {
  color: #666;
  font-size: 0.9rem;
  min-width: 80px;
}

.activity-text {
  color: #333;
  font-weight: 500;
}

/* User Management Styles */
.admin-users h2 {
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.users-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px 15px 0 0;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.search-bar {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 400px;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #667eea;
}

.search-btn {
  padding: 12px 15px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: #5a6fd8;
}

.filter-buttons {
  display: flex;
  gap: 10px;
}

.filter-btn {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid #667eea;
  border-radius: 25px;
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #667eea;
  color: white;
}

.users-table {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 0 0 15px 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 80px 2fr;
  gap: 20px;
  padding: 20px 25px;
  background: rgba(102, 126, 234, 0.1);
  font-weight: 700;
  color: #333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 80px 2fr;
  gap: 20px;
  padding: 20px 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.table-row:hover {
  background: rgba(102, 126, 234, 0.05);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 600;
  color: #333;
}

.user-phone {
  color: #666;
  font-size: 0.9rem;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-right: 5px;
}

.status-badge.online {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.status-badge.offline {
  background: rgba(158, 158, 158, 0.2);
  color: #9e9e9e;
}

.status-badge.banned {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.report-count {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
  padding: 5px 10px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.9rem;
}

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn.ban {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.action-btn.ban:hover {
  background: #f44336;
  color: white;
}

.action-btn.unban {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.action-btn.unban:hover {
  background: #4caf50;
  color: white;
}

.action-btn.warn {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.action-btn.warn:hover {
  background: #ff9800;
  color: white;
}

.action-btn.view {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.action-btn.view:hover {
  background: #667eea;
  color: white;
}

/* Reports Styles */
.admin-reports h2 {
  margin-bottom: 30px;
  font-size: 1.8rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reports-header {
  margin-bottom: 20px;
}

.reports-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.report-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.report-card:hover {
  transform: translateY(-2px);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.type-badge {
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.type-badge.harassment {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.type-badge.spam {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
}

.type-badge.inappropriate {
  background: rgba(156, 39, 176, 0.1);
  color: #9c27b0;
}

.type-badge.fake {
  background: rgba(96, 125, 139, 0.1);
  color: #607d8b;
}

.type-badge.other {
  background: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
}

.report-date {
  color: #666;
  font-size: 0.9rem;
}

.report-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.report-details {
  flex: 1;
}

.report-details p {
  margin: 8px 0;
  color: #333;
}

.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-btn.resolve {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.action-btn.resolve:hover {
  background: #4caf50;
  color: white;
}

.action-btn.dismiss {
  background: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
}

.action-btn.dismiss:hover {
  background: #9e9e9e;
  color: white;
}

.action-btn.ban-user {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.action-btn.ban-user:hover {
  background: #f44336;
  color: white;
}

/* Access Denied */
.access-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  color: white;
}

.access-denied h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.access-denied p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .admin-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .users-header {
    flex-direction: column;
    gap: 15px;
  }
  
  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .report-content {
    flex-direction: column;
  }
}
.chat-app {
  display: flex;
  height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

/* Navigation Sidebar */
.nav-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-header {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.user-profile {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.user-profile:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateX(4px);
}

.user-profile .user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-right: 0.75rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-profile .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

.user-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 1rem;
}

.nav-menu {
  flex: 1;
  padding: 1rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0.25rem 0.5rem;
  border-radius: 8px;
}

.nav-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #667eea;
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-right: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-icon {
  width: 20px;
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.nav-label {
  font-weight: 500;
}

.nav-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

/* Main Content Area */
.main-content {
  width: 400px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.content-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.search-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  color: #667eea;
  font-size: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 24px;
  font-size: 0.95rem;
  outline: none;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #667eea;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.new-chat-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.new-chat-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.search-active {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.search-active .search-input-wrapper {
  flex: 1;
}

.close-search-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  color: #667eea;
  border: 2px solid rgba(102, 126, 234, 0.2);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-search-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-color: #667eea;
  transform: scale(1.05);
}

.content-body {
  flex: 1;
  overflow-y: auto;
}

.conversations-header {
  padding: 1rem 1.5rem 0.5rem;
}

.conversations-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Conversations List */
.conversations-list {
  padding: 0;
}

.conversation-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  margin: 0.25rem 0.5rem;
  border-radius: 12px;
}

.conversation-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  transform: translateX(4px);
}

.conversation-item.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border-right: none;
  box-shadow: inset 0 0 0 2px #667eea;
}

.conversation-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
}

.conversation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-avatar .avatar-placeholder {
  font-size: 1.2rem;
}

.conversation-avatar .group-avatar {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.conversation-content {
  flex: 1;
  min-width: 0;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.conversation-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-time {
  font-size: 0.8rem;
  color: #6c757d;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.conversation-preview {
  font-size: 0.85rem;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.unread-badge {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: #1976d2;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Chat Area */
.chat-area {
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.welcome-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
}

.welcome-content {
  text-align: center;
  color: #6c757d;
}

.welcome-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.welcome-content h2 {
  margin: 0 0 0.5rem;
  color: #2c3e50;
  font-weight: 600;
}

.welcome-content p {
  margin: 0;
  font-size: 1rem;
}

/* Admin Panel Button Styling */
.admin-item {
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
  color: white !important;
  border-radius: 8px;
  margin: 5px 0;
  box-shadow: 0 2px 8px rgba(142, 68, 173, 0.3);
  transition: all 0.3s ease;
}

.admin-item:hover {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(142, 68, 173, 0.4);
}

.admin-item .nav-icon {
  font-size: 1.2rem;
}

.admin-item .nav-label {
  font-weight: 600;
}

/* Report Button Styling */
.report-btn {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.report-btn:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Chat Area Wrapper */
.chat-area {
  flex: 1;
  display: flex;
  min-width: 0;
  overflow: hidden;
}

/* Welcome Screen */
.welcome-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  width: 100%;
}

.welcome-content {
  text-align: center;
  padding: 2rem;
}

.welcome-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.welcome-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-content p {
  font-size: 1.1rem;
  color: #6c757d;
}
.admin-login-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.admin-login-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  overflow: hidden;
  animation: slideIn 0.5s ease-out;
}

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

.admin-login-header {
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.admin-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  font-size: 3rem;
  background: rgba(255, 255, 255, 0.2);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.admin-login-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.admin-login-header p {
  margin: 10px 0 0 0;
  opacity: 0.9;
  font-size: 1rem;
}

.login-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.method-btn {
  padding: 15px 10px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #f8f9fa;
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.method-btn:hover {
  border-color: #8e44ad;
  background: #f0f0f0;
}

.method-btn.active {
  border-color: #8e44ad;
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.admin-login-form {
  padding: 30px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #8e44ad;
}

.otp-info {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  background: #f0f8ff;
  padding: 8px;
  border-radius: 6px;
}

.error-message {
  background: #fee;
  border: 1px solid #fcc;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  color: #c33;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-icon {
  font-size: 1.1rem;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
}

.login-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.back-btn {
  width: 100%;
  padding: 12px;
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.back-btn:hover {
  background: #e9ecef;
  border-color: #ced4da;
}

.login-footer {
  background: #f8f9fa;
  padding: 20px 30px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.login-footer p {
  margin: 0;
  color: #666;
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-login-container {
    padding: 10px;
  }
  
  .admin-login-card {
    max-width: 100%;
  }
  
  .login-methods {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  
  .admin-login-form {
    padding: 20px;
  }
  
  .admin-login-header {
    padding: 30px 20px;
  }
  
  .logo-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .admin-login-header h1 {
    font-size: 1.5rem;
  }
}
/* Admin Dashboard Styles - Black & White Theme */
.admin-dashboard {
  min-height: 100vh;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  flex-direction: row;
  color: #000000;
}

.admin-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #ffffff;
}

.admin-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.admin-loading p {
  font-size: 1.2rem;
  margin: 0;
}

/* Sidebar */
.admin-sidebar {
  width: 280px;
  background: #000000;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 1000;
  overflow-y: auto;
  border-right: 1px solid #333333;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #333333;
}

.sidebar-header .admin-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-header .logo-icon {
  font-size: 1.5rem;
}

.sidebar-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

/* Main Content Wrapper */
.admin-main-wrapper {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ffffff;
}

/* Header */
.admin-header {
  background: #000000;
  color: #ffffff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-header-left {
  display: flex;
  align-items: center;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.admin-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-name {
  font-weight: 600;
  font-size: 1rem;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.nav-section {
  margin-bottom: 0.5rem;
}

.nav-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #cccccc;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0 25px 25px 0;
  margin-right: 1rem;
}

.nav-btn:hover {
  color: #ffffff;
  background: #333333;
  transform: translateX(5px);
}

.nav-btn.active {
  color: #000000;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Sub Navigation */
.sub-nav {
  background: rgba(255, 255, 255, 0.05);
  margin: 0.5rem 0 0 0;
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-left: 1rem;
  margin-right: 1rem;
}

.sub-nav-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  font-size: 0.85rem;
  border-radius: 6px;
  margin: 0.25rem 0;
}

.sub-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(3px);
}

.sub-nav-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
}

/* Main Content */
.admin-main {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow-y: auto;
}

/* Dashboard */
.dashboard-content h2 {
  margin: 0 0 2rem 0;
  color: #000000;
  font-size: 2rem;
  font-weight: 700;
}

/* Alerts Section */
.alerts-section {
  margin-bottom: 30px;
}

.alerts-section h3 {
  color: #000000;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.alert-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #f39c12;
}

.alert-card.warning {
  border-left-color: #f39c12;
  background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.alert-card.error {
  border-left-color: #e74c3c;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.alert-title {
  font-weight: 600;
  color: #000000;
}

.alert-time {
  font-size: 0.8rem;
  color: #666666;
}

.alert-message {
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.4;
}

.alert-action {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.alert-action:hover {
  transform: translateY(-1px);
}

/* Enhanced Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: #000000;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease;
  border: 1px solid #333333;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card.urgent {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
}

.stat-icon {
  font-size: 2.5rem;
  background: #ffffff;
  color: #000000;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card.urgent .stat-icon {
  background: rgba(255, 255, 255, 0.2);
}

.stat-info h3 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
}

.stat-card.urgent .stat-info h3 {
  color: white;
}

.stat-info p {
  margin: 5px 0 0 0;
  color: #cccccc;
  font-weight: 600;
}

.stat-card.urgent .stat-info p {
  color: rgba(255, 255, 255, 0.9);
}

.recent-activity {
  background: #000000;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #333333;
}

.recent-activity h3 {
  margin: 0 0 1.5rem 0;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.activity-icon {
  font-size: 1.5rem;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activity-text {
  flex: 1;
  font-weight: 600;
  color: #ffffff;
}

.activity-time {
  color: #cccccc;
  font-size: 0.9rem;
}

/* Content Headers */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.content-header h2 {
  margin: 0;
  color: #000000;
  font-size: 2rem;
  font-weight: 700;
}

.search-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-input {
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s ease;
  width: 250px;
}

.search-input:focus {
  border-color: #000000;
}

.filter-select {
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  background: white;
  cursor: pointer;
}

/* Users Table */
.users-table {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 2fr;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: #000000;
  font-weight: 700;
  color: #ffffff;
  border-bottom: 1px solid #333333;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 2fr;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #333333;
  align-items: center;
  transition: background-color 0.3s ease;
  background: #ffffff;
  color: #000000;
}

.table-row:hover {
  background: #f0f0f0;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.user-name {
  font-weight: 600;
  color: #000000;
  margin-bottom: 2px;
}

.user-phone {
  color: #666666;
  font-size: 0.9rem;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.status-badge.online {
  background: #000000;
  color: #ffffff;
}

.status-badge.offline {
  background: #666666;
  color: #ffffff;
}

.status-badge.banned {
  background: #333333;
  color: #ffffff;
}

.report-count {
  background: #000000;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.last-activity {
  color: #666666;
  font-size: 0.9rem;
}

.user-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  padding: 6px 12px;
  border: 1px solid #333333;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #000000;
}

.ban-btn {
  background: #000000;
  color: #ffffff;
}

.ban-btn:hover {
  background: #333333;
}

.unban-btn {
  background: #666666;
  color: #ffffff;
}

.unban-btn:hover {
  background: #888888;
}

.warn-btn {
  background: #333333;
  color: #ffffff;
}

.warn-btn:hover {
  background: #ffeaa7;
}

/* Reports */
.report-filters {
  display: flex;
  gap: 1rem;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #333333;
  border-radius: 8px;
  background: #ffffff;
  color: #000000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #000000;
  color: #000000;
}

.filter-btn.active {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
}

.report-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.report-card:hover {
  transform: translateY(-5px);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem 0;
}

.report-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.report-status.pending {
  background: #fff3cd;
  color: #856404;
}

.report-status.resolved {
  background: #d4edda;
  color: #155724;
}

.report-status.dismissed {
  background: #f8d7da;
  color: #721c24;
}

.report-date {
  color: #666;
  font-size: 0.9rem;
}

.report-content {
  padding: 1.5rem;
}

.report-content h4 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: 700;
}

.report-content p {
  margin: 0.5rem 0;
  color: #666;
  line-height: 1.5;
}

.report-content strong {
  color: #333;
}

.report-actions {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.resolve-btn {
  background: #d4edda;
  color: #155724;
}

.resolve-btn:hover {
  background: #c3e6cb;
}

.dismiss-btn {
  background: #f8d7da;
  color: #721c24;
}

.dismiss-btn:hover {
  background: #f5c6cb;
}

/* Analytics */
.analytics-content {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.analytics-content h2 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 2rem;
  font-weight: 700;
}

.analytics-content p {
  color: #666;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .admin-main {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .reports-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .admin-dashboard {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    order: 1;
  }

  .admin-main-wrapper {
    margin-left: 0;
    order: 2;
  }

  .admin-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .admin-nav {
    padding: 0 1rem;
    overflow-x: auto;
  }

  .nav-btn {
    white-space: nowrap;
    padding: 1rem;
  }

  .admin-main {
    padding: 1rem;
  }

  .content-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .search-filters {
    width: 100%;
    flex-direction: column;
  }

  .search-input {
    width: 100%;
  }

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

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .table-header {
    display: none;
  }

  .table-row {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  .user-actions {
    justify-content: flex-start;
    margin-top: 1rem;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .report-filters {
    flex-wrap: wrap;
  }

  .filter-btn {
    flex: 1;
    min-width: 120px;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Dashboard Styles */
.stat-growth {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 5px;
}

.stat-growth.positive {
  background: #d4edda;
  color: #155724;
}

.stat-growth.negative {
  background: #f8d7da;
  color: #721c24;
}

.stat-detail {
  font-size: 0.8rem;
  color: #95a5a6;
  font-weight: 500;
  margin-top: 5px;
  display: block;
}

/* Server Health Section */
.server-health {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.server-health h3 {
  margin: 0 0 1.5rem 0;
  color: #333;
  font-size: 1.5rem;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.health-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease;
}

.health-card:hover {
  transform: translateY(-2px);
}

.health-card.healthy {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 1px solid #b8daff;
}

.health-card.unhealthy {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border: 1px solid #f5c6cb;
}

.health-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.health-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

/* Quick Actions Section */
.quick-actions {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quick-actions h3 {
  margin: 0 0 1.5rem 0;
  color: #333;
  font-size: 1.5rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.action-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.action-card:hover {
  transform: translateY(-3px);
}

.action-icon {
  font-size: 2rem;
}

.action-text {
  font-weight: 600;
  font-size: 1rem;
}

.action-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Enhanced User Management Styles */
.user-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.bulk-actions {
  position: relative;
}

.bulk-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.bulk-btn:hover {
  transform: translateY(-1px);
}

.bulk-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 150px;
}

.bulk-dropdown button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bulk-dropdown button:hover {
  background: #f8f9fa;
}

.export-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.export-btn:hover {
  transform: translateY(-1px);
  background: #218838;
}

.admin-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.has-reports {
  color: #e74c3c;
  font-weight: 700;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: #666;
  font-style: italic;
}

/* User Profile Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.user-profile-modal {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #333;
}

.modal-content {
  padding: 1.5rem;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.profile-avatar .avatar-placeholder.large {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

.profile-info h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.5rem;
}

.profile-info .phone {
  color: #666;
  margin: 0;
}

.profile-details {
  margin-bottom: 2rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  font-weight: 600;
  color: #333;
}

.detail-row .value {
  color: #666;
}

.profile-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-actions .action-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.profile-actions .action-btn:hover {
  transform: translateY(-1px);
}

.profile-actions .action-btn.ban {
  background: #e74c3c;
  color: white;
}

.profile-actions .action-btn.unban {
  background: #27ae60;
  color: white;
}

.profile-actions .action-btn.warn {
  background: #f39c12;
  color: white;
}

.profile-actions .action-btn.logout {
  background: #95a5a6;
  color: white;
}

.profile-actions .action-btn.export {
  background: #3498db;
  color: white;
}

/* Groups Management Styles */
.groups-table {
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #333333;
}

.group-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.group-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.group-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.group-name {
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.25rem;
}

.group-description {
  font-size: 0.85rem;
  color: #666666;
}

.member-count {
  font-weight: 600;
  color: #000000;
}

.online-count {
  font-size: 0.85rem;
  color: #000000;
  margin-left: 0.5rem;
}

.type-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.type-badge.public {
  background: #000000;
  color: #ffffff;
}

.type-badge.private {
  background: #666666;
  color: #ffffff;
}

.status-badge.frozen {
  background: #333333;
  color: #ffffff;
}

.group-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn.freeze {
  background: #2196f3;
}

.action-btn.unfreeze {
  background: #ff9800;
}

/* Message Search Styles */
.message-search-content {
  padding: 2rem;
}

.search-interface {
  background: #000000;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #333333;
}

.search-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.message-search-input,
.date-filter,
.user-filter {
  padding: 0.75rem;
  border: 1px solid #333333;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #ffffff;
  color: #000000;
}

.search-btn {
  background: #000000;
  color: #ffffff;
  border: 1px solid #333333;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.search-btn:hover {
  transform: translateY(-1px);
}

.results-list {
  max-height: 500px;
  overflow-y: auto;
}

.result-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f9f9f9;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sender {
  font-weight: 600;
  color: #000000;
}

.timestamp {
  font-size: 0.8rem;
  color: #666666;
}

.conversation-type {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.conversation-type.group {
  background: #000000;
  color: #ffffff;
}

.conversation-type.private {
  background: #666666;
  color: #ffffff;
}

.result-message {
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 6px;
  margin: 0.5rem 0;
  border-left: 3px solid #000000;
  color: #000000;
}

.result-participants {
  font-size: 0.8rem;
  color: #666666;
  font-style: italic;
}

.no-data {
  text-align: center;
  padding: 2rem;
  color: #666666;
}

/* Storage Section Styles */
.storage-dashboard {
  padding: 2rem;
}

.storage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.media-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: #000000;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.category-card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.category-stats {
  color: #cccccc;
  margin-bottom: 1rem;
}

.category-btn {
  background: #ffffff;
  color: #000000;
  border: 1px solid #333333;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

/* Settings Section Styles */
.roles-dashboard,
.system-dashboard,
.integrations-dashboard {
  padding: 2rem;
}

.roles-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.role-card {
  background: #000000;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
}

.role-card h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.role-card p {
  color: #cccccc;
  margin-bottom: 1rem;
}

.role-permissions {
  margin-bottom: 1rem;
}

.permission {
  display: block;
  color: #cccccc;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.role-users {
  color: #ffffff;
  font-size: 0.9rem;
}

.settings-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.settings-card {
  background: #000000;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
}

.settings-card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: #ffffff;
}

.setting-input,
.setting-select {
  background: #ffffff;
  color: #000000;
  border: 1px solid #333333;
  padding: 0.5rem;
  border-radius: 4px;
}

.integration-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.integration-card {
  background: #000000;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.integration-card h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.integration-card p {
  color: #cccccc;
  margin-bottom: 1rem;
}

.integration-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.integration-status.active {
  background: #000000;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.integration-status.inactive {
  background: #666666;
  color: #ffffff;
}

/* Audit Section Styles */
.audit-dashboard,
.dsr-dashboard {
  padding: 2rem;
}

.audit-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.audit-date-filter,
.audit-action-filter,
.audit-user-filter {
  background: #ffffff;
  color: #000000;
  border: 1px solid #333333;
  padding: 0.5rem;
  border-radius: 4px;
}

.audit-search-btn {
  background: #000000;
  color: #ffffff;
  border: 1px solid #333333;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.audit-logs-table {
  background: #000000;
  border: 1px solid #333333;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.audit-log-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 2fr;
  gap: 1rem;
  padding: 1rem;
  background: #000000;
  color: #ffffff;
  font-weight: 600;
  border-bottom: 1px solid #333333;
}

.audit-log-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 2fr;
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
  color: #000000;
  border-bottom: 1px solid #333333;
}

.audit-log-row:last-child {
  border-bottom: none;
}

.audit-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.audit-page-btn {
  background: #ffffff;
  color: #000000;
  border: 1px solid #333333;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.audit-page-info {
  color: #000000;
}

/* DSR Section Styles */
.dsr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dsr-stat-card {
  background: #000000;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.dsr-stat-card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.dsr-count {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

.dsr-requests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dsr-request-card {
  background: #000000;
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
}

.dsr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dsr-id {
  color: #ffffff;
  font-weight: 600;
}

.dsr-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.dsr-status.pending {
  background: #333333;
  color: #ffffff;
}

.dsr-details {
  color: #cccccc;
  margin-bottom: 1rem;
}

.dsr-details p {
  margin-bottom: 0.5rem;
}

.dsr-actions {
  display: flex;
  gap: 0.5rem;
}

.dsr-btn {
  background: #ffffff;
  color: #000000;
  border: 1px solid #333333;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
#root {
  height: 100vh;
  margin: 0;
  padding: 0;
}

.connecting-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.connecting-content {
  text-align: center;
  color: white;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.connecting-content h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.connecting-content p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}
