/* Letakkan kode ini di /css/style.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");

body {
  font-family: "Inter", sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Inputs */
.input-dark {
  background-color: #1e293b;
  border: 1px solid #334155;
  color: white;
}
.input-dark:focus {
  outline: none;
  border-color: #818cf8;
}

/* --- FITUR BARU --- */

/* Tags */
.tag-link {
  color: #818cf8;
  cursor: pointer;
  font-weight: 600;
}
.tag-link:hover {
  text-decoration: underline;
  color: #a5b4fc;
}
.tag-pill {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.tag-pill:hover {
  background: rgba(99, 102, 241, 0.4);
}

/* Spoiler */
.spoiler {
  background-color: #334155;
  color: #334155;
  cursor: pointer;
  border-radius: 4px;
  padding: 0 4px;
  user-select: none;
}
.spoiler:hover {
  background-color: #475569;
}
.spoiler.revealed {
  background-color: transparent;
  color: #e2e8f0;
  cursor: text;
  user-select: text;
}

/* Modal */
#image-modal.active {
  display: flex;
}
#image-modal.active img {
  opacity: 1;
  transform: scale(1);
}

/* Comments */
.comment-highlight {
  background-color: rgba(99, 102, 241, 0.1);
  border: 1px solid #6366f1;
  border-radius: 0.5rem;
}
.user-mention {
  color: #f472b6;
  font-weight: bold;
  cursor: pointer;
}

/* Toggle Switch (Untuk Privacy) */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #6366f1;
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #1e293b;
}
::-webkit-scrollbar-thumb {
  background: #6366f1;
  border-radius: 4px;
}

/* Group Card */
.group-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.group-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}
