body {
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2d3748;
  min-height: 100vh;
}

.navbar-custom {
  background-color: #2b6cb0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.2rem;
  color: white !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: #e2e8f0 !important;
}

.container {
  max-width: 1000px;
  margin: 80px auto 20px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table-container {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: white;
  border: none;
}

tbody tr {
  transition: background-color 0.2s ease;
  border-bottom: 2px solid #cbd5e0;
}

tbody tr:first-child td {
  border-top: none;
}

td {
  padding: 12px;
  border-bottom: 2px solid #cbd5e0;
  background-color: white;
  border-top: none;
}

td[contenteditable="true"] {
  outline: none;
  transition: background-color 0.2s ease;
}

td[contenteditable="true"]:focus {
  background-color: #f7fafc;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn i {
  font-size: 1rem;
}

.filter-container-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.filter-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-container label {
  font-size: 0.9rem;
  color: #4a5568;
  margin: 0;
}

.form-select {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.9rem;
  color: #2d3748;
  background-color: white;
  transition: border-color 0.2s ease;
}

.form-select:focus {
  border-color: #4299e1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

#selectedTime {
  font-size: 0.9rem;
  color: #2d3748;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background-color: white;
  min-width: 120px;
  text-align: center;
}

.download-link-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background-color: #f7fafc;
  border-radius: 6px;
  margin-bottom: 8px;
}

.download-link-wrapper a {
  color: #2b6cb0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.download-link-wrapper a:hover {
  color: #2c5282;
  text-decoration: underline;
}

.delete-link-btn {
  color: #e53e3e;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.delete-link-btn:hover {
  background-color: #fff5f5;
}

@media (max-width: 768px) {
  .container {
    margin: 70px 10px 20px;
    padding: 15px;
  }

  .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .filter-container-wrapper {
    bottom: 10px;
    right: 10px;
    padding: 8px 12px;
  }

  .filter-container label {
    font-size: 0.8rem;
  }

  .form-select, #selectedTime {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  td {
    padding: 10px;
    border-bottom: 2px solid #cbd5e0;
  }

  tbody tr {
    border-bottom: 2px solid #cbd5e0;
  }

  tbody tr.selected {
    border-bottom: 2px solid #3182ce;
  }
}

.emoji-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 1.2rem;
}

.emoji-tooltip .tooltip-text {
    visibility: hidden;
    width: auto;
    background-color: #2d3748;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 데스크톱에서는 호버링으로 표시 */
@media (hover: hover) {
    .emoji-tooltip:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }
}

/* 모바일에서는 active 클래스로 표시 */
.emoji-tooltip.active .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.emoji-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #2d3748 transparent;
}
