body {
  padding: 0;
  margin: 0;
  font: 16px "Lucida Grande", Helvetica, Arial, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  padding-bottom: 80px; /* Add padding to prevent content from being hidden by the fixed button */
}

.container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

h1 {
  font-size: 2em;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  font-size: 1.2em;
  text-align: center;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-secondary {
  background-color: #6c757d;
}

.btn-danger {
  background-color: #000000; /* Black color */
  color: #ffffff; /* White text for contrast */
}

.btn-fixed-bottom {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 560px; /* Corresponds to container max-width - padding */
  margin-bottom: 0; /* Remove margin-bottom for fixed button */
}

.welcome-message {
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 20px;
}

/* Form Styles */
form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form div {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button[type="submit"],
.form-button {
  width: 100%;
  padding: 12px;
  font-size: 1.1em;
  color: #fff;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button[type="submit"]:hover,
.form-button:hover {
  background-color: #0056b3;
}

.radio-group label {
  display: inline-block;
  margin-right: 15px;
  font-weight: normal;
}

.text-center {
  text-align: center;
  margin-top: 20px;
}

/* List Styles for Dashboards and Recruit Page */
.dashboard-list {
  list-style: none;
  padding: 0;
}

.dashboard-list li {
  background: #fff;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teacher-profile-line {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Added to push button to the right */
  gap: 10px;
}

.teacher-details {
  flex-grow: 1; /* Allow details to take up available space */
}

.inline-form {
  display: inline-block;
  background: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0; /* Prevent button from shrinking */
}

.btn-small {
  padding: 5px 10px;
  font-size: 0.8em;
  width: auto; /* Override default 100% width for .btn */
  min-width: 100px; /* Set a minimum width */
  margin-bottom: 0; /* Remove margin-bottom for small buttons */
}

/* スマートフォン向けのスタイル */
@media (max-width: 600px) {
  body {
    padding-bottom: 70px; /* Adjust padding for smaller screens */
  }
  .container {
    padding: 15px;
  }
  h1 {
    font-size: 1.8em;
  }
  .btn {
    padding: 12px;
    font-size: 1.1em;
  }
  .btn-fixed-bottom {
    bottom: 15px;
    width: calc(100% - 30px);
  }
  form {
    padding: 20px;
  }
  .teacher-profile-line {
    /* flex-direction: column; */ /* Removed to keep items on one line */
    /* align-items: flex-start; */ /* Removed to keep items on one line */
  }
  .inline-form .btn-small {
    width: auto; /* Keep button width auto on small screens */
  }

  /* Chat UI Mobile Optimizations */
  .chat-container {
    max-width: 100%;
  }
  .chat-messages {
    padding: 10px;
  }
  .message {
    max-width: 80%;
  }
  .chat-form {
    padding: 5px;
  }
}

/* Chat UI Styles */
.chat-container {
  max-width: 800px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fafafa; /* Very light, warm grey */
}

.chat-header {
  padding: 15px;
  background-color: #e67e22; /* Warm, deep orange */
  color: white;
  text-align: center;
}

.chat-header h1 {
  margin: 0;
  font-size: 1.2em;
  color: white;
}

.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-wrapper {
  display: flex;
  margin-bottom: 10px;
}

.message {
  padding: 10px 15px;
  border-radius: 20px;
  max-width: 70%;
  word-wrap: break-word;
}

.sent {
  justify-content: flex-end;
}

.sent .message {
  background-color: #f39c12; /* Pleasant orange */
  color: white;
}

.received {
  justify-content: flex-start;
}

.received .message {
  background-color: #ecf0f1; /* Light, warm grey */
  color: black;
}

.chat-form {
  display: flex;
  padding: 10px;
  background-color: #f0f2f5;
  box-shadow: none;
  border-radius: 0;
}

.chat-form input {
  flex-grow: 1;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 10px 15px;
  margin-right: 10px;
}

.chat-form button {
  background-color: #e67e22; /* Warm, deep orange */
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1em;
}

.chat-form button:hover {
  background-color: #d35400; /* Darker orange on hover */
}

.text-right {
  text-align: right;
}
