/*!
    
 =========================================================
 * WebEngine CMS
 * https://webenginecms.org/
 =========================================================
 
 * Author Lautaro Angelico (https://lautaroangelico.com/)
 * Copyright (c) 2013-2020 Lautaro Angelico, All Rights Reserved
 
 * Licensed under the MIT license
 * http://opensource.org/licenses/MIT
 
 =========================================================
 .
*/
/* GUILD PROFILES */

.fixitemsview {
  padding-right: 0px !important;
  background-color: #1d1b1b;
}
.profiles_guild_card {
  width: 100%;
  background: #000000 url("../img/profiles/guild.jpg") no-repeat;
  background-size: cover;
  overflow: auto;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -khtml-border-radius: 10px;
  border: 1px solid #333;
  -moz-box-shadow: 0 0 10px #555;
  -webkit-box-shadow: 0 0 10px #555;
  box-shadow: 0 0 10px #555;
  padding: 40px;
  color: #ffffff;
  text-shadow: 1px 1px 1px #000;
}
.profiles_guild_card .guild_logo img {
  -moz-box-shadow: 0 0 10px #000;
  -webkit-box-shadow: 0 0 10px #000;
  box-shadow: 0 0 10px #000;
}
.profiles_guild_card .guild_name {
  font-family: "Cinzel", serif;
  font-size: 24px;
  color: #ffffff;
  font-weight: bold;
}
.profiles_guild_card table {
  table-layout: fixed;
}
.profiles_guild_card hr {
  border-top: 1px solid #333;
  margin-top: 30px;
  margin-bottom: 30px;
}
.profiles_guild_card .guild_members {
  font-family: "Cinzel", serif;
  font-size: 24px;
  color: #ffffff;
  font-weight: bold;
}
.profiles_guild_card .guild_members_list {
  margin-top: 30px;
}

/* PLAYER PROFILES */
.profiles_player_card {
  width: 100%;
  overflow: auto;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  -khtml-border-radius: 10px;
  border: 1px solid #333;
  -moz-box-shadow: 0 0 10px #555;
  -webkit-box-shadow: 0 0 10px #555;
  box-shadow: 0 0 10px #555;
  padding: 20px;
}

.DK.profiles_player_card,
.BK.profiles_player_card,
.BM.profiles_player_card,
.DGK.profiles_player_card {
  background: url("../img/profiles/knight.jpg") no-repeat;
  background-size: cover;
}
.DW.profiles_player_card,
.SM.profiles_player_card,
.GM.profiles_player_card,
.SW.profiles_player_card {
  background: url("../img/profiles/wiz.jpg") no-repeat;
  background-size: cover;
}
.ELF.profiles_player_card,
.ME.profiles_player_card,
.HE.profiles_player_card,
.NE.profiles_player_card {
  background: url("../img/profiles/elf.jpg") no-repeat;
  background-size: cover;
}
.SUM.profiles_player_card,
.BS.profiles_player_card,
.DSM.profiles_player_card,
.DS.profiles_player_card {
  background: url("../img/profiles/sum.jpg") no-repeat;
  background-size: cover;
}
.DL.profiles_player_card,
.LE.profiles_player_card,
.EL.profiles_player_card {
  background: url("../img/profiles/dl.jpg") no-repeat;
  background-size: cover;
}
.MG.profiles_player_card,
.DM.profiles_player_card,
.MK.profiles_player_card {
  background: url("../img/profiles/mg.jpg") no-repeat;
  background-size: cover;
}
.RF.profiles_player_card,
.FM.profiles_player_card,
.FB.profiles_player_card {
  background: url("../img/profiles/rf.jpg") no-repeat;
  background-size: cover;
}
.GL.profiles_player_card,
.ML.profiles_player_card,
.SL.profiles_player_card {
  background: url("../img/profiles/gl.jpg") no-repeat;
  background-size: cover;
}
.RW.profiles_player_card,
.RSM.profiles_player_card,
.GRM.profiles_player_card {
  background: url("../img/profiles/rw.jpg") no-repeat;
  background-size: cover;
}
.SLR.profiles_player_card,
.SLRR.profiles_player_card,
.MSLR.profiles_player_card,
.SLTR.profiles_player_card {
  background: url("../img/profiles/sl.jpg") no-repeat;
  background-size: cover;
}
.GC.profiles_player_card,
.GB.profiles_player_card,
.MGB.profiles_player_card,
.HGC.profiles_player_card {
  background: url("../img/profiles/gc.jpg") no-repeat;
  background-size: cover;
}
.LIW.profiles_player_card,
.LIM.profiles_player_card,
.SHW.profiles_player_card,
.LUW.profiles_player_card {
  background: url("../img/profiles/liw.jpg") no-repeat;
  background-size: cover;
}
.LEM.profiles_player_card,
.WAM.profiles_player_card,
.ARM.profiles_player_card,
.MYM.profiles_player_card {
  background: url("../img/profiles/lem.jpg") no-repeat;
  background-size: cover;
}
.IK.profiles_player_card,
.IMK.profiles_player_card,
.IM.profiles_player_card,
.MYK.profiles_player_card {
  background: url("../img/profiles/ik.jpg") no-repeat;
  background-size: cover;
}

.profiles_player_content {
  float: right;
  width: 50%;
  color: #fff;
}

.profiles_player_table {
  width: 100%;
}

.profiles_player_table .cname {
  font-family: "BebasNeueRegular", serif;
  text-align: center;
  font-size: 24px;
  color: #fff;
  font-weight: bold;
}

.profiles_player_table .cclass {
  text-align: center;
  font-size: 11px;
  color: #eee;
}

.profiles_player_table .isoffline {
  color: #ff0000;
}

.profiles_player_table .isonline {
  color: #00ff00;
}

.profiles_player_table_info {
  table-layout: fixed;
  margin-top: 10px;
}
.profiles_player_table_info tr td {
  padding: 3px 10px;
}
.profiles_player_table_info tr td:first-child {
  text-align: right;
}

/* ITEM TOOLTIP */
.item-box {
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  width: 100%;
  white-space: nowrap;
  min-width: 200px;
  padding-bottom: 10px;
  font-size: 12px;
  padding-bottom: 25%;
}
.item-name {
  padding: 4px 8px;
}
.item-serial {
  color: #ffffff !important;
  padding-top: 10px;
}
.item-info {
  color: #ffffff !important;
}
.item-info-section {
  padding-top: 10px;
}
.item-class-req {
  color: #b4b4b4 !important;
}
.item-opt-jog {
  color: #ff99cc !important;
  padding-top: 10px;
}
.item-opt-harmony {
  color: #ffcc00 !important;
  padding-top: 10px;
}
.item-opt-skill {
  color: #9aadd5 !important;
}
.item-opt-luck {
  color: #9aadd5 !important;
}
.item-opt-life {
  color: #9aadd5 !important;
}
.item-opt-exc {
  color: #4d668d !important;
  padding-top: 10px;
}
.item-opt-anc {
  color: #9aadd5 !important;
  padding-top: 10px;
}
.item-opt-socket {
  color: #4d668d !important;
  padding-top: 10px;
}
.item-expiration {
  color: #ff544f !important;
  padding-top: 10px;
}

/* inventory bag - UNIFIED VERSION */
.inventory-bag-grid {
  position: relative;
  width: 616px;
  height: 605px;
  background: url("../img/inv/inventory.png") no-repeat center center;
  background-size: cover;
  border: 1px solid #333;
  border-radius: 5px;
  margin: 0 auto; /* Center horizontally */
  display: block; /* Ensure block-level for margin auto */
  box-sizing: border-box;
}
.inventory-bag-grid img {
  position: absolute;
  z-index: 10;
  /* Optionally add a border or shadow for items */
}

.inventory-bag-grid_full {
  position: relative;
  width: 616px;
  height: 605px;
  background: url("../img/inv/inventory_full.png") no-repeat center center;
  background-size: cover;
  border: 1px solid #333;
  border-radius: 5px;
  margin: 0 auto; /* Center horizontally */
  display: block; /* Ensure block-level for margin auto */
  box-sizing: border-box;
}
.inventory-bag-grid_full img {
  position: absolute;
  z-index: 10;
  /* Optionally add a border or shadow for items */
}

/* Equipment positioning within unified inventory - ABSOLUTE POSITIONING */
/* Keep transform: translate(-50%, -50%); for center the item, not depend on each item's size */
/* Weapon */
.inventory-bag-grid_full .profile_item0,
.inventory-bag-grid .profile_item0 {
  position: absolute;
  left: 43px;
  top: 163px;
  transform: translate(-50%, -50%);
}
/* Shield/Book/Orb */
.inventory-bag-grid_full1,
.profile_item1,
.inventory-bag-grid .profile_item1 {
  position: absolute;
  left: 263px;
  top: 163px;
  transform: translate(-50%, -50%);
}
/* Helm */
.inventory-bag-grid_full .profile_item2,
.inventory-bag-grid .profile_item2 {
  position: absolute;
  left: 153px;
  top: 86px;
  transform: translate(-50%, -50%);
}
/* Armor */
.inventory-bag-grid_full .profile_item3,
.inventory-bag-grid .profile_item3 {
  position: absolute;
  left: 153px;
  top: 163px;
  transform: translate(-50%, -50%);
}
/* Pants */
.inventory-bag-grid_full .profile_item4,
.inventory-bag-grid .profile_item4 {
  position: absolute;
  left: 153px;
  top: 234px;
  transform: translate(-50%, -50%);
}
/* Gloves */
.inventory-bag-grid_full .profile_item5,
.inventory-bag-grid .profile_item5 {
  position: absolute;
  left: 44px;
  top: 234px;
  transform: translate(-50%, -50%);
}
/* Boots */
.inventory-bag-grid_full .profile_item6,
.inventory-bag-grid .profile_item6 {
  position: absolute;
  left: 264px;
  top: 234px;
  transform: translate(-50%, -50%);
}
/* Wings */
.inventory-bag-grid_full .profile_item7,
.inventory-bag-grid .profile_item7 {
  position: absolute;
  left: 244\px;
  top: 82px;
  transform: translate(-50%, -50%);
}
/* Pets */
.inventory-bag-grid_full .profile_item8,
.inventory-bag-grid .profile_item8 {
  position: absolute;
  left: 44px;
  top: 86px;
  transform: translate(-50%, -50%);
}
/* Pendants/Necklace */
.inventory-bag-grid_full .profile_item9,
.inventory-bag-grid .profile_item9 {
  position: absolute;
  left: 98px;
  top: 93px;
  transform: translate(-50%, -50%);
}
/* Right Ring */
.inventory-bag-grid_full .profile_item10,
.inventory-bag-grid .profile_item10 {
  position: absolute;
  left: 209px;
  top: 241px;
  transform: translate(-50%, -50%);
}
/* Left Ring */
.inventory-bag-grid_full .profile_item11,
.inventory-bag-grid .profile_item11 {
  position: absolute;
  left: 99px;
  top: 241px;
  transform: translate(-50%, -50%);
}
/* Pentagram */
.inventory-bag-grid_full .profile_item236,
.inventory-bag-grid .profile_item236 {
  position: absolute;
  left: 263px;
  top: 297px;
  transform: translate(-50%, -50%);
}
/* Pentagram Beginner */
.inventory-bag-grid .profile_item236_bg {
  position: absolute;
  left: 263px;
  top: 297px;
  transform: translate(-50%, -50%);
}
/* Right Earring */
.inventory-bag-grid_full .profile_item237,
.inventory-bag-grid .profile_item237 {
  position: absolute;
  left: 209px;
  top: 169px;
  transform: translate(-50%, -50%);
}
/* Left Earring */
.inventory-bag-grid_full .profile_item238,
.inventory-bag-grid .profile_item238 {
  position: absolute;
  left: 99px;
  top: 169px;
  transform: translate(-50%, -50%);
}
/* END OF EQUIPMENT POSITIONING */

/* Money & Ruud display position */
.inventory-bag-grid .profile_item_money,
.inventory-bag-grid_full .profile_item_money {
  position: absolute;
  font-size: smaller;
  left: 60px;
  top: 571px;
  z-index: 20;
  background: #1a1b17;
  border-radius: 6px;
  min-width: 80px;
  text-align: right;
  padding-right: 2px;
}
.inventory-bag-grid .profile_item_ruud,
.inventory-bag-grid_full .profile_item_ruud {
  position: absolute;
  font-size: smaller;
  left: 200px;
  top: 571px;
  z-index: 20;
  background: #1a1b17;
  border-radius: 6px;
  min-width: 80px;
  text-align: right;
  padding-right: 2px;
}
/* Orange value for money/ruud */
.profile_item_money span {
  color: orange;
}
.profile_item_ruud span {
  color: orange;
}
/* account wares */
.account-wares-grid {
  position: relative;
  width: 650px;
  height: 514px;
  background: url("../img/inv/ware.png") no-repeat center center;
  background-size: cover;
  border-radius: 5px;
  border: 1px solid #333;
  margin: 0 auto; /* Center horizontally */
  display: block; /* Ensure block-level for margin auto */
  box-sizing: border-box;
}
.account-wares-grid img {
  position: absolute;
  z-index: 10;
  /* Optionally add a border or shadow for items */
}

.inv-slot.highlight-slot {
  border: 2px solid #28a745 !important; /* Green for empty/valid */
  box-shadow: 0 0 8px #28a745;
  cursor: pointer;
}
.inv-slot.occupied-slot {
  border: 2px solid #dc3545 !important; /* Red for occupied */
  box-shadow: 0 0 8px #dc3545;
  cursor: not-allowed;
}
.inv-slot.selected-move-slot {
  border: 2px solid #007bff !important; /* Blue for selected */
  box-shadow: 0 0 12px #007bff;
}

.deidadbuttonfix {
  width: 150px;
  border-radius: 0px;
  height: 38px;
}
.custom-select {
  position: relative;
  font-family: Arial;
}

.custom-select input {
  float: right;
}

.custom-select select {
  display: none; /*hide original SELECT element:*/
  width: 250px;
}

.select-selected {
  background-color: DodgerBlue;
  width: 250px;
}

/*style the arrow inside the select element:*/
.select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}

/*style the items (options), including the selected item:*/
.select-items div,
.select-selected {
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
  user-select: none;
}

/*style items (options):*/
.select-items {
  position: absolute;
  background-color: DodgerBlue;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/*hide the items when the select box is closed:*/
.select-hide {
  display: none;
}

.select-items div:hover,
.same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}

:root {
  --item-color-exc: #2ff387;
  --item-color-socket-opt: #cc33cc;
  --item-color-socket: #cc66cc;
  --item-color-normal: #ffffff;
  --item-color-life-opt: #8cb0ea;
  --item-color-improved: #f4cb3f;
  --item-color-anc: #0066cc;
  --item-color-anc-setopt: #ffcc66;
  --item-color-earring-setopt: #ffcc66;
  --item-color-earring-note: #9e9ea0;
  --item-color-earring-enabled: #2ed492;
  --item-color-nocolor: #f4cb3f;
  --item-color-fenrir: #3977db;
  --item-color-fenrir-gold: #f4cb3f;
  --item-color-errtel-title: #ffffff;
  --item-color-errtel-opt: #8cb0ea;
  --item-color-errtel1: #ff0000;
  --item-color-errtel2: #3977db;
  --item-color-errtel3: #e6bf3c;
  --item-color-errtel4: #26e027;
  --item-color-errtel5: #5b1659;
  --item-tooltip-bg: #2c3e50;
}
