/* app-dialog.css */

.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 50px;
}

.dialog-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 100%;
  max-height: 100%;
}

.dialog-close-button {
  background-color: #f8f9fa; /* AppColors.kLight */
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 8px;
  padding: 6px;
  transition: background-color 0.2s ease;
}

.dialog-close-button:hover {
  background-color: #e9ecef;
}

.close-icon {
  font-size: 20px;
  color: #1a1a1a; /* AppColors.kTitleDark */
  font-weight: bold;
  line-height: 1;
}

.dialog-content {
  background-color: #f8f9fa; /* AppColors.kLight */
  border-radius: 16px;
  padding: 24px;
  max-width: 1080px;
  width: 100%;
  max-height: calc(100vh - 116px); /* Account for close button and spacing */
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.dialog-constrained {
  /* Constraints will be applied via inline styles */
}

.dialog-padded {
  /* Custom padding will be applied via inline styles if needed */
}

.dialog-scroll-container {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  /* Hide scrollbars */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dialog-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Confirmation Dialog Styles */
.confirmation-dialog {
  padding: 30px 60px;
  background-color: #f8f9fa; /* AppColors.kLight */
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  min-width: 400px;
  max-width: 600px;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a; /* AppColors.kTitleDark */
  margin: 0;
}

.header-close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.header-close-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.header-close-button .close-icon {
  font-size: 24px;
  color: #1a1a1a;
}

.spacing-20 {
  height: 20px;
}

.spacing-30 {
  height: 30px;
}

.dialog-description {
  font-size: 14px;
  font-weight: 400;
  color: #007bff; /* AppColors.kPrimary */
  line-height: 1.5;
  margin: 0;
}

.dialog-actions {
  display: flex;
  gap: 15px;
}

.dialog-actions > * {
  flex: 1;
}

.button-spacing {
  width: 15px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .dialog-overlay {
    padding: 20px;
  }
  
  .dialog-content {
    border-radius: 12px;
    padding: 16px;
  }
  
  .confirmation-dialog {
    padding: 20px 30px;
    min-width: 300px;
  }
  
  .dialog-title {
    font-size: 14px;
  }
  
  .dialog-description {
    font-size: 14px;
  }
  
  .dialog-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .button-spacing {
    display: none;
  }
}

/* Button styles (if not already defined) */
.button {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
}

.button-primary {
  background-color: #007bff;
  color: white;
}

.button-primary:hover {
  background-color: #0056b3;
}

.button-secondary {
  background-color: #6c757d;
  color: white;
}

.button-secondary:hover {
  background-color: #545b62;
}

