/* Enhanced Profile Modal Styles */
.details-modal-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px 0 rgba(0,0,0,0.15);
  max-width: 480px;
  width: min(92vw, 480px);
  margin: 16px auto;
  padding: 0;
  animation: fadeInUp 0.3s ease;
  overflow: hidden;
  /* Responsive height and in-modal scrolling */
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
  scrollbar-gutter: stable both-edges;
  overscroll-behavior: contain;
}

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

.profile-mode {
  padding: 1.25rem;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.details-header h2 {
  font-size: 1.3em;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.edit-btn, .cancel-edit-btn {
  background: linear-gradient(135deg, #7c9885, #9cb4a8);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 152, 133, 0.3);
}

.cancel-edit-btn {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.cancel-edit-btn:hover {
  background: #e9ecef;
}

.profile-avatar-section {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.profile-avatar-large {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid #7c9885;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(124, 152, 133, 0.2);
}

.change-avatar-btn {
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  background: #7c9885;
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.change-avatar-btn:hover {
  background: #6b8a73;
  transform: translateX(50%) scale(1.1);
}

.details-content {
  margin-bottom: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.detail-row:hover {
  background: #f8f9fa;
  margin: 0 -0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
}

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

.detail-label {
  font-weight: 600;
  color: #5a6b5d;
  font-size: 0.95em;
}

.detail-value {
  color: #333;
  font-size: 0.95em;
  text-align: right;
  max-width: 60%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.social-media-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.social-icon:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.social-icon.facebook {
  background: #1877f2;
}

.social-icon.twitter {
  background: #1da1f2;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Edit Form Styles */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.edit-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edit-form label {
  font-weight: 600;
  color: #5a6b5d;
  font-size: 0.9em;
}

.edit-form input {
  padding: 0.7rem 0.9rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.95em;
  background: #f8f9fa;
  color: #333;
  transition: all 0.2s ease;
}

.edit-form input:focus {
  outline: none;
  border-color: #7c9885;
  background: white;
  box-shadow: 0 0 0 3px rgba(124, 152, 133, 0.1);
}

.edit-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.edit-actions .btn {
  background: linear-gradient(135deg, #7c9885, #9cb4a8);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.edit-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 152, 133, 0.3);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f8f9fa;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.1em;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #e9ecef;
  color: #495057;
}

@media (max-width: 768px) {
  .details-modal-card {
    width: 96vw;
    max-height: 90vh;
  }
  .profile-mode {
    padding: 1.5rem;
  }
  .details-header h2 {
    font-size: 1.3em;
  }
  .profile-avatar-large {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 600px) {
  .details-modal-card {
    margin: 10px auto;
    width: 98vw;
    max-height: 92vh;
    border-radius: 16px;
  }
  .profile-mode {
    padding: 1.25rem;
  }
  .details-header {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .detail-value {
    text-align: left;
    max-width: 100%;
  }
  .modal-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 500px) {
  .details-modal-card {
    margin: 8px auto;
    width: 100vw;
    max-width: 100vw;
    border-radius: 12px;
  }
  
  .profile-mode {
    padding: 1rem 1.1rem;
  }
  
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .detail-value {
    text-align: left;
    max-width: 100%;
  }

  .details-header {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .details-modal-card {
    border-radius: 0;
    margin: 0;
    width: 100vw;
    max-height: 96vh;
  }
  .modal-close {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
    top: 10px;
    right: 10px;
  }
  .profile-avatar-large {
    width: 76px;
    height: 76px;
  }
  .social-media-icons {
    gap: 1rem;
  }
}

@media (max-width: 360px) {
  .profile-mode {
    padding: 0.9rem;
  }
  .details-header h2 {
    font-size: 1.1em;
  }
  .social-media-icons { display: none; }
}

/* Landscape small-height devices */
@media (max-height: 500px) and (orientation: landscape) {
  .details-modal-card {
    max-height: 95vh;
    width: 96vw;
    margin: 8px auto;
  }
  .profile-mode { padding: 1rem; }
}

/* Support modern viewport units where available */
@supports (height: 100dvh) {
  .details-modal-card { max-height: 90dvh; }
  @media (max-width: 420px) {
    .details-modal-card { max-height: 96dvh; }
  }
}

/* Help Modal Styles */
.help-modal-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px 0 rgba(0,0,0,0.15);
  max-width: 600px;
  width: 90vw;
  margin: 30px auto;
  max-height: 80vh;
  overflow-y: auto;
  animation: fadeInUp 0.3s ease;
}

.help-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 2px solid #f8f9fa;
  background: linear-gradient(135deg, #7c9885, #9cb4a8);
  color: white;
  border-radius: 20px 20px 0 0;
}

.help-header h2 {
  font-size: 1.8em;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-content {
  padding: 2rem;
}

.help-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.help-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.help-section h3 {
  font-size: 1.3em;
  font-weight: 600;
  color: #333;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-section h3 i {
  color: #7c9885;
  width: 20px;
}

.help-section p {
  color: #666;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.help-section ul {
  margin: 0;
  padding-left: 1.5rem;
}

.help-section li {
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.help-footer {
  padding: 1.5rem 2rem 2rem 2rem;
  background: #f8f9fa;
  border-radius: 0 0 20px 20px;
  border-top: 1px solid #e9ecef;
}

.help-contact h4 {
  font-size: 1.2em;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-contact p {
  color: #666;
  margin: 0 0 1rem 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
  font-size: 0.95em;
}

.contact-info span i {
  color: #7c9885;
  width: 16px;
}

@media (max-width: 600px) {
  .help-modal-card {
    margin: 10px auto;
    width: 95vw;
    max-height: 85vh;
  }
  
  .help-header,
  .help-content,
  .help-footer {
    padding: 1.5rem;
  }
  
  .help-header h2 {
    font-size: 1.5em;
  }
  
  .help-section h3 {
    font-size: 1.2em;
  }
} 

.user-settings-modal-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px 0 rgba(0,0,0,0.15);
  max-width: 400px;
  width: 90vw;
  margin: 30px auto;
  padding: 0;
  animation: fadeInUp 0.3s ease;
  overflow: hidden;
}

.user-settings-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 2px solid #f8f9fa;
  background: linear-gradient(135deg, #7c9885, #9cb4a8);
  color: white;
  border-radius: 20px 20px 0 0;
}

.user-settings-header h2 {
  font-size: 1.5em;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-settings-form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.user-settings-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.user-settings-form label {
  font-weight: 600;
  color: #5a6b5d;
  font-size: 1em;
  margin-bottom: 0.2rem;
}

.user-settings-form input[type='password'],
.user-settings-form select {
  padding: 0.8rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1em;
  background: #f8f9fa;
  color: #333;
  transition: all 0.2s ease;
}

.user-settings-form input:focus,
.user-settings-form select:focus {
  outline: none;
  border-color: #7c9885;
  background: white;
  box-shadow: 0 0 0 3px rgba(124, 152, 133, 0.1);
}

.checkbox-group {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin-top: 0.2rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #5a6b5d;
  font-size: 1em;
  gap: 0.5rem;
}

.user-settings-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.user-settings-actions .btn {
  background: linear-gradient(135deg, #7c9885, #9cb4a8);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-settings-actions .btn.secondary {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.user-settings-actions .btn.secondary:hover {
  background: #e9ecef;
}

.user-settings-actions .btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 152, 133, 0.3);
}

@media (max-width: 500px) {
  .user-settings-modal-card {
    margin: 10px auto;
    width: 95vw;
  }
  .user-settings-header,
  .user-settings-form {
    padding: 1.2rem;
  }
} 