/* Modal Overlay */
.dmc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: dmc-fade-in 0.3s ease-out;
  padding: 20px;
}

/* Animations */
@keyframes dmc-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes dmc-slide-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes dmc-slide-out {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
}

/* Modal */
.dmc-main-card {
  padding: 1.875rem;
  border-radius: 1.25rem;
  background-color: color-mix(in srgb, #ffffff 60%, transparent 40%);
  animation: dmc-slide-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dmc-modal {
  background: #ffffff;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: 28.125rem;
  width: 100%;
  position: relative;
  animation: dmc-slide-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dmc-modal-closing {
  animation: dmc-slide-out 0.3s ease-out;
}

/* Modal Header */
.dmc-modal-header {
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.warning-dmc-modal-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 1.25rem auto 1.5rem;
  background: linear-gradient(135deg, #ff5630, #e04c2b);
  transform: rotate(45deg);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(255, 86, 48, 0.3);
}

.warning-dmc-modal-icon svg {
  transform: rotate(-45deg);
  width: 2.325rem;
  height: 2.325rem;
  fill: #fff;
}

/* Outer light background circle */
.warning-dmc-modal-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5.625rem;
  height: 5.625rem;
  background: rgba(255, 86, 48, 0.08);
  border-radius: 50%;
  z-index: -2;
}

/* Middle layer circle */
.warning-dmc-modal-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.25rem;
  height: 4.25rem;
  background: rgba(255, 86, 48, 0.15);
  border-radius: 50%;
  z-index: -1;
}

.question-dmc-modal-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 1.25rem auto 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.question-dmc-modal-icon svg {
  width: 2.125rem;
  height: 2.125rem;
  fill: #fff;
}

/* Outer light background circle */
.question-dmc-modal-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5.625rem;
  height: 5.625rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 50%;
  z-index: -2;
}

/* Middle layer circle */
.question-dmc-modal-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.25rem;
  height: 4.25rem;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  z-index: -1;
}

.warning-dmc-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.75rem;
  margin-top: 3.125rem;
  line-height: 1.3;
}

.question-dmc-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.75rem;
  margin-top: 3.125rem;
  line-height: 1.3;
}

.dmc-modal-subtitle {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.dmc-modal-description {
  font-size: 0.938rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* Modal Body */
.dmc-modal-body {
  padding: 0 2rem;
}

.dmc-warning-box {
  background: #ffe8e0;
  border: 1px solid rgba(255, 86, 48, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.dmc-warning-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.188rem;
  background: linear-gradient(90deg, #ff5630, #e04c2b);
}

.dmc-warning-text {
  font-size: 0.875rem;
  color: #c53030;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.dmc-warning-icon {
  width: 1rem;
  height: 1rem;
  color: #c53030;
  flex-shrink: 0;
}

/* Modal Footer */
.dmc-modal-footer {
  padding: 1.5rem 1rem 1rem;
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Buttons */
.dmc-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.938rem;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  text-transform: uppercase;
}

.dmc-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s;
}

.dmc-btn:hover::before {
  left: 100%;
}

.dmc-btn-cancel {
  background: #e1e8ea;
  color: #3e6770;
  min-width: 6.25rem;
}

.dmc-btn-cancel:hover {
  background: #eef2f3;
  color: #2e4f56;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dmc-btn-delete {
  background: linear-gradient(135deg, #ff5630, #e04c2b);
  color: white;
  min-width: 6.25rem;
}

.dmc-btn-delete:hover {
  background: linear-gradient(135deg, #e04c2b, #cc3300);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 86, 48, 0.4);
}

.dmc-btn-delete:active {
  transform: translateY(0);
}

.dmc-btn-Clear {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  min-width: 6.25rem;
}

.dmc-btn-Clear:hover {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.dmc-btn-Clear:active {
  transform: translateY(0);
}

/* Close Button */
.dmc-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: #e1e8ea;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  color: #3e6770;
}

.dmc-close-btn:hover {
  background: #cfd8db;
  opacity: 1;
  transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 480px) {
  .dmc-modal {
    margin: 1.25rem;
    width: calc(100% - 40px);
  }

  .dmc-modal-header {
    padding: 1.5rem 1.5rem 1.25rem;
  }

  .dmc-modal-body {
    padding: 0 1.5rem;
  }

  .dmc-modal-footer {
    padding: 1.25rem 1.5rem 1.5rem;
    flex-direction: column;
  }

  .dmc-btn {
    width: 100%;
  }
}

/* export to excel alert */

.export-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.export-input {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.938rem;
  font-family: inherit;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 0.625rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.export-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.export-input:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.export-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

/* Number Input Styling */
.export-input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.export-input[type="number"]::-webkit-inner-spin-button,
.export-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.export-input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.export-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.export-input.error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.dmc-modal-body-error {
  color: red;
  font-size: 12px;
  padding-left: 10px;
}

/* change password modal */
/* Change Password Modal Styles */

/* Modal Backdrop */
.change-password-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.change-password-backdrop.show {
  opacity: 1;
}

/* Change Password Modal */
/* Change Password Modal Styles */

/* Modal Backdrop */
.change-password-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.change-password-backdrop.show {
  opacity: 1;
  animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Change Password Modal Styles */

/* Modal Backdrop */
.change-password-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.change-password-backdrop.show {
  opacity: 1;
}

/* Change Password Modal */
.change-password-modal-transition {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.change-password-modal-transition.show {
  opacity: 1;
}

.change-password-modal {
  max-width: 400px;
  margin: 1.75rem auto;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.25s ease;
}

.change-password-modal-transition.show .change-password-modal {
  transform: translateY(0);
  opacity: 1;
}

.change-password-modal-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.change-password-modal .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #ffffff;
  background-clip: padding-box;
  border: none;
  border-radius: 20px;
  outline: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.change-password-modal .modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Close Button */
.change-password-close-section {
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem 1.25rem 0;
}

.change-password-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9e9e9e;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.change-password-close-btn:hover {
  background-color: #f5f5f5;
  color: #1a1a1a;
}

.change-password-close-btn svg {
  width: 22px;
  height: 22px;
}

/* Form Container */
.change-password-form-container {
  padding: 0 2rem 2rem;
}

/* Header with Icon */
.change-password-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.change-password-icon-wrapper {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.change-password-icon-wrapper svg {
  width: 50px;
  height: 50px;
}

.change-password-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Fields */
.change-password-field-group {
  margin-bottom: 1rem;
}

.change-password-field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.change-password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.change-password-input-wrapper:focus-within {
  border-color: #4169e1;
  box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.1);
}

.change-password-input-wrapper.error {
  border-color: #ef4444;
}

.change-password-input-wrapper.error:focus-within {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.change-password-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.7rem 0.9rem;
  padding-right: 2.75rem;
  font-size: 0.875rem;
  color: #1a1a1a;
  outline: none;
  font-family: inherit;
  width: 100%;
}

.change-password-input:-webkit-autofill,
.change-password-input:-webkit-autofill:hover,
.change-password-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #1a1a1a !important;
  transition: background-color 5000s ease-in-out 0s;
}

.change-password-input:focus {
  outline: 0 !important;
  box-shadow: none !important;
}

.change-password-input::placeholder {
  color: #b0b0b0;
}

.change-password-toggle-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.85rem;
  color: #9e9e9e;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.change-password-toggle-btn:hover {
  color: #4169e1;
}

.change-password-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* Error Message */
.change-password-error-message {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.4rem;
  padding-left: 0.25rem;
  font-weight: 500;
}

/* Submit Button */
.change-password-submit-btn {
  width: 100%;
  background: #4169e1;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  height: 46px;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-top: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.change-password-submit-btn:hover:not(:disabled) {
  background: #365ac4;
}

.change-password-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.change-password-submit-btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.change-password-submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin-left: -9px;
  margin-top: -9px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: change-password-spinner 0.8s linear infinite;
}

@keyframes change-password-spinner {
  to {
    transform: rotate(360deg);
  }
}

.change-password-spinner-icon {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: change-password-spinner 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 576px) {
  .change-password-modal {
    max-width: 100%;
    margin: 0.5rem;
  }

  .change-password-modal .modal-content {
    border-radius: 16px;
  }

  .change-password-form-container {
    padding: 0 1.5rem 1.75rem;
  }

  .change-password-close-section {
    padding: 1rem 1rem 0;
  }

  .change-password-title {
    font-size: 1.1rem;
  }

  .change-password-icon-wrapper svg {
    width: 44px;
    height: 44px;
  }

  .change-password-input {
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
    padding-right: 2.5rem;
  }

  .change-password-submit-btn {
    height: 44px;
    font-size: 0.85rem;
  }
}

@media (max-width: 400px) {
  .change-password-modal {
    margin: 0.25rem;
  }

  .change-password-form-container {
    padding: 0 1.25rem 1.5rem;
  }

  .change-password-field-group {
    margin-bottom: 0.85rem;
  }
}
