
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 0.7em;
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
}

textarea, input[type="text"], input[type="password"], input[type="email"], select {
  width: 100%;
  max-width: 500px;
  padding: 8px;
  box-sizing: border-box;
  font-size: 1em;
}

textarea {
    height: 200px;
}

button {
  width: 100%;
  max-width: 500px;
  padding: 5px;
  font-size: 1em;
  /*background-color: #007bff;*/
  background-color: #2c3e50;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
    background-color: #34495e;
    /*background-color: #007bff;*/
}

.hidden-element {
  display: none;
}

.w-100 {
  width: 100%;
}
.w-90 {
  width: 90%;
}
.w-80 {
  width: 80%;
}
.w-70 {
  width: 70%;
}
.w-60 {
  width: 60%;
}
.w-50 {
  width: 50%;
}
.w-40 {
  width: 40%;
}
.w-30 {
  width: 30%;
}
.w-20 {
  width: 20%;
}
.w-10 {
  width: 10%;
}

.nopadding {
  padding: 0px;
}

.text-align-right {
  text-align: right;
}
.text-align-left {
  text-align: left;
}
.text-align-center {
  text-align: center;
}

.app-container {
  width: 100%;
  height: 100%;
}

/* Topbar */
.topbar {
  width: 100%;
  height: 50px;
  background-color: #13121E;
  color: white;
  display: flex;
  align-items: center;
  /*padding: 0 20px;*/
  flex-shrink: 0;
  overflow: hidden;
}

.topbar-logo-img {
  height: 40px;
  width: auto;
}

.topbar button {
  background-color: transparent;
}

.profilebar {
  width: 100%;
  height: 42px;
  background-color: #13121E;
  color: white;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

/* Statusbar */
.statusbar {
  height: 30px;
  background-color: #34495e;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
}

/* Wrapper centrale */
.content-wrapper {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.sidebar {
  width: 250px;
  background-color: #2c3e50;
  color: white;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.menu-item {
  padding: 15px;
  cursor: pointer;
  border-bottom: 1px solid #34495e;
}

.menu-item:hover {
  background-color: #34495e;
}

.main-content {
  flex: 1;
  padding: 20px;
  background-color: #ecf0f1;
  overflow-y: auto;
}

.main-content-nopadding {
  flex: 1;
  padding: 0px;
  background-color: #ecf0f1;
  overflow-y: auto;
}

.content-section {
  display: none;
  height: 100%;
}
.content-section-padding {
  padding: 20px;
}

.content-section.active {
  display: block;
  height: 100%;
}

.img-profile-url-logo {
  width: 50px;
  height: auto;
}


/* Stile del modale */
.modal {
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    width: 300px;
}

.modal button {
    margin-top: 10px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal button:hover {
    background-color: #45a049;
}

.content-section div > h3 {
    background: transparent;
    position: sticky;
    top: 0;
    padding: 10px;
    z-index: 10;
}

.content-section #job_container {
    max-height: calc(100% - 100px);
    overflow-y: auto;
}
.content-section #duel_container {
    max-height: calc(100% - 100px);
    overflow-y: auto;
}
.content-section #inventory_container {
    max-height: calc(100% - 100px);
    overflow-y: auto;
}
.content-section #property_container {
    max-height: calc(100% - 100px);
    overflow-y: auto;
}
.content-section #leaderboard_container {
    max-height: calc(100% - 100px);
    overflow-y: auto;
}
.content-section #recipe_container {
    max-height: calc(100% - 100px);
    overflow-y: auto;
}

select {
    padding: 10px;
    width: 100%;
    margin-top: 15px;
}


#notifications {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /*transform: translateX(-50%);*/
    max-width: 400px;
    z-index: 1000;
}

.notification {
    display: none;
    margin-bottom: 5px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.btn-test {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
}

.btn-test:hover {
    background-color: #0b7dda;
}

.btn-action {
  width: unset;
}

.btn-leaderboard-showplayerprofile {

}

.btn-job-do {

}
.btn-duel-do {

}
.btn-hospital-do {

}
.btn-property-buy {

}
.btn-property-sell {

}
.btn-inventory-buy {

}
.btn-inventory-sell {

}
.btn-inventory-equip {

}
.btn-inventory-unequip {

}
.btn-bank-deposit {

}
.btn-bank-withdraw {

}

.vertical-align-top {
  vertical-align: top;
}

.img-item-job-1 {
  width: 70px;
  height: auto;
  border-radius: 5px;
}
.img-item-property-1 {
  width: 70px;
  height: auto;
  border-radius: 5px;
}
.img-item-inventory-1 {
  width: 70px;
  height: auto;
  border-radius: 5px;
}

.img-item-recipe {
  width: 125px;
  height: auto;
  border-radius: 5px;
}
.img-item-job {
  width: 125px;
  height: auto;
  border-radius: 5px;
}
.img-item-property {
  width: 125px;
  height: auto;
  border-radius: 5px;
}
.img-item-inventory {
  width: 125px;
  height: auto;
  border-radius: 5px;
}

.border-radius-0 {
  border-radius: 3px;
}
.border-radius-1 {
  border-radius: 5px;
}
.border-radius-2 {
  border-radius: 8px;
}

.profilebar-table {
  width: 100%;
  max-width: 500px;
}

/* Responsive layout */
@media (max-width: 600px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }

  .menu-item {
    flex: 1;
    text-align: center;
    border-bottom: none;
    border-right: 1px solid #34495e;
  }

  /* Topbar */
  .topbar {
    overflow: hidden;
  }
}
