body {
  font-family: Arial, sans-serif;
  background-color: rgb(40, 40, 40);
  font-weight: bold;
  color: white;
  margin: 0;
  padding: 0;
}

/* Info bar - spostata sopra */
.info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(80, 27, 80);
  padding: 15px 25px;
  margin: 10px 20px 20px 20px;
  border-radius: 8px;
  border: 2px solid purple;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.info-bar .made-by {
  text-align: left;
  color: rgb(255, 190, 77);
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0;
  flex: 1;
}

.info-bar .update {
  color: rgb(255, 190, 77);
  font-weight: bold;
  font-size: 1.1rem;
  text-align: right;
  margin: 0;
}

.info-bar p {
  margin: 0;
}

/* Stili per le cards */
.gear-card {
  background-color: rgb(40, 40, 40);
  border: 2px solid purple;
  color: white;
  height: 100%;
  transition: transform 0.2s;
}

.gear-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(128, 0, 128, 0.3);
}

.gear-card .card-header {
  background-color: rgb(80, 27, 80);
  color: white;
  border-bottom: 2px solid purple;
  padding: 12px;
}

.gear-card .card-body {
  padding: 16px;
}

.gear-icon {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  object-fit: cover;
}

.item-icon {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

/* Griglia per le statistiche */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background-color: rgba(80, 27, 80, 0.3);
  border-radius: 4px;
  font-size: 0.9rem;
  border-left: 3px solid purple;
}

.stat-label {
  color: #aaa;
  font-weight: normal;
}

.stat-value {
  color: rgb(255, 190, 77);
  font-weight: bold;
}

/* Stili per gli accordion items */
.item-details {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: rgba(80, 27, 80, 0.5);
  border-radius: 6px;
  transition: background-color 0.2s;
  border: 1px solid purple;
}

.item-details:hover {
  background-color: rgba(80, 27, 80, 0.9);
}

.item-details img {
  width: 30px;
  height: 30px;
  margin-right: 12px;
  object-fit: cover;
}

.item-details span {
  font-size: 0.95rem;
}

/* Accordion button style */
.accordion {
  color: white;
  font-weight: bold;
  background-color: rgb(80, 27, 80);
  cursor: pointer;
  padding: 12px;
  width: 100%;
  text-align: left;
  border: 2px solid purple;
  border-radius: 6px;
  outline: none;
  transition: all 0.3s;
  font-size: 1rem;
}

.accordion:hover {
  background-color: purple;
  border-color: rgb(255, 190, 77);
}

.accordion:focus {
  box-shadow: 0 0 0 3px rgba(128, 0, 128, 0.3);
}

/* Navigation buttons */
.nav-buttons {
  display: flex;
  justify-content: space-around;
  background-color: rgb(80, 27, 80);
  padding: 6px;
  font-weight: bold;
  flex-wrap: wrap;
}

.nav-button {
  font-weight: bold;
  flex: 1;
  border: none;
  padding: 20px;
  background-color: rgb(80, 27, 80);
  color: white;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  min-width: 120px;
}

.nav-button.active {
  background-color: purple;
  color: white;
  font-weight: bold;
  border-bottom: 3px solid rgb(255, 190, 77);
}

.nav-button:hover {
  background-color: purple;
  color: white;
  font-weight: bold;
}

.nav-buttons > *:not(:last-child) {
  border-right: 2px solid purple;
}

.separator {
  border-left: 1px solid #fff;
  height: 100%;
  margin: 0 10px;
}

/* Header styles */
.header-with-button-raid {
  display: flex;
  align-items: center;
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 2px solid purple;
}

.header-with-button-raid h2 {
  margin: 0;
  color: rgb(255, 190, 77);
  font-size: 1.8rem;
}

/* Container adjustments */
.container-fluid {
  padding: 0 20px;
}

/* List styles */
.list-unstyled {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

.list-unstyled li {
  margin-bottom: 8px;
}

/* Utility classes */
.text-warning-custom {
  color: rgb(255, 190, 77);
}

.bg-purple {
  background-color: rgb(80, 27, 80);
}

.border-purple {
  border-color: purple;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gear-card {
  animation: fadeIn 0.5s ease-out;
}

/* Stili per la scrollbar (opzionale) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgb(40, 40, 40);
}

::-webkit-scrollbar-thumb {
  background: purple;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(255, 190, 77);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-with-button-raid h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav-buttons {
    flex-direction: column;
  }

  .nav-button {
    width: 100%;
    padding: 15px;
    border-right: none !important;
    border-bottom: 1px solid purple;
  }

  .nav-buttons > *:not(:last-child) {
    border-right: none;
  }

  .separator {
    display: none;
  }

  .header-with-button-raid h2 {
    font-size: 1.3rem;
    text-align: center;
    width: 100%;
  }

  /* Responsive per info-bar */
  .info-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    margin: 10px 10px 20px 10px;
    padding: 12px 15px;
  }

  .info-bar .made-by,
  .info-bar .update {
    text-align: center;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .gear-card .card-header h5 {
    font-size: 1.1rem;
  }

  .stat-item {
    font-size: 0.85rem;
    padding: 5px 8px;
  }

  .item-details span {
    font-size: 0.85rem;
  }

  .container-fluid {
    padding: 0 10px;
  }

  .header-with-button-raid {
    padding: 10px 0;
  }

  .header-with-button-raid h2 {
    font-size: 1.1rem;
  }

  .info-bar {
    margin: 5px 5px 15px 5px;
    padding: 10px;
  }

  .info-bar .made-by,
  .info-bar .update {
    font-size: 0.9rem;
  }
}

/* Manteniamo alcuni stili originali che potrebbero servire per altre pagine */
.made-by-me {
  text-align: center;
  color: rgb(255, 190, 77);
  font-weight: bold;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  background-color: rgb(40, 40, 40);
  border: 1px solid #ddd;
  padding: 8px;
}

th {
  text-align: left;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* item search bar*/
.header-container {
  margin: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  background-color: rgb(40, 40, 40);
}

.search-bar {
  display: flex;
  align-items: center;
}

#searchBar {
  padding: 5px;
  font-size: 16px;
  border: 1px solid rgb(80, 80, 80);
  border-radius: 4px;
  margin-right: 10px;
}

#searchButton {
  padding: 6px 12px;
  font-size: 16px;
  background-color: rgb(80, 27, 80);
  color: rgb(80, 80, 80);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: white;
  font-weight: bold;
}

#searchButton:hover {
  background-color: purple;
}

.item-id img,
.raid-id img,
.spacetime-id img,
.redeemer-id img {
  width: 50px;
  height: 50px;
}

.item-id,
.raid-id,
.spacetime-id,
.redeemer-id {
  width: 50px;
}

table thead th {
  position: sticky;
  top: 0;
  background-color: rgb(80, 27, 80);
  z-index: 1;
  color: white;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.tuning-button {
  background-color: green;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  margin-left: 10px;
  font-weight: bold;
  vertical-align: middle;
}

.surplus-button {
  background-color: darkred;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  margin-left: 10px;
  font-weight: bold;
  vertical-align: middle;
}
.advance-button {
  background-color: rgb(32, 146, 93);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  margin-left: auto;
  font-weight: bold;
  vertical-align: middle;
}

.tuning-button:hover,
.surplus-button:hover,
.advance-button:hover {
  background-color: purple;
}

.header-with-button {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.tabella-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.box-scroll {
  font-size: 15px;
  background-color: rgb(80, 27, 80);
  color: white;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-width: 2px;
  border-style: solid;
  border-color: purple;
  border-radius: 10px;
  align-items: center;
  text-align: center;
}

.pic-3 {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 22px;
}

.panel-scroll {
  display: none;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid black;
  margin-top: 10px;
}

.accordion-scroll {
  background-color: purple;
  color: white;
  font-weight: bold;
  cursor: pointer;
  padding: 10px;
  border: none;
  text-align: center;
  width: 100%;
  transition: 0.4s;
  margin-top: 5px;
}

.accordion-scroll:hover {
  background-color: rgb(255, 190, 77);
  color: black;
}

.icon-title {
  width: 40px;
  height: 40px;
  vertical-align: middle;
  margin-right: 8px;
}

.stat-scroll-up {
  color: greenyellow;
}
.stat-scroll-down {
  color: red;
}

.stat-scroll-drop {
  color: rgb(255, 190, 77);
}

.intestazione {
  display: flex;
  flex-direction: row;
  text-align: center;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 20px;
}
.int-sinistra {
  flex: 1;
  margin-top: 3px;
}
.int-centro {
  background: linear-gradient(
    to right,
    rgb(70, 143, 58) 25%,
    rgb(66, 125, 231) 25% 50%,
    rgb(178, 94, 198) 50% 75%,
    rgb(205, 87, 69) 75% 100%
  );
  border-width: 3px;
  border-style: solid;
  border-radius: 5px;
  border-color: rgb(255, 190, 77);
  flex: 1;
}
.int-destra {
  flex: 1;
  margin-top: 3px;
}
.titolo {
  color: rgb(10, 10, 10);
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: underline;
}
.tabella {
  margin-top: 50px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  column-gap: 12px;
  row-gap: 12px;
}

.riquadro-green {
  background-color: rgb(70, 143, 58);
}
.riquadro-blue {
  background-color: rgb(66, 125, 231);
}
.riquadro-purple {
  background-color: rgb(178, 94, 198);
}
.riquadro-orange {
  background-color: rgb(205, 87, 69);
}
.riquadro-green,
.riquadro-blue,
.riquadro-purple,
.riquadro-orange {
  border-width: 3px;
  border-style: solid;
  border-color: rgb(255, 190, 77);
  border-radius: 5px;
  padding-top: 3px;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 3px;
}
.box-pic {
  display: flex;
  flex-direction: row;
  text-align: center;
  justify-content: center;
}
.testo-nome,
.testo-statistics {
  color: rgb(10, 10, 10);
  font-weight: bold;
  font-size: 15px;
  text-align: left;
  padding: 4px;
  text-align: center;
}
.box-statistics-green,
.box-cost-green {
  background-color: rgb(70, 143, 58);
}
.box-statistics-blue,
.box-cost-blue {
  background-color: rgb(66, 125, 231);
}
.box-statistics-purple,
.box-cost-purple {
  background-color: rgb(178, 94, 198);
}
.box-cost-orange,
.box-statistics-orange {
  background-color: rgb(205, 87, 69);
}

.box-statistics-green,
.box-statistics-blue,
.box-statistics-purple,
.box-statistics-orange {
  color: rgb(10, 10, 10);
  font-weight: bold;
  font-size: 15px;
  border-width: 3px;
  border-style: solid;
  border-color: rgb(255, 190, 77);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 2px;
  padding-left: 4px;
  padding-right: 4px;
  padding-bottom: 4px;
  margin-top: 4px;
  margin-bottom: 4px;
}
.box-cost-green,
.box-cost-blue,
.box-cost-purple,
.box-cost-orange {
  color: rgb(10, 10, 10);
  font-weight: bold;
  font-size: 15px;
  border-width: 3px;
  border-style: solid;
  border-color: rgb(255, 190, 77);
  display: flex;
  flex-direction: row;
  padding: 10px;
}
.testo-costo-upgrade {
  margin-left: 30px;
}
.box-container {
  padding: 10px;
  border-width: 2px;
  border-style: solid;
  border-color: purple;
  border-radius: 10px;
  background-color: rgb(80, 27, 80);
  margin-bottom: 40px;
}
/* Note section */
.note-section {
  background-color: rgb(80, 27, 80);
  border: 2px solid purple;
  border-radius: 8px;
  padding: 15px 20px;
  margin: 30px 0 20px 0;
  color: rgb(255, 190, 77);
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.note-section p {
  margin: 0;
}

/* Spaziatura tra le sezioni */
.mb-5 {
  margin-bottom: 3rem !important;
}

/* Migliorie per mobile */
@media (max-width: 768px) {
  .note-section {
    font-size: 0.85rem;
    padding: 12px 15px;
    margin: 20px 0 15px 0;
  }
}

@media (max-width: 576px) {
  .note-section {
    font-size: 0.8rem;
    padding: 10px 12px;
  }
}
/* Rhod Cards specific styles */
.rhod-card .card-header {
  font-size: 0.9rem;
  padding: 10px;
}

.rhod-card .card-header h6 {
  font-size: 0.9rem;
  line-height: 1.2;
}

.rhod-card .stats-grid {
  grid-template-columns: 1fr;
  gap: 6px;
}

.rhod-card .stat-item {
  padding: 4px 8px;
  font-size: 0.85rem;
}

/* Note sections */
.note-section {
  background-color: rgb(80, 27, 80);
  border: 2px solid purple;
  border-radius: 8px;
  padding: 15px;
  color: white;
}

.gem-details,
.dismantle-details {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 10px;
  font-size: 0.9rem;
}

.gem-details p,
.dismantle-details p {
  margin-bottom: 5px;
  color: rgb(255, 190, 77);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .rhod-card .card-header h6 {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .note-section {
    font-size: 0.9rem;
    padding: 12px;
  }

  .gem-details,
  .dismantle-details {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .rhod-card .card-header {
    padding: 8px;
  }

  .rhod-card .card-header h6 {
    font-size: 0.8rem;
  }

  .note-section {
    font-size: 0.85rem;
    padding: 10px;
  }

  .gem-details,
  .dismantle-details {
    font-size: 0.8rem;
    padding: 8px;
  }
}
/* Scroll Cards specific styles */
.scroll-card .card-header {
  background-color: rgb(80, 27, 80);
  padding: 10px;
}

.scroll-card .card-header h5 {
  font-size: 1rem;
}

.best-choice-badge {
  background-color: rgb(255, 190, 77);
  color: black;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 5px;
}

.alternative-badge {
  background-color: purple;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 5px;
}

.scroll-details {
  background-color: rgba(80, 27, 80, 0.5);
  border-radius: 6px;
  padding: 10px;
  border: 1px solid purple;
}

.stat-up {
  color: rgb(144, 238, 144);
  font-weight: bold;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.stat-down {
  color: rgb(255, 99, 71);
  font-weight: bold;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.stat-drop {
  color: rgb(255, 190, 77);
  font-weight: bold;
  margin-top: 5px;
  font-size: 0.9rem;
  border-top: 1px solid purple;
  padding-top: 5px;
}

.section-title {
  color: rgb(255, 190, 77);
  font-size: 1.5rem;
  border-bottom: 2px solid purple;
  padding-bottom: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.2rem;
  }

  .scroll-card .card-header h5 {
    font-size: 0.9rem;
  }

  .best-choice-badge,
  .alternative-badge {
    font-size: 0.8rem;
  }

  .stat-up,
  .stat-down,
  .stat-drop {
    font-size: 0.8rem;
  }
}
/* Stili per i pulsanti toggle delle sezioni raid */
.raid-section {
  background-color: rgba(80, 27, 80, 0.2);
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.raid-section:hover {
  background-color: rgba(80, 27, 80, 0.3);
}

.toggle-section {
  background-color: rgb(80, 27, 80) !important;
  color: rgb(255, 190, 77) !important;
  border: 2px solid purple !important;
  font-weight: bold !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
  min-width: 100px;
}

.toggle-section:hover {
  background-color: purple !important;
  color: white !important;
  border-color: rgb(255, 190, 77) !important;
}

.toggle-section .toggle-icon {
  margin-left: 8px;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.toggle-section[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

/* Animazione per il collapse */
.collapse {
  transition: all 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-with-button-raid {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }

  .toggle-section {
    width: 100%;
    padding: 12px !important;
  }

  .raid-section {
    padding: 12px;
  }
}

@media (max-width: 576px) {
  .toggle-section {
    font-size: 0.9rem;
    padding: 10px !important;
  }
}
