/* src/client/features/notes/ui/NoteModal/styles.css
 * Styles for NoteModal component and its sub-components
 */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

/* Modal Content */
.modal-content {
  background-color: #002436;
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Modal Content - Create Mode (narrower width) */
.modal-content--create {
  width: 600px;
  max-width: 95vw;
}

/* Modal Content - Locked State */
.modal-content.is-locked {
  cursor: not-allowed;
}

/* Locked state - darker text for inputs */
.modal-content.is-locked .form-group :deep(.input) {
  opacity: 0.4;
  cursor: not-allowed;
}

.modal-content.is-locked .form-group :deep(.mention-editor) {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Locked state - cursor for header and body */
.modal-content.is-locked .modal-header {
  cursor: not-allowed;
}

.modal-content.is-locked .modal-body {
  cursor: not-allowed;
}


.modal-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* Modal Body - Create Mode (single column) */
.modal-body.is-create-mode {
  grid-template-columns: 1fr !important;
}

/* Modal Body - Private Note Mode (single column, no sidebar) */
.modal-body.is-private-note {
  grid-template-columns: 1fr !important;
}

/* Modal Main - Create Mode (full width) */
.modal-body.is-create-mode .modal-main {
  width: 100%;
  min-width: 0;
}

/* Modal Main - Private Note Mode (full width) */
.modal-body.is-private-note .modal-main {
  width: 100%;
  min-width: 0;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #3B82F6;
  background-color: rgba(255, 255, 255, 0.1);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
}

.form-textarea:focus {
  border-color: #3B82F6;
  background-color: rgba(255, 255, 255, 0.1);
}

.form-textarea.textarea-error {
  border-color: #EF4444;
}

.form-textarea.textarea-error:focus {
  border-color: #EF4444;
}

.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.error-message {
  color: #EF4444;
  font-size: 12px;
  margin-top: 4px;
}

/* Override Input component styles for dark theme */
.form-group :deep(.input) {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  padding: 10px 14px;
  font-size: 14px;
}

.form-group :deep(.input::placeholder) {
  color: rgba(255, 255, 255, 0.4);
}

.form-group :deep(.input:focus) {
  border-color: #3B82F6;
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

.form-group :deep(.input-error) {
  border-color: #EF4444;
}

.form-group :deep(.input-error:focus) {
  border-color: #EF4444;
  outline: none;
}

/* Priority Options */
.priority-options {
  display: flex;
  gap: 8px;
}

.priority-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.priority-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.priority-btn.active {
  border-color: #3B82F6;
  background-color: rgba(59, 130, 246, 0.1);
  color: #FFFFFF;
}

.priority-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.priority-dot.priority-low {
  background-color: #22C55E;
}

.priority-dot.priority-normal {
  background-color: #EAB308;
}

.priority-dot.priority-high {
  background-color: #EF4444;
}

/* Visibility Options */
.visibility-options {
  display: flex;
  gap: 8px;
}

.visibility-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.visibility-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.visibility-btn.active {
  border-color: #3B82F6;
  background-color: rgba(59, 130, 246, 0.1);
  color: #FFFFFF;
}

/* Checkbox Labels */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  color: #FFFFFF;
  font-size: 14px;
}

/* Checkboxes Row */
.checkboxes-row {
  display: flex;
  gap: 12px;
}

.checkbox-label:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-label input[type="checkbox"]:checked + svg {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.checkbox-text {
  font-weight: 500;
}

/* Status Options */
.status-options {
  display: flex;
  gap: 8px;
}

.status-btn {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.status-btn.active {
  border-color: #3B82F6;
  background-color: rgba(59, 130, 246, 0.1);
  color: #FFFFFF;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Transitions */
.modal-enter-active,
.modal-leave-active {
  transition: all 0.3s ease;
}

.modal-enter-from,
.modal-leave-to {
  opacity: 0;
}

.modal-enter-to,
.modal-leave-from {
  opacity: 1;
}

/* Context Menu */
.context-menu {
  position: fixed;
  background-color: #002436;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  min-width: 180px;
  padding: 4px 0;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #FFFFFF;
  font-size: 14px;
}

.context-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.context-menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: #3B82F6;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
}

/* Status Change Modal */
.status-change-modal {
  background-color: #002436;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.status-change-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-change-header h3 {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.status-change-body {
  padding: 20px;
  flex: 1;
}

.status-change-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.status-change-text strong {
  color: #FFFFFF;
  font-weight: 600;
}

.status-change-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

