@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Space+Grotesk:wght@300..700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
}

body {
  background-color: #fff;

  line-height: 1.6;
}

::-webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none; /* Hilangin di Firefox */
}

.container {
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 auto;
  padding: 20px;
}
.container-sub {
  max-width: 900px;
  display: grid;
  margin: 0 auto;
  padding: 20px;
}

.sub-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.container-nav-sub {
  max-width: 880px;
  width: 90%;

  margin: 0 auto;
  padding: 20px;
}

.card {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  margin-bottom: 1rem;
}

.card-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  line-height: 0.9rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  font-family: "Space Grotesk", sans-serif;
}
.header-button {
  display: flex;
  justify-content: space-between;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.first-controls {
  margin-bottom: 1rem;
}

.createdBy {
  font-weight: 400;

  color: #2f3640;
  font-family: "Space Grotesk", sans-serif;
}
.countNames {
  color: #ff5678;
  font-weight: 600;
}
.max-card,
.accordion-max {
  max-height: 400px;
  overflow-y: auto;
  transition: max-height 0.3s ease-out;
}
#resultContainer {
  transition: border-color 0.5s;
  border: 2px solid transparent;
}

.card-content {
  padding: 1rem;
}
.content-transparent {
  background-color: transparent;
  box-shadow: none;
}

.accordion {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: max-height 0.1s ease-out, padding 0.3s;
}

.accordion.active {
  max-height: 300px;
  padding: 1rem;
}

.chevron {
  display: inline-block;
  transition: transform 0.3s ease;
}

.rotate {
  transform: rotate(180deg);
}

/* Remove max-height when expanded */
.accordion-max.expand {
  max-height: none; /* Hilangin limit max-height */
}

input {
  width: 100%;
  padding: 0.6rem;

  border: 1px solid transparent;
  border-radius: 0.6rem;
  font-size: 0.7rem;
  background-color: #fff;
  appearance: none;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}

input[type="text"]:focus,
input[type="number"]:focus {
  outline: none;
}
.input-large {
  padding: 0.8rem;
}

button {
  color: #fff;
  background-color: #ff5678;
  padding: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s;
}

button:active {
  transform: scale(0.98);
}
.wrapImportButton {
  height: 100px;
  border: 2px dashed #333;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  color: #333;
  background: none;

  margin-top: 1rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  justify-content: center;
  flex-direction: column;
  gap: 0.4rem;
}
.wrapImportButton i {
  margin-inline: 5px;
  font-size: 2rem;
}
.textFile {
  font-family: "Space Grotesk", sans-serif;
}
button i {
  margin-inline: 4px;
  vertical-align: middle;
}

#resetButton,
.accordion-toggle,
.expand-toggle {
  background-color: transparent;
  background-image: none;
  width: max-content;
  color: #f44336;
  padding: 0;
  font-weight: bold;
  box-shadow: none;
}
.accordion-toggle {
  background-color: transparent;
  background-image: none;
  width: max-content;
  color: #000;
  padding: 0;
  font-weight: bold;
  box-shadow: none;
}

.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.group-result {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 20px;
}
.ph-users {
  font-size: 0.9rem;
  vertical-align: middle;
  margin-inline: 3px;
}
.numGrup {
  font-size: 14px;
}

.group-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  text-align: center;
}
.hastag-group {
  padding: 0;
}
.group-member {
  padding: 3px 8px;
  font-weight: 600;
  border-radius: 0.6rem;
  font-size: 14px;
  margin-bottom: 0.4rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}
.group {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}

.badge {
  background-color: #fff;
  color: #3a3a3c;
  padding: 6px 12px;
  border-radius: 0.6rem;

  font-size: 14px;
  display: flex;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  align-items: center;
  white-space: nowrap;
}

.badge button {
  background: none;
  border: none;
  color: red;
  font-size: 16px;
  margin-left: 6px;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
}

.result-badge {
  color: #ff5678;

  font-weight: bold;
}

.loading {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 5px solid #ff5678;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  transition: color 0.6s;
}

.input-with-icon {
  padding-left: 35px;
}
.input-icon-wrapper:focus-within .input-icon {
  color: #ff5678;
}

.ph-caret-down,
.ph-arrows-out-simple,
.ph-arrows-in-simple {
  font-size: 1rem;
  color: #333;
}

.navbar {
  background-color: transparent;
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;

  transition: background-color 0.6s ease, box-shadow 0.6s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}

.nav-container {
  display: flex;
  justify-content: space-between;

  align-items: center;
  padding: 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  font-family: "Space Grotesk", sans-serif;
  transition: color 0.3s;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: #000000;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;

  border-radius: 0.6rem;
}

.nav-links a:hover {
  color: #ff5678;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: #000;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  backdrop-filter: blur(50px);

  padding: 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 0.9rem 0.9rem;
}
.hero-image {
  width: 40%;
}
.hero-text {
  align-items: center;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  z-index: 2;
}
.content-text {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.content-text h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: xx-large;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.info {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

.info h2 {
  text-align: left;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* Updated Footer styles */
.footer {
  background: linear-gradient(50deg, #ff5678, #008793);
  padding: 40px 0;
  border-radius: 0.9rem 0.9rem 0 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: #000;
}
.footer .footLogo {
  font-family: "Space Grotesk", sans-serif;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.social-links a {
  color: #000;
  margin-right: 15px;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}
.blinking {
  animation: shake 0.5s infinite;
}

@media (max-width: 768px) {
  button {
    font-size: 0.7rem;
  }
  button i {
    font-size: 0.8rem;
    vertical-align: middle;
  }
  .card-title {
    font-size: 1rem;
  }
  .group-result {
    grid-template-columns: repeat(2, 1fr);
  }
  .container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.5rem;
    padding: 10px;
  }
  .container-sub {
    padding: 10px;
  }
  .sub-info {
    padding: 1.5rem;
  }
  .nav-links {
    position: fixed;
    left: -100%;
    top: 65px;
    flex-direction: column;
    background-color: #ff5678;
    width: 100%;
    border-radius: 0 0 0.8rem 0.8rem;

    text-align: left;
    padding: 1.8rem;
    transition: left 0.3s, box-shadow 0.3s;
  }

  .nav-links.active {
    left: 0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  }
  .navbar.scrolled {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  }

  .nav-links li {
    margin: 15px 0;

    font-weight: 600;
  }
  .nav-links a {
    color: #fff;
  }
  .nav-links a:hover {
    color: #000;
  }

  .hamburger {
    display: block;
    transform: translateX(1rem);
  }

  .navbar.active {
    background-color: #ff5678;
  }
  .logo {
    transform: translateX(-1rem);
    font-size: 1.1rem;
    font-style: italic;
  }

  .nav-container > .logo.show {
    color: #fff;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #fff;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #fff;
  }
  .hamburger.active .bar {
    transform: translateX(1rem);
  }
  .hero {
    padding: 2rem;
  }
  .hero p {
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: 3rem;
    text-align: center;
  }

  .hero p {
    font-size: 1.2rem;
  }
  .hero-content {
    flex-direction: column;
    justify-content: center;
    padding: 0;
    text-align: center;
  }

  .hero-image {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
  .sub-footer {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
