/* ===============================
   タスク作成フォーム用 CSS
   =============================== */

.task-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: "Segoe UI", sans-serif;
}

.task-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.task-form p {
    margin-bottom: 1rem;
}

.task-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.4rem;
    color: #444;
}

.task-form input[type="text"],
.task-form input[type="date"],
.task-form input[type="datetime-local"],
.task-form textarea,
.task-form select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.task-form input:focus,
.task-form textarea:focus,
.task-form select:focus {
    border-color:  linear-gradient(135deg, #43cea2, #185a9d);
    box-shadow: 0 0 12px 3px rgba(74, 255, 120, 0.6);
    outline: none;
}

.create-btn {
  display: inline-flex;        /* アイコンと文字を横並び */
  align-items: center;         /* 縦方向を中央揃え */
  gap: 0.5em;                  /* アイコンと文字の間に余白 */
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  background-color: linear-gradient(135deg, #43cea2, #185a9d);
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.create-btn ion-icon {
  font-size: 20px; /* アイコンのサイズ調整 */
  
}


.back-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background:  linear-gradient(135deg, #43cea2, #185a9d);
    color: #fefdfd;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: #aaa;
}


/* -------------------------------
   ボタンとローダー
   ------------------------------- */
.task-form button[type="submit"] {
    width: 100%;
    padding: 0.9rem;
    background:  linear-gradient(135deg, #43cea2, #185a9d);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.task-form button[type="submit"]:hover:not(:disabled) {
    background:  linear-gradient(135deg, #43cea2, #185a9d);;
}

.task-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ローダー（くるくる回転アニメーション） */
.loader {
    border: 2px solid #151515;
    border-top: 2px solid rgb(206, 237, 28);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    display: none;
}




@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
