/* Friend Requests Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  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: slideUp 0.3s ease;
}

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

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e4e6eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #000000 0%, #0b0015 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-close-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f0f2f5;
  color: #65676b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-close-modal:hover {
  background: #e4e6eb;
  transform: rotate(90deg);
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Friend Request Item */
.friend-request-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #f8f9fa;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.friend-request-item:hover {
  background: #e9ecef;
  transform: translateX(4px);
}

.friend-request-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.friend-request-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #667eea;
}

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

.friend-request-name {
  font-size: 16px;
  font-weight: 600;
  color: #050505;
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  color: #667eea;
  font-size: 14px;
}

.friend-request-username {
  font-size: 14px;
  color: #65676b;
  margin: 0 0 4px 0;
}

.friend-request-time {
  font-size: 12px;
  color: #8a8d91;
}

.friend-request-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-accept-request,
.btn-reject-request {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-accept-request {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-accept-request:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-accept-request:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-reject-request {
  background: #f0f2f5;
  color: #65676b;
}

.btn-reject-request:hover {
  background: #e4e6eb;
  color: #050505;
}

.btn-reject-request:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Empty State */
.empty-requests-state {
  padding: 60px 20px;
  text-align: center;
}

.empty-requests-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-requests-title {
  font-size: 18px;
  font-weight: 600;
  color: #050505;
  margin: 0 0 8px 0;
}

.empty-requests-subtitle {
  font-size: 14px;
  color: #65676b;
  margin: 0;
}

/* Loading State */
.loading-state {
  padding: 60px 20px;
  text-align: center;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e4e6eb;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.loading-text {
  font-size: 14px;
  color: #65676b;
  font-weight: 500;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  .friend-request-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .friend-request-actions {
    width: 100%;
  }
  
  .btn-accept-request,
  .btn-reject-request {
    flex: 1;
  }
}
