/* =========================
   PRACTICE LAB
========================= */

body {
  margin: 0;
  background: #0b0b0b;
  color: #f3efe7;
}


/* MAIN */

.practice-app {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 40px 20px;

  box-sizing: border-box;
}


/* LOGIN CARD */

.login-card {
  width: 100%;
  max-width: 520px;

  padding: 54px 46px;

  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.035);

  border: 1px solid rgba(255, 255, 255, 0.16);

  backdrop-filter: blur(10px);

  text-align: center;
}


/* SMALL TITLE */

.eyebrow {
  margin: 0 0 18px;

  font-size: 14px;
  font-weight: 500;

  letter-spacing: 0.25em;

  color: #aaa;
}


/* MAIN TITLE */

.login-card h1 {
  margin: 0 0 22px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 46px;
  font-weight: 400;

  line-height: 1.15;

  color: #f3efe7;
}


/* DESCRIPTION */

.login-intro {
  margin: 0 0 36px;

  font-size: 16px;

  line-height: 1.9;

  color: #bbb;
}


/* FORM */

.login-form {
  display: flex;

  flex-direction: column;

  text-align: left;

  gap: 10px;
}


/* LABEL */

.login-form label {
  margin-top: 7px;

  font-size: 15px;

  color: #d8d3c9;
}


/* INPUT */

.login-form input {
  width: 100%;

  box-sizing: border-box;

  padding: 17px 16px;

  margin-bottom: 8px;

  background: rgba(255, 255, 255, 0.07);

  color: white;

  border: 1px solid rgba(255, 255, 255, 0.22);

  font-size: 18px;

  outline: none;

  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}


.login-form input::placeholder {
  color: #777;
}


.login-form input:focus {
  border-color: #c8b892;

  background: rgba(255, 255, 255, 0.1);
}


/* LOGIN BUTTON */

.login-form button {
  width: 100%;

  margin-top: 12px;

  padding: 17px;

  background: transparent;

  color: #f3efe7;

  border: 1px solid #c8b892;

  font-size: 16px;

  letter-spacing: 0.18em;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}


.login-form button:hover {
  background: #c8b892;

  color: #111;

  transform: translateY(-1px);
}


/* SIGN UP */

.signup-link {
  margin: 28px 0 0;

  font-size: 16px;

  color: #999;
}


.signup-link a {
  color: #d8c89f;

  text-decoration: none;

  border-bottom: 1px solid transparent;

  transition: border-color 0.25s ease;
}


.signup-link a:hover {
  border-bottom-color: #d8c89f;
}


/* BACK HOME */

.back-home {
  display: inline-block;

  margin-top: 30px;

  font-size: 15px;

  color: #aaa;

  text-decoration: none;

  transition: color 0.25s ease;
}


.back-home:hover {
  color: white;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .practice-app {
    padding: 24px 16px;
  }

  .login-card {
    max-width: 100%;

    padding: 38px 24px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .login-card h1 {
    font-size: 36px;
  }

  .login-intro {
    font-size: 16px;
  }

  .login-form label {
    font-size: 14px;
  }

  .login-form input {
    font-size: 16px;

    padding: 16px 14px;
  }

  .login-form button {
    font-size: 15px;

    padding: 16px;
  }

  .signup-link {
    font-size: 14px;
  }

  .back-home {
    font-size: 14px;
  }

}


.practice-dashboard {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 40px 20px;
}

.practice-dashboard h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.practice-intro {
  margin-bottom: 30px;
  color: #d8d2c8;
}

.calendar {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.calendar-header h2 {
  margin: 0;
  font-size: 28px;
}

.calendar-header button {
  background: transparent;
  color: #f3efe7;
  border: 1px solid #c8b892;
  padding: 8px 14px;
  cursor: pointer;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  min-height: 350px;
}







.calendar-day {
  min-height: 60px;
  padding: 10px 0;
  box-sizing: border-box;

  display: flex;
  justify-content: center;
  align-items: flex-start;
}









.time-select {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.time-select select {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
}

.time-select span {
  font-size: 22px;
  text-align: center;
}






.entry-panel {
  margin-top: 42px;
  padding-bottom: 60px;
}

.entry-panel > h2 {
  font-size: 32px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}


/* =========================
   Practice / Event cards
========================= */

.practice-section,
.event-section {
  margin-top: 28px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 4px;
}

.practice-section h3,
.event-section h3 {
  font-size: 28px;
  margin: 0 0 26px;
}

.practice-section h4,
.event-section h4 {
  font-size: 20px;
  margin: 0 0 14px;
}


/* =========================
   Forms
========================= */

.practice-section form,
.event-section form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.practice-section label,
.event-section label {
  font-size: 17px;
  font-weight: 600;
  margin-top: 10px;
}

.practice-section input,
.practice-section textarea,
.event-section input,
.event-section textarea,
.event-section select {
  width: 100%;
  box-sizing: border-box;

  font-size: 17px;
  line-height: 1.5;

  padding: 14px 16px;

  color: #f3efe7;
  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.18);

  outline: none;
}

.practice-section textarea,
.event-section textarea {
  min-height: 110px;
  resize: vertical;
}

.practice-section input:focus,
.practice-section textarea:focus,
.event-section input:focus,
.event-section textarea:focus,
.event-section select:focus {
  border-color: #c8b892;
}


/* =========================
   Buttons
========================= */

.practice-section button,
.event-section button {
  width: 100%;

  margin-top: 18px;
  padding: 15px 18px;

  font-size: 16px;
  letter-spacing: 0.12em;

  color: #f3efe7;
  background: transparent;

  border: 1px solid #c8b892;

  cursor: pointer;
}

.practice-section button:hover,
.event-section button:hover {
  background: rgba(200, 184, 146, 0.12);
}


/* =========================
   Lists
========================= */

.daily-list {
  margin-top: 30px;
  padding-top: 24px;

  border-top: 1px solid rgba(255, 255, 255, 0.12);
}


/* =========================
   Desktop width
========================= */

.entry-panel {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================
   Mobile
========================= */

@media (max-width: 768px) {

  .entry-panel > h2 {
    font-size: 26px;
  }

  .practice-section,
  .event-section {
    padding: 22px 18px;
  }

  .practice-section h3,
  .event-section h3 {
    font-size: 24px;
  }

  .practice-section label,
  .event-section label {
    font-size: 16px;
  }

  .practice-section input,
  .practice-section textarea,
  .event-section input,
  .event-section textarea,
  .event-section select {
    font-size: 16px;
    padding: 13px 14px;
  }
}





.calendar-day {
  transition: 0.2s ease;
  border: 1px solid transparent;
  border-radius: 6px;
}

.calendar-day:hover {
  background: rgba(200, 184, 146, 0.08);
}

.calendar-day.selected {
  background: rgba(200, 184, 146, 0.18);
  border-color: #c8b892;
  box-shadow: 0 0 12px rgba(200, 184, 146, 0.22);
}
















/* ===== FINAL PRACTICE LAB ALIGNMENT ===== */

.practice-app {
    width: 100%;
    margin: 0;
    padding: 0;
}

.practice-dashboard {
    box-sizing: border-box;
    width: 900px;
    max-width: calc(100% - 40px);
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px;
    padding-right: 20px;
}

/* 上部3つの文字 */
.practice-dashboard > .eyebrow,
.practice-dashboard > h1,
.practice-dashboard > .practice-intro {
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
}

/* ログアウト */
#logout-button {
    display: block !important;
    width: fit-content !important;
    margin: 16px auto 24px !important;
    padding: 6px 14px !important;
    font-size: 18px !important;
    cursor: pointer;
}

/* カレンダーも同じ中央軸 */
.calendar {
    box-sizing: border-box;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}




/* =========================
   Daily Modal
========================= */

.daily-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.75);
  padding: 20px;
}

.daily-modal[hidden] {
  display: none;
}

.daily-modal-content {
  position: relative;

  width: min(600px, 100%);
  max-height: 80vh;
  overflow-y: auto;

  background: #111;
  border: 1px solid #fff;

  padding: 32px;

  color: #fff;
}

.daily-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;

  background: none;
  border: none;

  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.daily-modal-content h2 {
  margin-top: 8px;
  margin-bottom: 30px;
}

.daily-modal-content h3 {
  margin-top: 28px;
  padding-bottom: 8px;

  border-bottom: 1px solid #555;

  font-size: 13px;
  letter-spacing: 0.15em;
}

.daily-modal-entry {
  padding: 18px 0;
  border-bottom: 1px solid #333;
}

.daily-modal-entry h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

.daily-modal-entry p {
  margin: 6px 0;
}

.daily-modal-label {
  margin-top: 18px !important;

  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: 0.6;
}




.daily-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(0, 0, 0, 0.8) !important;
  padding: 20px;
  box-sizing: border-box;
}

.daily-modal[hidden] {
  display: none !important;
}

.daily-modal-content {
  position: relative;
  width: min(600px, 90vw);
  max-height: 80vh;
  overflow-y: auto;

  background: #111;
  border: 1px solid #fff;
  padding: 32px;
  box-sizing: border-box;
}
















/* =========================
   PRACTICE LAB MOBILE FINAL
========================= */

@media (max-width: 768px) {

  /* 全体 */
  .practice-app {
    width: 100%;
    padding: 0;
    overflow-x: hidden;
  }

  .practice-dashboard {
    width: 100%;
    max-width: 100%;
    padding: 28px 14px 50px;
    box-sizing: border-box;
  }


  /* Header */
  .practice-dashboard > .eyebrow {
    font-size: 11px;
    letter-spacing: 0.2em;
  }

  .practice-dashboard > h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  .practice-intro {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  #logout-button {
    font-size: 14px !important;
    margin: 12px auto 22px !important;
  }


  /* Calendar */
  .calendar {
    width: 100% !important;
    padding: 14px 8px;
    box-sizing: border-box;
  }

  .calendar-header {
    margin-bottom: 18px;
  }

  .calendar-header h2 {
    font-size: 20px;
  }

  .calendar-header button {
    padding: 6px 10px;
    font-size: 14px;
  }

  .calendar-weekdays {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    font-size: 11px;
    margin-bottom: 6px;
  }

  .calendar-days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    min-height: 0;
  }

  .calendar-day {
    min-width: 0;
    min-height: 58px;

    padding: 6px 2px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    overflow: hidden;

    font-size: 12px;
  }


  /* カレンダー内の記録 */
  .calendar-entry {
    width: 100%;
    min-width: 0;

    margin-top: 3px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 9px;
    line-height: 1.3;

    text-align: center;
  }


  /*
    スマホではカレンダー内の削除ボタンを隠す。
    記録自体は消さない。
  */
  .calendar-entry button {
    display: none;
  }


  /* Entry panel */
  .entry-panel {
    margin-top: 30px;
    padding-bottom: 30px;
  }

  .entry-panel > h2 {
    font-size: 23px;
    margin-bottom: 20px;
  }

  .practice-section,
  .event-section {
    margin-top: 20px;
    padding: 20px 14px;
  }

  .practice-section h3,
  .event-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
  }


  /* Forms */
  .practice-section input,
  .practice-section textarea,
  .event-section input,
  .event-section textarea,
  .event-section select {
    width: 100%;
    min-width: 0;

    font-size: 16px;

    box-sizing: border-box;
  }

  .time-select {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }

  .time-select select {
    min-width: 0;
    padding: 13px 8px;
    font-size: 16px;
  }


  /* Daily modal */
  .daily-modal {
    padding: 14px !important;
  }

  .daily-modal-content {
    width: 100%;
    max-width: 100%;

    max-height: 85vh;

    padding: 26px 20px;
  }

  .daily-modal-content h2 {
    font-size: 23px;
    padding-right: 30px;
    margin-bottom: 24px;
  }

  .daily-modal-entry h4 {
    font-size: 17px;
  }

}
