/* Exit Modal Specific Styles */
.exit-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }

  .exit-modal-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transform: scale(0.9);
    animation: exitModalAppear 0.3s ease-out forwards;
  }

  @keyframes exitModalAppear {
    to {
      transform: scale(1);
    }
  }

  .exit-modal-header h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
  }

  .exit-modal-body p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    text-align: center;
    font-size: 1.1rem;
  }

  .exit-modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
  }

  .exit-modal-actions .btn-secondary,
  .exit-modal-actions .btn-primary {
    flex: 1;
    max-width: 140px;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .exit-modal-actions .btn-primary {
    background: #ff4444;
    border-color: #ff4444;
  }

  .exit-modal-actions .btn-primary:hover {
    background: #ff3333;
    border-color: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
  }

/* Custom Popup Styles - Consistent with exit-modal design */
.custom-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  z-index: 10000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  max-width: 320px;
  min-width: 280px;
  word-wrap: break-word;
  opacity: 0;
  transform: translateX(100%) scale(0.9);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.custom-popup.error {
  border-color: #ef4444;
  background: var(--bg-primary);
}

.custom-popup.error::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ef4444;
  border-radius: 16px 16px 0 0;
}

.custom-popup.success {
  border-color: #10b981;
  background: var(--bg-primary);
}

.custom-popup.success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #10b981;
  border-radius: 16px 16px 0 0;
}

.custom-popup.info {
  border-color: #3b82f6;
  background: var(--bg-primary);
}

.custom-popup.info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #3b82f6;
  border-radius: 16px 16px 0 0;
}

.custom-popup.center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  max-width: 400px;
  min-width: 320px;
}

.custom-popup.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.custom-popup.center.show {
  transform: translate(-50%, -50%) scale(1);
}

.custom-popup-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.custom-popup-message {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}

.custom-popup-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  margin-left: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.custom-popup-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Delete Confirmation Buttons - Updated to match exit-modal style */
.delete-confirm-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.delete-confirm-btn:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.delete-cancel-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.delete-cancel-btn:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Delete Confirmation Container */
.delete-confirmation-container {
  text-align: center;
  padding: 8px 0;
}

.delete-confirmation-message {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

/* Sidebar Menu Popup Styles - Extracted from main.css and index.css */

/* Danger Modal */
.danger-modal {
  border-color: rgba(239, 68, 68, 0.3);
}

/* Warning Message */
.warning-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.warning-message i {
  font-size: 48px;
  color: #f59e0b;
  margin-bottom: 15px;
}

.warning-message p {
  margin: 0 0 15px 0;
  color: var(--text-primary);
}

.warning-message ul {
  text-align: left;
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.warning-message i.fa-check-circle {
  color: #10b981;
}

.warning-message i.fa-shield-alt {
  color: #3b82f6;
}

/* UI Feedback Messages */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 14px;
  display: none;
}

.success-message {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 14px;
  display: none;
}

.delete-error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 12px;
  display: none;
}

/* Info Icon and Tooltip Styles */
.info-icon {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  cursor: help;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.info-icon:hover {
  color: var(--rainbow-blue);
}

.info-icon i {
  font-size: 14px;
}

.info-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  max-width: 250px;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.info-icon::after {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--bg-primary);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.info-icon:hover::before,
.info-icon:hover::after {
  opacity: 1;
  visibility: visible;
}