﻿/* General Card Styling */
.card.bg-primary {
    background-image: url('../../img/main-bg.jpg'); /* Set your image path */
    background-size: cover;         /* Cover the entire card */
    background-position: center;    /* Center the image */
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: white;                   /* Optional: improve contrast */
}

/* Profile User Box */
.profile-user-box {
    padding: 20px;
}

/* User Info Headings */
.profile-user-box h4 {
    font-weight: 600;
    font-size: 1.6rem;
    color: #ffffff;
}

/* Email/Secondary Info */
.profile-user-box .font-13 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Revenue & Orders List */
.profile-user-box ul {
    margin-top: 15px;
}

.profile-user-box ul li h5 {
    font-size: 1.2rem;
    font-weight: bold;
}

.profile-user-box ul li p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Edit Button */
.profile-user-box .btn.btn-light {
    background-color: #ffffff;
    color: #bcc5ce;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px; /* reduced from 6px */
    transition: background-color 0.3s ease;
}

.profile-user-box .btn.btn-light:hover {
    background-color: #f1f1f1;
    color: #cdcfd1;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .profile-user-box h4 {
        font-size: 1.3rem;
    }

    .profile-user-box ul li h5 {
        font-size: 1rem;
    }

    .profile-user-box ul li p {
        font-size: 0.75rem;
    }
}

/* ========== Seller Information Card ========== */
.card {
    border-radius: 6px; /* reduced from 10px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
}

.card-body {
    padding: 25px;
}

.header-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

.text-muted {
    color: #6c757d !important;
}

.text-muted strong {
    color: #495057;
}

.character-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .character-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 16px;
    width: calc(33.333% - 16px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .character-avatar {
    width: 100%;
    height: 120px;
    background-color: #ddd;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
  }
  
  .character-card h5 {
    margin-top: 10px;
    margin-bottom: 2px;
    font-size: 1.1rem;
    font-weight: bold;
  }
  
  .character-card small {
    color: #666;
  }
  
  .character-stats {
    font-size: 0.85rem;
    margin: 10px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  
  .character-info {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  
  .character-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.85rem;
  }
  
  .character-actions a {
    text-decoration: none;
    color: #007bff;
    border-right: 1px solid #ccc;
    padding: 0 6px;
  }
  
  .character-actions a:last-child {
    border-right: none;
  }
  
  .online {
    color: green;
    font-weight: bold;
  }
  
  .offline {
    color: gray;
  }

  .character-summary {
    border: 1px solid #f3f1f1;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    background-color: #fdfdfd;
    flex-shrink: 0; /* Prevent shrinking */
  }

  .character-summary h5 {
    margin: 0;
  }
  
  .character-info,
  .character-stats {
    margin-top: 8px;
  }
  
  .character-stats > div {
    display: inline-block;
    width: 80px;
  }

  h5 small {
    font-size: 0.6em;
    color: green; /* Or whatever fits your theme */
  }
  
  @media (max-width: 768px) {
    .character-card {
      width: 100%;
    }
  }

  .character-card {
    font-family: 'Inter', Tahoma; /* apply font */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex: 0 0 calc((100% - 20px) / 3);
    min-width: 340px;
    max-width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 10px;
  }

  .equipment-altq {
    display: flex;
    width: 280px;
    justify-content: space-between;
    margin-top: 10px;
    background-image: url('../../img/download-section-bg.jpg'); /* Set your image path */
    background-size: cover;         /* Cover the entire card */
    background-position: center;    /* Center the image */
    padding: 22px;
    border-radius: 6px;
    gap: 10px;
  }
  
  .equip-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    width: 30%;
  }

  .equip-column.left {
    float: left;
    z-index: 10;
  }

  .equip-column.right {
    float: right;
    z-index: 10;
  }
  
  .character-sprite {
    width: 40%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  .character-sprite {
    position: absolute;
    top: 1;
    left: 50%;
    transform: translateX(-50%);
    width: 200px; /* adjust accordingly */
    height: 200px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 0;
    pointer-events: none;
  }

  .equip-slot {
    appearance: none;
    background: rgba(255, 255, 255, 0.5); /* 50% transparent white */
    border: 1px solid rgba(204, 204, 204, 0.5); /* 50% transparent border */
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 50px;
    padding: 0;
    border-radius: 4px;
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 5px;
    cursor: pointer;
    transition: background-color 0.1s ease-in, border-color 0.1s ease-in;
    position: relative;
    /* Removed: opacity */
  }
  
  .equip-slot img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    position: relative;
    z-index: 10;
  }
  
  .equip-slot:hover {
    background-color: #f0f0f0;
    border-color: #999;
  }

  .inventory-slot small {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.45rem;
    color: #000;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.7); /* optional: for contrast */
    padding: 0 2px;
    border-radius: 2px;
  }

  .inventory-grid {
    display: grid;
    grid-template-columns: repeat(7, 40px); /* Adjust columns as you like */
    gap: 5px;
    justify-content: start;

    overflow-y: auto;
    max-height: 200px;
  }

  .inventory-slot {
    appearance: none;
    background: #fff;
    border: 1px solid #ccc;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 4px;
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background-color 0.1s ease-in, border-color 0.1s ease-in;
    position: relative;
  }
  
  .inventory-slot img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    position: relative;
    z-index: 10;
  }
  
  .inventory-slot:hover {
    background-color: #f0f0f0;
    border-color: #999;
  }
  
  .inventory-slot p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.45rem;
    margin: 0;
    z-index: 20;
    color: #000;
  }

  .broken-item {
    border: 2px solid red;
    box-shadow: 0 0 4px red;
    color: red; /* for text */
  }
  
  .empty-slot {
    background-color: #f5f5f5;
    opacity: 0.3;
  }

  .bg-storage {
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 0.75rem; /* optional, adjust as needed */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  #storageSearch {
    padding: 10px 15px;
    height: 40px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.4);
  }
  
  #storageSearch:focus {
    outline: none;
    border-color: #b3abab;
    background-color: #fff;
    box-shadow: 0 0 8px #b3abab;
  }
  
  #storageSearch::placeholder {
    color: #6c757d;
    transition: color 0.3s ease;
  }
  
  #storageSearch:focus::placeholder {
    color: #aaa;
  } 


  .storage-slot small {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.45rem;
    color: #000;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.7); /* optional: for contrast */
    padding: 0 2px;
    border-radius: 2px;
  }

  .storage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal flexible columns */
    gap: 5px;
    justify-content: start;

    overflow-y: auto;
    max-height: 400px;
  }

  .storage-slot {
    appearance: none;
    background: #fff;
    border: 1px solid #ccc;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 0;
    border-radius: 4px;
    font-size: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background-color 0.1s ease-in, border-color 0.1s ease-in;
    position: relative;
  }
  
  .storage-slot img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    position: relative;
    z-index: 10;
  }
  
  .storage-slot:hover {
    background-color: #f0f0f0;
    border-color: #999;
  }
  
  .storage-slot p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.45rem;
    margin: 0;
    z-index: 20;
    color: #000;
  }


  
  .bg-marketplace {
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 0.75rem; /* optional, adjust as needed */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  #marketplaceSearch {
    padding: 10px 15px;
    height: 40px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.4);
  }
  
  #marketplaceSearch:focus {
    outline: none;
    border-color: #b3abab;
    background-color: #fff;
    box-shadow: 0 0 8px #b3abab;
  }
  
  #marketplaceSearch::placeholder {
    color: #6c757d;
    transition: color 0.3s ease;
  }
  
  #marketplaceSearch:focus::placeholder {
    color: #aaa;
  } 


  .marketplace-slot small {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 0.75rem;
    color: #000;
    z-index: 20;
    padding: 0 2px;
    border-radius: 2px;
  }

  .marketplace-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 4 equal flexible columns */
    gap: 5px;
    justify-content: start;

    overflow-y: auto;
    max-height: 400px;
  }

  .marketplace-slot {
    appearance: none;
    background: #fff;
    border: 1px solid #ccc;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; /* Make it vertical */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 160px;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background-color 0.1s ease-in, border-color 0.1s ease-in;
    position: relative;
    text-align: center; /* Center the text below the image */
}

.marketplace-slot img {
  max-width: 60px;
  max-height: 60px;
  display: block;
  margin: 0 auto 4px auto; /* This ensures horizontal centering as a backup */
  position: relative;
  z-index: 10;
}

.marketplace-slot .item-name {
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.marketplace-slot .seller-name {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 2px;
}

.marketplace-slot .currency-price {
    font-size: 0.7rem;
    color: #333;
}
  
.marketplace-slot:hover {
  background-color: #f0f0f0;
  border-color: #999;
}
  
  .marketplace-slot p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 5rem;
    margin: 0;
    z-index: 20;
    color: #000;
  }

  .character-grid-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
  }

  .character-grid {
    display: flex;
    gap: 10px;
    width: max-content;
  }

  .character-actions {
    display: flex;
    gap: 10px; /* space between buttons */
    margin-top: 15px;
    flex-wrap: wrap;
  }
  
  .character-actions a {
    display: inline-block;
    width: 98px;         /* fixed width for all buttons */
    text-align: center;   /* center the text */
    padding: 6px 12px;
    background-color: #d6d6d6; /* Bootstrap blue */
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    border-radius: 4px;
    border: 1px solid #ffffff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  
  .character-actions a:hover {
    background-color: #e0e0e0;
    border-color: #f1f1f1;
  }
  
  .character-actions a:active {
    background-color: #007bff;
    border-color: #007bff;
  }
  
  .character-actions a:disabled,
  .character-actions a[disabled] {
    opacity: 0.6;
    pointer-events: none;
  }



.dataTables_wrapper.container-fluid,
.dataTables_wrapper.container-lg,
.dataTables_wrapper.container-md,
.dataTables_wrapper.container-sm,
.dataTables_wrapper.container-xl,
.dataTables_wrapper.container-xxl {
  padding: 0;
}
table.dataTable {
  border-collapse: collapse !important;
  margin-bottom: 15px !important;
}
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc_disabled:before {
  right: 0.5rem;
  left: auto;
  content: "\F0360";
  font-family: "Material Design Icons";
  font-size: 1rem;
  top: 12px;
}
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_desc_disabled:after {
  right: 0.5em;
  left: auto;
  content: "\F035D";
  font-family: "Material Design Icons";
  top: 18px;
  font-size: 1rem;
}
table.dataTable thead > tr > th.sorting,
table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc {
  padding-right: 30px;
  padding-left: 0.95rem;
}
table.dataTable tbody > tr.selected,
table.dataTable tbody > tr > .selected {
  background-color: #007bff;
}
table.dataTable tbody > tr.selected td,
table.dataTable tbody > tr > .selected td {
  border-color: #007bff;
}
table.dataTable tbody td:focus {
  outline: 0 !important;
}
table.dataTable tbody td.focus,
table.dataTable tbody th.focus {
  outline: 2px solid #007bff !important;
  outline-offset: -1px;
  background-color: rgba(114, 124, 245, 0.15);
}
.dataTables_info {
  font-weight: 600;
}
table.dataTable.dtr-inline.collapsed
  > tbody
  > tr[role="row"]
  > td:first-child:before,
table.dataTable.dtr-inline.collapsed
  > tbody
  > tr[role="row"]
  > th:first-child:before {
  -webkit-box-shadow: 0 0 45px 0 rgba(0, 0, 0, 0.12);
  box-shadow: 0 0 45px 0 rgba(0, 0, 0, 0.12);
  background-color: #0acf97;
  top: auto;
  bottom: auto;
}
table.dataTable.dtr-inline.collapsed
  > tbody
  > tr.parent
  > td:first-child:before,
table.dataTable.dtr-inline.collapsed
  > tbody
  > tr.parent
  > th:first-child:before {
  background-color: #fa5c7c;
}
div.dt-button-info {
  background-color: #007bff;
  border: none;
  color: #fff;
  -webkit-box-shadow: none;
  box-shadow: none;
  border-radius: 3px;
  text-align: center;
  z-index: 21;
}
div.dt-button-info .h2,
div.dt-button-info h2 {
  border-bottom: none;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
@media (max-width: 767.98px) {
  li.paginate_button.next,
  li.paginate_button.previous {
    display: inline-block;
    font-size: 0.8rem;
  }
  li.paginate_button {
    display: none;
  }
  .dataTables_paginate ul {
    text-align: center;
    display: block;
    margin: 0.8rem 0 0 !important;
  }
  div.dt-buttons {
    display: inline-table;
    margin-bottom: 1.5rem;
  }
}
.activate-select .sorting_1 {
  background-color: #404954;
}
div.dataTables_wrapper div.dataTables_filter {
  text-align: right;
}
@media (max-width: 767px) {
  div.dataTables_wrapper div.dataTables_filter {
    text-align: center;
  }
}
div.dataTables_wrapper div.dataTables_filter input {
  margin-left: 0.5em;
  margin-right: 0;
}
div.table-responsive
  > div.dataTables_wrapper
  > div.row
  > div[class^="col-"]:last-child {
  padding-right: 0;
}
div.table-responsive
  > div.dataTables_wrapper
  > div.row
  > div[class^="col-"]:first-child {
  padding-left: 0;
}

.storage-items {
  width: 40vw;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 1rem;
}

.storage-modal-content {
  width: 50vw;        /* 50% of the viewport width */
  height: 80vh;       /* 80% of the viewport height */
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  margin: auto;
  box-sizing: border-box;
}

.btn.btn-primary {
  background-color: #dbdbdb;       /* Custom blue */
  border-color: #ffffff;
  color: #007bff;
  padding: 10px 20px; 
  font-size: 0.6rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  outline: none !important;
  box-shadow: none !important;
}

.btn.btn-primary:hover {
  background-color: #e7e7e7;       /* Slightly darker blue */
  border-color: #dbdbdb;
  transform: translateY(-2px);     /* Subtle lift on hover */
  outline: none !important;
  box-shadow: none !important;
}

/* Main popover bubble */
.popover {
  width: 150px !important;
  min-height: 50px !important;
  background-color: rgba(255, 255, 255, 0.85) !important;
  color: #525252 !important;
  font-size: 0.75rem !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.5rem 0.75rem !important;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.popover-header {
  display: block !important;
  background: transparent !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.75rem !important;
  font-weight: 500;
  text-align: center;
  color: #525252 !important;
}

.popover-body {
  padding: 0 !important;
  margin: 0 !important;
  font-size: inherit !important;
  font-weight: 500;
  line-height: 1.2;
}

/* Optional: subtle arrow fix */
.popover .popover-arrow::before {
  border-top-color: rgba(0, 0, 0, 0.85) !important;
}

#itemMainImage img {
  max-width: 100px;
  height: auto;
}

#itemInfoModal * {
  font-family: Tahoma, sans-serif !important;
}

/* Make the modal body scrollable */
#itemInfoModal .modal-body {
    overflow-y: auto;
    max-height: 300px; /* Adjust this to ensure the modal doesn't overflow */
    padding: 15px;
    background: #fafafa;
}

#itemInfoModal .modal-body::-webkit-scrollbar {
    width: 6px;
}

#itemInfoModal .modal-body::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

/* Add soft shadow to the item image */
#itemInfoModal #itemMainImage img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}



