body {
  background-color: #1f1f1f;
  color: white;
  margin: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 1.5% 10px 3%;
  z-index: 1000;
  gap: 10px;
}

.logo {
  font-weight: bold;
  font-size: 1.3rem;
  color: red;
  text-decoration: none;
}

.logo:hover {
  text-decoration: underline;
}

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

select {
  padding: 6px;
  border-radius: 5px;
  border: none;
  background-color: #222;
  color: #fff;
}

.icon {
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  background: black;
  border: 2px solid #e11d48;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  transform: scale(1);
  font-size: 14px;
}

.login-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 3px 10px rgb(210, 61, 61);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #111;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid white;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.dropbtn:hover {
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.8);
  transform: scale(1.05);
}

.dropbtn img.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #111;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
  min-width: 160px;
}

.dropdown-content form {
  margin: 0;
}

.dropdown-content input[type="submit"] {
  width: 100%;
  background: none;
  color: #fff;
  border: none;
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
}

.dropdown-content input[type="submit"]:hover {
  background-color: #333;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.left-sidebar {
  position: fixed;
  top: 70px;
  left: 0;
  width: 60px;
  height: 100%;
  background-color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding-top: 20px;
}

.left-sidebar i {
  font-size: 22px;
  cursor: pointer;
  transition: 0.3s;
}

.left-sidebar i:hover {
  transform: scale(1.2);
}

.box-section {
  position: fixed;
  top: 90px;
  right: 10px;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* khoảng cách giữa 2 khối */
}

.box-section a {
  text-decoration: none;
}

.right-sidebar {
  position: relative;
  background-color: black;
  padding: 10px 12px;
  border-radius: 10px;
  overflow: hidden;
}

.right-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 50%;
  background: linear-gradient(to bottom, red, orange);
  border-radius: 1.5px;
  z-index: 11;
}

.right-sidebar::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 3px;
  height: 50%;
  background: linear-gradient(to top, red, orange);
  border-radius: 1.5px;
  z-index: 11;
}

.right-sidebar.border-top {
  position: absolute;
  top: 0;
  right: 0;
  height: 3px;
  width: 50%;
  background: linear-gradient(to right, red, orange);
  border-radius: 1.5px;
  z-index: 11;
}

.right-sidebar.border-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 50%;
  background: linear-gradient(to right, red, orange);
  border-radius: 1.5px;
  z-index: 11;
}

.right-sidebar h3 {
  margin-top: -5px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  background: linear-gradient(to right, #ff3c3c, #ff7f50, #ffd700);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.box-decor {
  position: relative;
  background: black;
  padding: 10px 12px;
  border-radius: 10px;
  overflow: hidden;
}

.box-decor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 50%;
  background: linear-gradient(to bottom, red, orange);
  border-radius: 1.5px;
  z-index: 11;
}

.box-decor::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 3px;
  height: 50%;
  background: linear-gradient(to top, red, orange);
  border-radius: 1.5px;
  z-index: 11;
}


.box-decor h3 {
  margin-top: 0;
  margin-bottom: 3px;
  background: linear-gradient(to right, #ff3c3c, #ff7f50, #ffd700);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.follow-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 5px;
}


.follow-list::-webkit-scrollbar {
  width: 6px;
}

.follow-list::-webkit-scrollbar-thumb {
  border-radius: 5px;
}


.item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;

}


.item-link:hover .item {
  background: #333;
  transform: translateX(4px);
  text-decoration: none;
}

.item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 8px 10px;
  border-radius: 8px;
  padding: 8px;
  background-color: #111;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.item:hover {
  background-color: #2d2d2d;
  color: orange;
  transform: scale(1.075);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  text-decoration: none;
}


.main-content {
  margin-top: 0;
  margin-left: 60px;
  margin-right: 280px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background-color: black;
  padding: 15px;
  border-radius: 10px;
  transition: 0.2s;
  min-height: 250px;
  max-height: 250px;
}

.card:hover {
  background-color: #111;
  transform: translateY(-3px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.report-btn {
  background-color: #b31b1b;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: 0.2s;
}

.report-btn:hover {
  background-color: #e02b2b;
}

.card-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

.card-buttons button {
  background-color: #222;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.card-buttons button:hover {
  background-color: black;
}

.love-btn {
  color: red;
}

.save-btn {
  color: yellow;
}

.cmtBtn{
  color:white;
}

#runBtn {
  background-color: #222;
  color: rgb(252, 50, 50);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

#runBtn:hover {
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
  background: black;
  color: red;
}

.user-menu {
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 8px;
  cursor: pointer;
  font-weight: 500;
}

.user-menu:hover {
  background-color: #333;
}

.gear-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #111;
  border: 2px solid #ffffffbe;
  color: white;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
}

.report-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease-out;
}

.report-box {
  width: 380px;
  padding: 25px;
  background: #1e1e1e;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  animation: scaleIn 0.25s ease-out;
}


.report-box h3 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}


#report-reason {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  outline: none;
  font-size: 15px;
  margin-bottom: 12px;
}

#report-reason:focus {
  border-color: #00aaff;
}

#report-custom {
  width: 100%;
  min-height: 65px;
  padding: 10px;
  border-radius: 8px;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  outline: none;
  resize: vertical;
  font-size: 15px;
}

#report-custom:focus {
  border-color: #00aaff;
}


.report-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}


#cancelReport {
  padding: 8px 18px;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
}

#cancelReport:hover {
  background: #666;
}


#submitReport {
  padding: 8px 18px;
  background: #ff4d4d;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
}

#submitReport:hover {
  background: #ff6666;
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.gear-btn:hover {
  border-color: black;
  background-color: red;
  color: #000;
  transform: scale(1.3);
}

.gear-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 4%;
  }

  .navbar-center {
    order: 3;
    width: 100%;
  }

  .navbar-right {
    order: 2;
    justify-content: center;
    width: 100%;
  }

  .navbar-left {
    order: 1;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .left-sidebar,
  .right-sidebar {
    display: none;
  }

  .main-content {
    margin: 0 10px 20px 10px;
    
    grid-template-columns: 1fr;
  }
}

.card-header .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header .user-info img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid red;
}

.card-header .user-info strong {
  font-size: 0.95rem;
  color: #fff;
}

.card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff4d4d;
  margin: 10px 0 5px 0;
  border-bottom: 2px solid #ff4d4d;
  padding-bottom: 3px;
}


.card-header .user-info img:hover {
  background-color: #000;
  border-color: red;
  cursor: pointer;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.dropdown-content input[type="submit"]:hover {
  background-color: #2d2d2d;
  color: rgb(255, 255, 255);
  border-radius: 8px;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

.search-group {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  background: #111;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid #333;
}

.search-bar {
  flex: 1;
  padding: 10px 16px;
  background: #111;
  color: white;
  border: none;
  outline: none;
  font-size: 16px;
}

.search-bar::placeholder {
  color: #777;
}

.search-btn {
  height: 100%;
  padding: 0 20px;
  background: #222;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 16px;
  transition: 0.2s ease;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}

.search-btn:hover {
  background: rgb(0, 0, 0);
  color: red;
}

.search-group:focus-within {
  border-color: #ff4d4d;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.7);
}

.home-tags {
  margin: 8px 0 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-item {
  display: inline-block;
  background: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.tag-item:hover {
  background: #333;
  border-color: #666;
}


.modal-overlay {
  display: none;
  position: fixed !important;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-container {
  background-color: #1e1e1e;
  color: #e0e0e0;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: fadeIn 0.3s;
  border: 1px solid #333;
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #252525;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: #ff4d4d;
}

.close-modal {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #fff;
}

.modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.accordion-card {
  background-color: #2d2d2d;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #3e3e3e;
  overflow: hidden;
}

.accordion-header {
  padding: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.accordion-header:hover {
  background-color: #383838;
}

.accordion-header h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
}


.accordion-content {
  display: none;
  padding: 15px;
  border-top: 1px solid #3e3e3e;
  background-color: #252525;
  font-size: 14px;
  line-height: 1.6;
}

.accordion-content ul {
  padding-left: 20px;
  margin: 0;
}

.accordion-content li {
  margin-bottom: 8px;
}

.accordion-card.active .accordion-content {
  display: block;
}

.accordion-card.active .accordion-header i {
  transform: rotate(180deg);

}

.example-box {
  background: #333;
  padding: 10px;
  border-left: 3px solid #ff4d4d;
  font-style: italic;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pagination-container {
  white-space: nowrap;
  justify-content: center;
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 10px 0;
  font-style: Nunito, sans-serif;
  color: #ccc;

}

.pagination-container p {
  font-size: 0.9em;
  color: #aaa;
  margin: 0;
}

.pagination-links {
  display: flex;
  gap: 8px;
  margin: 0px auto;
}

.page-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  text-decoration: none;
  color: #ccc;
  background-color: #222;
  border: 1px solid #555;
  border-radius: 6px;
  font-size: 0.95em;
  transition: all 0.2s ease;
}

.page-link:hover:not(.active) {
  color: #fff;
  background-color: #444;
  border-color: #666;
  cursor: pointer;
}

.page-link.active {
  color: #fff;
  background-color: #e63946;
  border-color: #e63946;
  font-weight: bold;
  pointer-events: none;
}

.page-link i {
  font-size: 16px;
}