/* Modal size and accessibility improvements */
.modal-dialog {
  width: 600px !important;
  height: 600px !important;
  max-width: 600px !important;
  max-height: 600px !important;
  margin: 2rem auto !important;
  position: relative !important;
}

.modal-content {
  max-height: calc(600px - 4rem);
  overflow-y: auto;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Close button improvements */
.modal-close-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 60;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-close-button:hover {
  background-color: #f3f4f6;
}

.modal-close-button svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #4b5563;
}

/* Improved form elements */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.15s ease-in-out;
}

.form-input:focus {
  border-color: #6366f1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* Button improvements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background-color: #6366f1;
  color: white;
}

.btn-primary:hover {
  background-color: #4f46e5;
}

.btn-secondary {
  background-color: white;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background-color: #f9fafb;
}

/* Responsive improvements */
@media (max-width: 640px) {
  .modal-dialog {
    max-width: 95%;
    margin: 1rem auto;
  }
  
  .form-input, .btn {
    padding: 0.625rem;
    font-size: 0.875rem;
  }
}

/* Attachment display improvements */
.attachment-list {
  margin-top: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.attachment-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

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

.attachment-icon {
  margin-right: 0.75rem;
  color: #6366f1;
}

.attachment-info {
  flex: 1;
}

.attachment-name {
  font-weight: 500;
  color: #111827;
}

.attachment-meta {
  font-size: 0.75rem;
  color: #6b7280;
}

.attachment-actions {
  display: flex;
  align-items: center;
}

.attachment-delete {
  color: #ef4444;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.attachment-delete:hover {
  background-color: #fee2e2;
}
