/* Create New Project Modal Styles */
@import url('https://fonts.googleapis.com/css2?family=Switzer:wght@300;400;500;600;700;800;900&display=swap');

/* Force light theme - override any dark theme styles */
.new-project-modal,
.new-project-modal *,
.new-project-header,
.new-project-header *,
.new-project-body,
.new-project-body *,
.new-project-footer,
.new-project-footer * {
  color-scheme: light !important;
}

/* Modal backdrop */
.modal-backdrop {
  background-color: rgba(38, 38, 38, 0.4) !important;
}

/* Modal Container */
.new-project-modal {
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.1) !important;
  width: 600px !important;
  max-width: 90vw !important;
  font-family: 'Switzer', sans-serif !important;
  background-color: #FFFFFF !important;
  color: #262626 !important;
}

/* Modal Header */
.new-project-header {
  border-bottom: 1px solid #EDEBF0 !important;
  padding: 24px 25px 24px 25px !important;
  border-radius: 16px 16px 0 0 !important;
  background-color: #FFFFFF !important;
}

.new-project-title {
  font-family: 'Switzer', sans-serif !important;
  font-weight: 600 !important;
  font-size: 20px !important;
  line-height: 28px !important;
  color: #262626 !important;
  margin: 0 !important;
}

.new-project-close {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

.new-project-close:hover {
  opacity: 0.7 !important;
}

.new-project-close svg {
  width: 24px !important;
  height: 24px !important;
}

.new-project-close svg path {
  stroke: #262626 !important;
}

/* Modal Body */
.new-project-body {
  padding: 0 24px 32px 24px !important;
  background-color: #FFFFFF !important;
}

.new-project-form-group {
  margin-bottom: 0 !important;
}

.new-project-label {
  font-family: 'Switzer', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: normal !important;
  color: #344054 !important;
  margin-bottom: 6px !important;
  display: block !important;
  letter-spacing: -0.32px !important;
}

.new-project-input {
  font-family: 'Switzer', sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  color: #262626 !important;
  background-color: #FFFFFF !important;
  border: 1px solid #D0D5DD !important;
  border-radius: 4px !important;
  padding: 6px 12px !important;
  width: 100% !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.new-project-input::placeholder {
  color: #98A2B3 !important;
  font-weight: 400 !important;
}

.new-project-input:focus {
  border-color: #F11F68 !important;
  box-shadow: 0 0 0 0.2rem rgba(241, 31, 104, 0.25) !important;
  outline: none !important;
  background-color: #FFFFFF !important;
  color: #262626 !important;
}

.new-project-input.is-invalid {
  border-color: #FF3434 !important;
  background-color: #FFFFFF !important;
}

.new-project-input.is-invalid:focus {
  border-color: #FF3434 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 52, 52, 0.25) !important;
  background-color: #FFFFFF !important;
}

.new-project-error {
  font-family: 'Switzer', sans-serif !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  color: #FF3434 !important;
  margin-top: 4px !important;
  display: block !important;
}

/* Modal Footer */
.new-project-footer {
  border-top: none !important;
  padding: 0 24px 24px 24px !important;
  background-color: #FFFFFF !important;
  display: flex !important;
  gap: 12px !important;
  justify-content: flex-end !important;
  border-radius: 0 0 16px 16px !important;
}

/* Cancel Button */
.new-project-cancel-btn {
  font-family: 'Switzer', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  color: #344054 !important;
  background-color: #FFFFFF !important;
  border: 1px solid #D5D7DA !important;
  border-radius: 4px !important;
  padding: 10px 18px !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05) !important;
  flex: 1 !important;
}

.new-project-cancel-btn:hover {
  background-color: #F8F9FA !important;
  border-color: #C1C4C8 !important;
  color: #1F2937 !important;
}

.new-project-cancel-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(52, 64, 84, 0.25) !important;
  outline: none !important;
  background-color: #FFFFFF !important;
}

/* Create Project Button */
.new-project-create-btn {
  font-family: 'Switzer', sans-serif !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  color: #FFFFFF !important;
  background: linear-gradient(90deg, #F11F68 0%, #162ABF 100%) !important;
  border: 1px solid #D92D20 !important;
  border-radius: 4px !important;
  padding: 10px 18px !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05) !important;
  flex: 1 !important;
  position: relative !important;
  overflow: hidden !important;
}

.new-project-create-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.new-project-create-btn:not(:disabled):hover {
  transform: translateY(-1px) !important;
  box-shadow: 0px 2px 4px 0px rgba(10, 13, 18, 0.1) !important;
}

.new-project-create-btn:not(:disabled):active {
  transform: translateY(0) !important;
}

.new-project-create-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(241, 31, 104, 0.25) !important;
  outline: none !important;
}

/* Button text and spinner */
.new-project-btn-text {
  color: #FFFFFF !important;
}

.new-project-create-btn:disabled .new-project-btn-text {
  color: #FFFFFF !important;
}

/* Loading state */
.new-project-create-btn.loading {
  opacity: 0.8 !important;
  cursor: not-allowed !important;
}

.new-project-spinner {
  width: 1rem !important;
  height: 1rem !important;
  margin-left: 8px !important;
  border-color: #FFFFFF transparent #FFFFFF transparent !important;
}

/* Override Bootstrap modal styles */
#createProjectModal .modal-content {
  background-color: #FFFFFF !important;
  border: none !important;
  border-radius: 16px !important;
}

#createProjectModal .modal-header {
  background-color: #FFFFFF !important;
  border-bottom: 1px solid #EDEBF0 !important;
}

#createProjectModal .modal-body {
  background-color: #FFFFFF !important;
}

#createProjectModal .modal-footer {
  background-color: #FFFFFF !important;
  border-top: none !important;
}

/* Force override any dark theme */
#createProjectModal,
#createProjectModal *,
.modal-backdrop.show {
  color-scheme: light !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-project-modal {
    width: 95vw !important;
    margin: 10px !important;
  }
  
  .new-project-header {
    padding: 20px !important;
  }
  
  .new-project-body {
    padding: 0 20px 24px 20px !important;
  }
  
  .new-project-footer {
    padding: 0 20px 20px 20px !important;
    flex-direction: column !important;
  }
  
  .new-project-cancel-btn,
  .new-project-create-btn {
    flex: none !important;
    width: 100% !important;
  }
}

/* Animation for modal appearance */
.modal.fade .new-project-modal {
  transform: scale(0.9) !important;
  transition: transform 0.15s ease-out !important;
}

.modal.show .new-project-modal {
  transform: scale(1) !important;
}

/* Focus states for accessibility */
.new-project-input:focus-visible,
.new-project-cancel-btn:focus-visible,
.new-project-create-btn:focus-visible {
  outline: 2px solid #F11F68 !important;
  outline-offset: 2px !important;
}

/* Error state animation */
.new-project-input.is-invalid {
  animation: shake 0.3s ease-in-out !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
