/* modals.css */

/* 共通オーバーレイ */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}

/* モーダル本体 */
.modal-content {
  position: relative;
  background: #fff;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #aaa;
  border-radius: 6px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  resize: both;
  min-width: 300px;
  min-height: 200px;
  background-color: white;
  margin-top: 5vh;
  margin-bottom: 5vh;
  margin-left: 10%;
  margin-right: 10%;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
}
.objective-table {
  min-width: 1000px; /* 横幅確保（必要に応じて調整） */
}

/* 共通閉じるボタン */
.modal-content .close-btn {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 1.6em;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}
.modal-content .close-btn:hover {
  color: #333;
}

/* ヘッダー */
.modal-content .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #eaeaea;
}
.modal-content .modal-header h3 {
  margin: 0;
  font-size: 1.2em;
}

/* タスク詳細モーダル内テーブル */
#user-task-modal-body .objective-table th:nth-child(1),
#user-task-modal-body .objective-table td:nth-child(1) {
  width: 32px; text-align: center;
}
#user-task-modal-body .objective-table th:nth-child(2),
#user-task-modal-body .objective-table td:nth-child(2) {
  width: 50%; word-break: break-word;
}
#user-task-modal-body .objective-table th:nth-child(3),
#user-task-modal-body .objective-table td:nth-child(3),
#user-task-modal-body .objective-table th:nth-child(4),
#user-task-modal-body .objective-table td:nth-child(4) {
  width: 100px; text-align: center;
}
#user-task-modal-body .objective-table th:nth-child(5),
#user-task-modal-body .objective-table td:nth-child(5) {
  width: 100px; text-align: center;
}#user-task-modal-body .objective-table th:nth-child(6),
#user-task-modal-body .objective-table td:nth-child(6) {
  width: 74px; text-align: center;
}

/* 新規タスクモーダル */
#new-task-modal .modal-content {
  padding: 30px;
  font-size: 1em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#new-task-modal .modal-content h3 {
  margin-bottom: 20px;
  font-size: 1.4em;
}
#new-task-modal input[type="text"],
#new-task-modal input[type="date"],
#new-task-modal textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
#new-task-modal textarea {
  height: 8em;
  resize: vertical;
}
/* モーダル内オブジェクティブ一覧 */
.modal-objectives-table th,
.modal-objectives-table td {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* パスワード変更モーダル */
.password-modal {
  display: none;
  width: 400px; max-width: 90vw;
  height: auto;
}

.password-change {
  position: relative;
  display: inline-block;
  width: 100%;
}
.password-modal input{
  width: 100%;
  padding-right: 40px; /* アイコン分のスペース確保 */
  box-sizing: border-box;
  font-size: 22px;

}
.new-password-toggle{
    position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.new-password-toggle .dashicons {
  font-size: 20px;
  color: #555;
}



#ai-suggest-modal label {
  font-size: 14px;
}
