/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #111;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Container */
.container {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
}

/* Heading */
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Search Bar */
.search-wrapper {
  display: flex;
  align-items: center;
  background-color: #f1f5f9;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 15px;
}

.search-icon,
.clear-button.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 1.4rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  color: #94a3b8;
}

#country-search {
  border: none;
  background: transparent;
  font-size: 1rem;
  width: 100%;
  outline: none;
  color: #0d1117;
  font-family: inherit;
  margin-left: 8px;
}

.clear-button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 4px;
}

.clear-button:hover {
  color: #3d38f5;
}

.clear-button.hidden {
  display: none;
}

/* Country List */
#country-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  width: 100%;
}

#country-list li {
  width: 100%;
  background: #3d38f5;
  color: white;
  font-weight: 700;
  padding: 12px;
  margin-top: 12px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(61, 56, 245, 0.3);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#country-list li:hover {
  background: #2e2ada;
}

/* Bottom Sheet */
.bottom-sheet {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: flex-end;
  align-items: flex-end;
  z-index: 1000;
}

.bottom-sheet.open {
  display: flex;
}

.bottom-sheet-content {
  background: #ffffff;
  width: 100%;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 20px 24px;
  max-height: 50%;
  overflow-y: auto;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0%);
  }
}

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

.bottom-sheet-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #222;
  cursor: pointer;
}

.close-button:hover {
  color: #000;
}

.bottom-sheet-info p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

/* Birthday Popup */
.birthday-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.birthday-popup-content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 90%;
  width: 320px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.birthday-popup-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.birthday-popup-content p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: #333;
}

.birthday-popup-content button {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 1rem;
  background: #3d38f5;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.birthday-popup-content button:hover {
  background: #2e2ada;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #111;
    color: #fff;
  }

  .container {
    background: #222;
  }

  .search-wrapper {
    background-color: #1e293b;
    border-color: #334155;
  }

  .search-icon,
  .clear-button {
    color: #cbd5e1;
  }

  #country-search {
    color: #f1f5f9;
  }

  .bottom-sheet-content {
    background: #222;
  }

  .bottom-sheet-header h2,
  .bottom-sheet-info p {
    color: #fff;
  }

  .close-button {
    color: #fff;
  }

  .clear-button:hover {
    color: #84c5f4;
  }
}
