/* main.css */

/* ÀüÃ¼ ±âº» ¼³Á¤ */
body {
  font-family: 'Nanum Gothic', sans-serif;
  color: #333;
  background-color: #f3f3f3;
  margin: 0;
  padding: 0;
}

/* header */
header {
  background: #003366;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}
header a {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
  font-weight: bold;
}
header a:hover {
  text-decoration: underline;
}

/* footer */
footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
}

/* top-half */
.top-half {
  background: #003366;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 200px;
  padding: 2rem 1rem;
}
.shorten-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* shorten form */
.no-bg-form {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.no-bg-form .input-group {
  background: transparent;
  width: 100%;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.no-bg-form input[type="url"] {
  flex: 1;
  padding: 1rem;
  font-size: 1rem;
  border: none;
  outline: none;
  border-radius: 0; /* ¶ó¿îµå »ó¼â: input-group¿¡¸¸ µÒ */
}
.no-bg-form button {
  background: #212121;
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
  border-radius: 0; /* input-groupÀÌ ¶ó¿îµåÀÌ¹Ç·Î ¹öÆ° °¢Áö°Ô */
}
.no-bg-form button:hover {
  background: #000;
}

/* Ä¿½ºÅÒÄÚµå, ¼³¸í */
.options-group {
  display: flex;
  width: 100%;
  gap: 10px;
  flex-wrap: wrap;
}
.options-group input {
  flex: 1;
  min-width: 120px;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* bottom-half */
.bottom-half {
  background: #fff;
  color: #333;
  min-height: 50vh;
  padding: 1rem;
  overflow-x: auto;
}
button.delete-btn {
  #background-color: #003366;
  background-color: #2f4f7a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
button.delete-btn:hover {
  #background-color: #001f4d;
  background-color: #244169;
}

.notice-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.notice-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 80%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.notice-content button {
  margin-top: 1rem;
  padding: 10px 20px;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.notice-content button:hover {
  background: #001f4d;
}

/* Ç¥ type08 */
table.type08 {
  border-collapse: collapse;
  text-align: left;
  line-height: 1.5;
  border-left: 1px solid #ccc;
  margin: 20px 10px;
  width: 100%;
  table-layout: fixed;
  border-radius: 8px;
  overflow: hidden;
}
table.type08 thead th {
  padding: 10px;
  font-weight: bold;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-bottom: 2px solid #c00;
  background: #2f4f7a;
  color: #fff;
  vertical-align: middle;
  text-align: center;
}
table.type08 td {
  padding: 10px;
  vertical-align: middle;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
table.type08 tbody td:nth-child(1),
table.type08 tbody td:nth-child(2),
table.type08 tbody td:nth-child(5),
table.type08 tbody td:nth-child(6),
table.type08 thead th:nth-child(1),
table.type08 thead th:nth-child(2),
table.type08 thead th:nth-child(5),
table.type08 thead th:nth-child(6) {
  text-align: center;
  vertical-align: middle;
}

/* checkbox */
table.type08 td:first-child,
table.type08 thead th:first-child {
  text-align: center;
  vertical-align: middle;
}
table.type08 th:first-child input[type="checkbox"],
table.type08 td:first-child input[type="checkbox"] {
  margin: 0;
  vertical-align: middle;
}

/* truncate Å¬¸¯Çü */
.truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

/* ¹ÝÀÀÇü */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .no-bg-form .input-group {
    flex-direction: column;
  }
  .no-bg-form button {
    width: 100%;
    margin-top: 5px;
    border-radius: 8px;
  }
  .options-group input {
    width: 100%;
  }
}
