/* Landing form: notifications, character counter, task image attach */

.landing-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
  padding: 16px 20px;
  max-width: 400px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.landing-notification.show {
  transform: translateX(0);
}

.landing-notification-error {
  border-left: 4px solid #ef4444;
}

.landing-notification-success {
  border-left: 4px solid #10b981;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.notification-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
}

.create-work-form1__textarea {
  position: relative;
}

.char-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 12px;
  color: #757580;
  background: white;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  font-family: Montserrat, sans-serif;
}

.current-count {
  color: #757580;
}

.create-work-form1 textarea.disabled,
.list-check1__label.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.list-check1__label.disabled .list-check1__text {
  color: #9ca3af;
}

.submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Task form: attach buttons and image preview */
.task-form-attach-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-form-attach-row .create-work-form1__textarea {
  flex: 1;
  min-height: 120px;
}

.task-form-attach-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.task-form-attach-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid #e7e7e9;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.task-form-attach-btn:hover {
  border-color: #cacad3;
  background: #f9fafb;
}

.task-form-attach-icon--clip {
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15.172 7l-6.586 6.586a2 2 0 102.828 2.828l6.414-6.586a4 4 0 00-5.656-5.656l-6.415 6.585a6 6 0 108.486 8.486L20.5 13'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

.task-form-attach-icon--camera {
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 13a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 13v4a2 2 0 01-2 2H7a2 2 0 01-2-2v-4'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

.task-form-textarea-dragover {
  border-color: #0f172a !important;
  background: #f0f9ff;
}

.task-form-image-preview {
  margin-top: 8px;
  min-height: 0;
}

.task-form-preview-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e7e7e9;
}

.task-form-preview-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.task-form-preview-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #757580;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

.task-form-preview-remove:hover {
  background: #e7e7e9;
  color: #0f172a;
}

/* Landing modal (generic) + scroll lock */
body.landing-modal-open {
  overflow: hidden;
}

.landing-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0.2s;
}

.landing-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.landing-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 50%);
}

.landing-modal__box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 40px rgb(0 0 0 / 15%);
}

.landing-modal--image-view .landing-modal__box {
  max-width: 980px;
  padding: 12px;
}

.landing-image-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-image-viewer__img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
}

.landing-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 8px;
}

.landing-modal__content {
  margin: 0;
}

.landing-modal__hint {
  font-size: 13px;
  color: #757580;
  margin: 0 0 16px;
}

.landing-modal__drop {
  border: 2px dashed #e7e7e9;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #374151;
  font-size: 14px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.landing-modal__drop.is-dragover {
  border-color: #0f172a;
  background: #f0f9ff;
}

.landing-modal__btn {
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px solid #0f172a;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-family: Montserrat, sans-serif;
  cursor: pointer;
}

.landing-modal__btn:hover {
  background: #3c4352;
}

.landing-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  color: #757580;
  cursor: pointer;
  line-height: 1;
}

.landing-modal__close:hover {
  color: #0f172a;
}

@media (width <= 768px) {
  .landing-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}
