body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
}

.header {
  background-color: #004085;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.header img {
  height: 50px;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.5));
}

.header-title {
  display: flex;
  align-items: center;
  cursor:pointer;
}

.header-title h1 {
  margin: 0;
  font-size: 1.5em;
  margin-left: 10px;
  color: white;
}

.nav {
  display: flex;
  align-items: center;
}
.nav a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  position: relative;
}
.nav a:hover {
  background-color: #0056b3;
}
.dropdown-content {
  display: none;
  margin-top:5px;
  position: absolute;
  background-color: rgba(240, 240, 240, 0.9); /* 투명한 회색 */
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  left: 0; /* 헤더의 아래경계선에 딱 맞게 시작 */
}
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover {
  background-color: #007bff;
  color: white; /* 글자색 변경 */
}
.nav-item:hover .dropdown-content {
  display: block;
}
.nav-item {
  position: relative;
}

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

.filters, .actions {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.filters label, .filters input, .filters select, .filters button {
  margin-right: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background-color: #fff;
}

.filters input[type="date"] {
  background-size: 20px 20px;
  padding-right: 30px;
}

.filters button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.filters button:hover {
  background-color: #0056b3;
}

.content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.content h2 {
  color: #007bff;
}

.content .total-count {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.content table, .content th, .content td {
  border: 1px solid #ddd;
}

.content th, .content td {
  padding: 10px;
  text-align: left;
}

.content th {
  background-color: #007bff;
  color: white;
}

.content .actions button {
  padding: 5px 10px;
  border-radius: 3px;
}

.content .actions button.pay {
  background-color: #6c757d;
}

.content .actions button.delete {
  background-color: #dc3545;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
  margin-bottom: 5px;
}

.student-card {
  border: 1px solid #ddd;
  padding: 10px;
  margin: 10px;
  width: 200px;
  display: inline-block;
  vertical-align: top;
  background-color: #fff;
  border-radius: 5px;
  cursor: pointer;
  height: 200px;
  box-sizing: border-box;
  position: relative;
}
.student-card.selected {
  background-color: #ffeb3b !important;
}
.student-card.teacher {
  background-color: #e0f7fa;
}
.student-card.teacher.selected {
  background-color: #ffeb3b;
}
.student-card h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
}
.student-card p {
  margin: 5px 0;
}
.student-card .actions button {
  margin-right: 5px;
  padding: 5px 10px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 3px;
  cursor: pointer;
}
.student-card .actions button.delinquent {
  background-color: #ff0000;
}
.student-card .actions button:hover {
  background-color: #0056b3;
}

.footer {
  background-color: #f8f8f8;
  padding: 10px 0;
  text-align: center;
  border-top: 1px solid #ddd;
  position: fixed;
  width: 100%;
  bottom: 0;
}

.footer button {
  padding: 10px 20px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 3px;
  cursor: pointer;
  margin: 0 5px;
}

.footer button:hover {
  background-color: #0056b3;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  max-height: 90%;
  box-sizing: border-box;
}

.popup-content h2 {
  color: #007bff;
  margin-top: 0;
  text-align: center;
}

.popup-content .form-section {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.popup-content .form-section div {
  width: 48%;
  margin-bottom: 10px;
}

.popup-content .form-section label {
  display: block;
  margin-bottom: 5px;
}

.popup-content .form-section input, .popup-content .form-section select, .popup-content .form-section textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.popup-content .form-section input:focus, .popup-content .form-section select:focus, .popup-content .form-section textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.popup-content .form-section textarea {
  height: 100px;
}

.popup-content button {
  display: block;
  width: 48%;
  padding: 10px 0px;
  border: none;
  border-radius: 5px;
  margin-top: 20px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  margin-right: 10px;
}

.popup-content button:hover {
  background-color: #0056b3;
}

.popup-left, .popup-middle, .popup-right {
  flex: 1;
  padding: 10px;
}

.popup-left {
  border-right: 1px solid #ccc;
}

.popup-middle {
  border-right: 1px solid #ccc;
}

.student-list {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  max-height: 600px;
  overflow-y: auto;
}

.student-item {
  padding: 5px;
  margin: 5px 0;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
}

.student-item.hide {
  display: none;
}

.send-options, .message-details {
  margin-bottom: 20px;
}

.send-options label {
  display: block;
  margin-bottom: 10px;
}

#selectedStudentsContainer {
  height: 400px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  max-height: 600px;
  overflow-y: auto;
}

.message-details label {
  display: block;
  margin-bottom: 10px;
}

.message-content textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  height: 200px;
  resize: none;
}

.send-btn {
  background: #28a745;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-top: 10px;
}

.send-btn i {
  margin-right: 5px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

.example-messages {
  padding: 10px;
  max-height: 600px;
  overflow-y: auto;
}

.example-message {
  margin-bottom: 20px;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
}

.apply-btn {
  background: #007bff;
  color: #fff;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  margin-top: 10px;
}

.apply-btn:hover {
  background: #0056b3;
}

.close-btn {
  float: right;
  font-size: 20px;
  cursor: pointer;
}

.fa-icon {
  margin-right: 10px;
}

/* #studentForm {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
} */

#studentForm .form-row {
  width: calc(50% - 10px);
  margin-bottom: 10px;
}

.filters, .actions {
  margin-bottom: 20px;
}
.filters select, .filters input, .filters button {
  margin-right: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background-color: #fff;
}
.filters input[type="date"] {
  background-size: 20px 20px;
  padding-right: 30px;
}
.filters button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}
.filters button:hover {
  background-color: #0056b3;
}
.footer {
  background-color: #f8f8f8;
  padding: 10px 0;
  text-align: center;
  border-top: 1px solid #ddd;
  position: fixed;
  width: 100%;
  bottom: 0;
}
.footer button {
  padding: 10px 20px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 3px;
  cursor: pointer;
  margin: 0 5px;
}
.footer button:hover {
  background-color: #0056b3;
}
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}
.popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  width: 90%;
  max-width: 1200px;
}
.popup-content h2 {
  margin-top: 0;
  color: #007bff;
}
.popup-content .form-section {
  margin-bottom: 20px;
}
.popup-content .form-section h3 {
  margin-bottom: 10px;
  color: #007bff;
}
.popup-content .form-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.popup-content .form-row label {
  flex: 1;
  margin-right: 10px;
}
.popup-content .form-row input, .popup-content .form-row select, .popup-content .form-row textarea {
  flex: 3;
  padding: 8px;
  margin-right: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background-color: #f9f9f9;
}
.popup-content .form-row input:focus, .popup-content .form-row select:focus, .popup-content .form-row textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.popup-content .form-row textarea {
  height: 100px;
}

.page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  text-align: center;
}

.logo img {
  width: 200px;
  margin-bottom: 20px;
}

.login-form {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.login-form input {
  display: block;
  width: 90%;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.login-form button {
  width: 100%;
  padding: 15px;
  background-color: #007bff;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.login-form button:hover {
  background-color: #0056b3;
}

.password-reset {
  display: none;
}

.student-card.attendance {
  border: 8px solid #FFCC99;
}

.student-card.leave {
  background-color: #f0f0f0; /* 하원 시 연한 회색 배경 */
}
.form-row input[readonly] {
  background-color: #ffeb3b; /* 노란색 배경 */
  color: #000; /* 글자 색 */
  border: 1px solid #ccc; /* 테두리 색 */
}
.form-section input[readonly] {
  background-color: #ffeb3b; /* 노란색 배경 */
  color: #000; /* 글자 색 */
  border: 1px solid #ccc; /* 테두리 색 */
}

#payment-total,
#payment-agree,
#payment-cancel {
  width: 30%;
}

#payment-total,
#payment-agree {
  margin-right: 20px;
}

@media (max-width: 899px) {
  #payment-total,
  #payment-agree,
  #payment-cancel {
    width: 100%;
    margin-bottom: 10px;
    margin-right: 0;
  }
}
.head_text {
  margin: 0;
  margin-right: 5px;
}
#eventDescription {
  height: 200px;
}