/* ==========================================================================
   TABLE OF CONTENTS:
   1. Font Declarations
   2. Variables
   3. Preloader
   4. Base Styles
   5. Layout & Structure
   6. Typography
   7. Buttons & Controls
   8. Navigation & Header
   9. Tables & Data Display
   10. Forms & Inputs
   11. Cards & Containers
   12. Currency Styling
   13. Modal & Dialog Styling
   14. Animation & Effects
   15. Utility Classes
   16. Login Page Styles
   17. Media Queries
   ========================================================================== */

/* ==========================================================================
   1. Font Declarations
   ========================================================================== */
@font-face {
  font-family: "Cormorant Unicase";
  src: url("/fonts/CormorantUnicase-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
     17. Media Queries
     ========================================================================== */

/* Extra large devices (large desktops, 1200px and up) */
@media (max-width: 1400px) {
  /* No specific styles needed yet */
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1200px) {
  /* No specific styles needed yet */
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 992px) {
  #coffee-banner-index {
    align-items: start !important;
    justify-content: start !important;
    text-align: left !important;
  }

  #coffee-banner-index p {
    max-width: 90% !important;
  }

  .banner-close {
    top: 2px !important;
  }

  #campaign-title {
    height: auto !important;
    background-size: auto !important;
    gap: 10px;
  }

  .login-container {
    flex-direction: column;
    height: 100% !important;
  }

  .login-container .login-left {
    width: 100% !important;
    padding: 20px;
    margin: 0;
  }

  .login-container .login-left img#login-party-loot-logo {
    width: 100%;
    max-width: 100px !important;
  }

  .login-container .login-right {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    position: relative;
  }

  .login-container .login-right img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(100%);
    animation: slideFromBottom 0.8s ease-out forwards;
  }

  .login-container .login-right .not-a-mimic {
    opacity: 0.9 !important;
  }

  .login-container .login-right .mimic {
    opacity: 0 !important;
  }

  .login-container .login-right .image-container:hover .not-a-mimic {
    opacity: 0 !important;
  }

  .login-container .login-right .image-container:hover .mimic {
    opacity: 1 !important;
  }

  @keyframes slideFromBottom {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  #itemForm div {
    flex-direction: column;
    display: flex;
  }

  #itemForm .itemsValue .input-group {
    flex-direction: row !important;
  }

  #itemValueDisplay {
    justify-content: start !important;
    padding: 20px !important;
  }

  .data-container {
    padding-left: 25px !important;
    padding-right: 25px !important;
  }

  .table-div {
    overflow-x: scroll !important;
  }

  .table-div table {
    width: 100% !important;
  }

  .table-div .item-row {
    position: relative;
    transition: height 0.3s ease;
  }

  .table-div .item-details {
    background-color: #2b3035 !important;
    border-top: 1px solid #495057;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  #lootTabs .nav-item {
    flex: 1 !important;
  }

  .tab-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
  }

  #haggleCheckbox {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin-top: 4px !important;
    margin-right: 6px !important;
  }

  #haggleCheckbox + label {
    font-size: 14px;
    padding-left: 4px;
  }

  /* Ensure tap area remains accessible */
  #haggleCheckbox::before {
    width: 20px !important;
    height: 20px !important;
  }

  /* Checkmark size within checkbox */
  #haggleCheckbox:checked::after {
    transform: scale(0.7) !important;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 768px) {
  .edit-form-container {
    padding: 10px !important;
  }

  .edit-item-form .row {
    margin-left: -5px;
    margin-right: -5px;
  }

  .edit-item-form [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
  }

  .edit-item-form .btn {
    padding: 8px;
    font-size: 0.9rem;
  }

  .item-row {
    position: static;
    transition: height 0.3s ease;
  }

  .item-details-row {
    position: static !important;
    top: auto !important;
    left: auto !important;
  }

  #itemValueDisplay {
    margin-bottom: 10px !important;
    border: none !important;
  }

  #itemsTable td,
  #fundsTable td {
    max-width: 100% !important;
  }

  #itemsTable td:before {
    white-space: normal;
  }

  #campaign-title div:first-of-type {
    display: none !important;
  }

  #campaign-title #campaign-title-header,
  #campaign-title #campaign-description {
    text-align: left !important;
  }

  .btn-group {
    flex-direction: column;
  }

  .tab-pane .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .tab-pane .d-flex.justify-content-between > div {
    width: 100%;
    margin-bottom: 10px;
  }

  .tab-pane .d-flex.gap-2 {
    flex-direction: column;
  }

  /* Card-based layout for tables */
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  /* Hide table headers but keep accessible */
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  /* Display rows as cards */
  tbody tr {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background-color: #2b3035;
    padding: 0.5rem;
    font-size: 1rem;
  }

  /* Add data labels using the data-label attribute */
  td:before {
    content: attr(data-label);
    font-weight: bold;
    display: inline-block;
    width: 100%;
    margin-bottom: 0.25rem;
    color: #adb5bd;
    font-size: 0.85rem;
  }

  /* Give each cell more space */
  td {
    padding: 0.5rem !important;
    text-align: left !important;
    border: none !important;
    border-bottom: 1px solid #495057 !important;
    font-size: 1rem !important;
  }

  td span {
    font-size: 1rem !important;
  }

  /* Remove border from last cell */
  td:last-child {
    border-bottom: none !important;
  }

  /* Action buttons styling */
  td.admin {
    padding-top: 1rem !important;
  }

  /* Make currency breakdown more compact */
  .currency-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Adjust the edit panel */
  .d-flex.flex-column.gap-1 {
    gap: 0.5rem !important;
  }

  #fundSearch,
  #itemSearch,
  #fundDateFilter,
  #itemOwnerFilter {
    width: 100%;
  }

  #fundsPerPage,
  #itemsPerPage {
    width: 80px !important;
  }

  .currency {
    flex-wrap: wrap;
  }

  .currency-breakdown {
    flex-direction: column;
    gap: 4px;
  }

  /* Improve pagination on mobile */
  #fundsPagination,
  #itemsPagination {
    flex-wrap: wrap;
    flex-direction: row;
  }

  #fundsPageInfo,
  #itemsPageInfo {
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .settings-container {
    flex-direction: column;
    padding: 10px;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }

  .settings-content {
    width: 100%;
  }

  /* Fix campaigns list display */
  #campaign-list .list-group-item {
    padding: 15px 10px;
    transition: background-color 0.3s;
    border-top: 1px solid #fff;
  }

  #campaign-list .list-group-item:hover {
    background-color: #1a1a1a !important;
  }

  #campaign-list .fa-pen {
    margin-right: 5px;
  }

  /* Fix the wrapper that holds campaign info and actions */
  #campaign-list .d-flex.w-100.justify-content-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Make campaign info take full width */
  #campaign-list .d-flex.w-100.justify-content-between > div:first-child {
    width: 100%;
  }

  /* Style the actions container */
  #campaign-list .d-flex.gap-2.w-15.flex-column {
    width: 100% !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
  }

  /* Make action buttons more visible */
  #campaign-list button {
    min-width: 100px;
    padding: 8px 12px;
  }

  /* Style the active badge to be more visible */
  #campaign-list .badge.bg-success {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  /* Add more space between campaign items */
  #campaign-list li {
    margin-bottom: 10px;
  }

  /* Make the Create Campaign button full width */
  #create-new-campaign-link-btn {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
  }

  .btn,
  input,
  select {
    min-height: 50px;
    min-width: 50px;
    display: flex;
    justify-content: center !important;
    align-content: center !important;
  }

  textarea {
    min-height: 100px !important;
    min-width: 100px !important;
  }

  .overall-funds {
    display: flex;
    flex-direction: column !important;
    justify-content: start !important;
    align-items: flex-start !important;
  }

  .fund {
    border-left: none !important;
    padding-left: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    gap: 10px;
  }

  .share-link-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  .share-link-actions button {
    width: 100%;
    margin: 0 !important;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
  .edit-item-form .row [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@font-face {
  font-family: "Cormorant Unicase";
  src: url("/fonts/CormorantUnicase-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Unicase";
  src: url("/fonts/CormorantUnicase-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Unicase";
  src: url("/fonts/CormorantUnicase-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Unicase";
  src: url("/fonts/CormorantUnicase-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
     2. Variables
     ========================================================================== */
:root {
  --primary-accent-color: #473a00;
  --secondary-accent-color: #bd9a00;
  --tertiary-accent-color: #dab200;
  --bg-dark: #1a1a1a;
  --bg-darker: #111111;
  --text-light: #ffffff;
  --text-muted: #adb5bd;
  --border-color: #495057;
  --modal-bg: #2c2c2c;
  --input-bg: #343a40;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
}

/* ==========================================================================
     3. Preloader
     ========================================================================== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease;
}

.spinner img {
  width: auto;
  height: auto;
  max-width: 150px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
     4. Base Styles
     ========================================================================== */
html,
body {
  height: max-content;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

html {
  background-color: #000 !important;
  scroll-behavior: smooth;
}

body {
  background-color: #000000;
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
  font-family: "Roboto", serif;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  flex-grow: 1;
  color: var(--text-light);
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #00000093;
  z-index: 0;
  backdrop-filter: blur(8px);
}

body.mobile-menu-open::before {
  background: rgba(0, 0, 0, 0.8);
  z-index: 2;
}

body > * {
  position: relative;
  z-index: 1;
}

body.custom-theme {
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ==========================================================================
     5. Layout & Structure
     ========================================================================== */
section {
  margin-bottom: 20px;
}

.epic-bg {
  position: relative;
  background: linear-gradient(
    40grad,
    rgba(74, 41, 0, 0.47) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(181, 146, 0, 0.25) 100%
  );
  color: white;
  padding: 100px 0;
  overflow: hidden;
}

.epic-bg > * {
  position: relative;
  z-index: 5;
}

.epic-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3C!-- D20 (icosahedron) - improved with more accurate shape --%3E%3Cpolygon points='50,10 85,25 95,65 55,80 15,65 25,25' stroke='%23bd9a00' stroke-width='1.5' fill='none' stroke-opacity='0.4'/%3E%3Cline x1='50' y1='10' x2='55' y2='80' stroke='%23bd9a00' stroke-width='0.8' stroke-opacity='0.3'/%3E%3Cline x1='85' y1='25' x2='15' y2='65' stroke='%23bd9a00' stroke-width='0.8' stroke-opacity='0.3'/%3E%3C!-- D12 (dodecahedron) - improved with more accurate pentagon-based shape --%3E%3Cpolygon points='140,15 170,35 175,70 155,95 120,85 110,50' stroke='%23bd9a00' stroke-width='1.5' fill='none' stroke-opacity='0.4'/%3E%3Cline x1='140' y1='15' x2='155' y2='95' stroke='%23bd9a00' stroke-width='0.8' stroke-opacity='0.3'/%3E%3Cline x1='170' y1='35' x2='120' y2='85' stroke='%23bd9a00' stroke-width='0.8' stroke-opacity='0.3'/%3E%3C!-- D8 (octahedron) - improved to show proper diamond shape --%3E%3Cpolygon points='50,130 80,105 110,130 80,155' stroke='%23bd9a00' stroke-width='1.5' fill='none' stroke-opacity='0.4'/%3E%3Cline x1='50' y1='130' x2='110' y2='130' stroke='%23bd9a00' stroke-width='0.8' stroke-opacity='0.3'/%3E%3C!-- D6 (cube) - improved with perspective --%3E%3Cpolygon points='120,120 155,120 155,155 120,155' stroke='%23bd9a00' stroke-width='1.5' fill='none' stroke-opacity='0.4'/%3E%3Cpolygon points='130,110 165,110 155,120 120,120' stroke='%23bd9a00' stroke-width='1.5' fill='none' stroke-opacity='0.3'/%3E%3Cline x1='130' y1='110' x2='130' y2='145' stroke='%23bd9a00' stroke-width='0.8' stroke-opacity='0.3'/%3E%3Cline x1='165' y1='110' x2='165' y2='145' stroke='%23bd9a00' stroke-width='0.8' stroke-opacity='0.3'/%3E%3Cline x1='155' y1='155' x2='165' y2='145' stroke='%23bd9a00' stroke-width='0.8' stroke-opacity='0.3'/%3E%3C!-- D4 (tetrahedron) - improved shape --%3E%3Cpolygon points='25,180 50,145 75,180' stroke='%23bd9a00' stroke-width='1.5' fill='none' stroke-opacity='0.4'/%3E%3Cline x1='50' y1='145' x2='50' y2='165' stroke='%23bd9a00' stroke-width='0.8' stroke-opacity='0.3'/%3E%3C!-- D10 (pentagonal trapezohedron) - added --%3E%3Cpolygon points='180,165 190,180 170,185 160,170' stroke='%23bd9a00' stroke-width='1.5' fill='none' stroke-opacity='0.4'/%3E%3Cline x1='180' y1='165' x2='170' y2='185' stroke='%23bd9a00' stroke-width='0.8' stroke-opacity='0.3'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  z-index: 1;
  pointer-events: none;
  animation: hexPulse 10s ease-in-out infinite;
}

.epic-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 10% 10%,
      rgba(189, 154, 0, 0.2) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(189, 154, 0, 0.2) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(189, 154, 0, 0.1) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(189, 154, 0, 0.1) 0%,
      transparent 20%
    );
  z-index: 2;
  pointer-events: none;
}

.epic-bg-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(189, 154, 0, 0.3),
    rgba(218, 178, 0, 0.7),
    rgba(189, 154, 0, 0.3),
    transparent
  );
  box-shadow: 0 0 20px 2px rgba(218, 178, 0, 0.3);
  z-index: 3;
  pointer-events: none;
}

.depth-bg {
  position: relative;
  background: linear-gradient(150deg, #a083004a 0%, #111111cb 100%);
  overflow: hidden;
  z-index: 1;
  padding: 80px 0;
}

.depth-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(189, 154, 0, 0.15) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(189, 154, 0, 0.1) 0%,
      transparent 40%
    );
  z-index: -1;
}

.depth-bg::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23bd9a00' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: -2;
  opacity: 0.4;
  transform: rotate(30deg);
  animation: shiftBackground 60s linear infinite;
  pointer-events: none;
}

/* Footer styling */
#footer-container {
  width: 100%;
  margin-top: 40px;
}

.footer {
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  width: 100%;
  min-height: 70px;
  background-color: #f8f9fa;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.footer p {
  margin: 0;
}

/* ==========================================================================
     6. Typography
     ========================================================================== */
h1,
h2,
h3 {
  font-family: "Cormorant Unicase", serif;
  font-weight: 600;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.cormorant {
  font-family: "Cormorant Unicase", serif !important;
}

.roboto {
  font-family: "Roboto", sans-serif !important;
}

.text-accent {
  color: var(--secondary-accent-color) !important;
}

.text-success {
  color: var(--success-color) !important;
}

.text-danger {
  color: var(--danger-color) !important;
}

a {
  color: var(--secondary-accent-color) !important;
}

a:hover {
  color: var(--tertiary-accent-color) !important;
}

/* ==========================================================================
     7. Buttons & Controls
     ========================================================================== */
button,
.btn {
  transition: all 0.8s ease-in-out;
}

button:hover,
.btn:hover {
  transform: scale(1.01);
}

.animated-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.animated-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.animated-btn:hover::before {
  left: 100%;
}

.btn-primary {
  font-family: "Cormorant Unicase", serif !important;
  font-weight: 700 !important;
}

.btn-group {
  gap: 10px;
  width: 100%;
}

.btn-group .btn {
  border-radius: 6px !important;
}

.button-transparent {
  background-color: transparent;
  border: unset;
}

#save-data {
  background-color: var(--success-color);
  color: white;
}

#save-data:hover {
  background-color: #218838;
}

#load-data {
  background-color: #007bff;
  color: white;
}

#load-data:hover {
  background-color: #0056b3;
}

#settings-icon {
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 2rem;
  background-color: unset;
  border: unset;
  padding: 0;
}

#settings-icon:hover {
  color: #b4b4b4;
}

#logout-button {
  position: absolute;
  background-color: var(--danger-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  bottom: 20px;
}

/* ==========================================================================
     8. Navigation & Header
     ========================================================================== */
nav {
  min-height: 150px;
  align-items: center;
  padding: 20px;
  box-shadow: 0px 5px 10px #000;
  top: 0;
  z-index: 1000;
}

nav .nav-item {
  z-index: 1;
}

nav .pla-logo {
  width: 100%;
  height: auto;
  max-width: 70px;
  max-height: 70px;
}

.nav {
  border: none !important;
}

.nav-link {
  color: #fff !important;
  border: none;
  position: relative;
}

.nav-link.active.bg-dark {
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  border-left: 1px solid #fff;
  border-bottom: none !important;
}

.nav-link:not(.active) {
  opacity: 0.6;
}

.sub-display-banner {
  position: absolute;
  bottom: 20px;
  transform: rotate;
  transform: rotate(10px);
  transform: rotate(-12deg);
  background: linear-gradient(45deg, #bd9a00, #3d1c00) !important;
  padding: 0 10px;
  transform: uppercase;
  font-size: 1.2rem;
  font-weight: 600;
  border: 2px solid #000;
  text-shadow: 0 0 5px #000;
}

.offcanvas-header .sub-display-banner {
  bottom: 0px;
}

#offcanvas-settings-content {
  gap: 40px;
  display: flex;
  flex-direction: column;
}

#coffee-banner-index {
  background-color: #fffbe6;
  color: #333;
  padding: 10px 16px;
  text-align: center;
  font-size: 1rem;
  border-bottom: 1px solid #e2e2e2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#coffee-banner-index p {
  padding: 0;
  margin: 0;
}

.top-banner a {
  color: #d97706; /* a nice gold/orange */
  font-weight: bold;
  text-decoration: none;
}

.banner-close {
  position: absolute;
  right: 12px;
  top: -2px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
}

.banner-close:hover {
  color: #333;
}

.tab-button.active {
  background-color: #a07d00 !important;
}

#campaign-title {
  min-height: 150px;
  align-items: center;
  padding: 20px;
  box-shadow: 0px 5px 10px #000;
  top: 0;
  z-index: 1000;
}

#campaign-title-header,
#campaign-description {
  z-index: 1;
}

#theme-darken {
  width: 100%;
  height: 100%;
  background-color: #000000a8;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
}

/* ==========================================================================
     9. Tables & Data Display
     ========================================================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

td,
th {
  padding: 12px 15px;
}

.table-div {
  width: 100%;
  overflow-x: auto;
}

#lootTabsContent {
  border-radius: 0px 10px 10px 10px;
  background-color: #000000bd !important;
}

#dnd5eSection {
  max-height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

#itemValueDisplay {
  max-width: 100%;
  justify-content: center;
  background-color: rgb(33, 37, 41);
  padding: 10px;
  border-bottom: 1px solid #495057;
}

#total-item-value {
  margin-bottom: 0px;
}

#dnd5eSection::-webkit-scrollbar {
  display: none !important;
}

/* Sortable table headers */
th {
  position: relative;
}

th i.fa-sort-up,
th i.fa-sort-down {
  margin-left: 5px;
  font-size: 14px;
}

.sort-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sort-icon {
  margin-left: 5px;
  opacity: 0.5;
}

th.sortable:hover {
  background-color: rgba(189, 154, 0, 0.1);
}

th.sortable:hover .sort-icon {
  opacity: 1;
}

.fa-sort-up,
.fa-sort-down {
  color: var(--secondary-accent-color);
  opacity: 1 !important;
}

/* Item table styling */
#itemsTable {
  margin-top: 0px !important;
}

#itemsTable td,
#fundsTable td {
  white-space: normal;
  word-wrap: break-word;
  max-width: 250px;
}

#itemsTable td:nth-child(4),
#fundsTable td:nth-child(2) {
  max-width: 300px;
}

.item-row {
  transition: height 0.3s ease-out;
  position: relative;
}

.item-details-row {
  transition: opacity 0.3s ease-out;
}

.toggle-details {
  padding-left: 0 !important;
}

.owner-header {
  background-color: #1a1a1a !important;
  border-bottom: 2px solid #bd9a00 !important;
  font-weight: bold !important;
  font-size: 1.6rem !important;
  margin-top: 15px !important;
  padding: 12px 15px !important;
  display: flex;
  align-items: center;
}

.owner-header i {
  margin-right: 10px;
  color: #bd9a00;
}

/* Item entry styling */
.item-entry {
  border-left: 3px solid #bd9a00;
  margin-bottom: 5px !important;
  padding: 8px 15px !important;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
}

.item-entry:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Item info styles */
.item-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.item-info i {
  min-width: 20px;
  text-align: center;
}

.item-info strong {
  font-weight: 600;
}

.source-text {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.8;
}

/* Pagination controls */
#fundsPageInfo,
#itemsPageInfo {
  font-size: 0.9rem;
}

/* Item type styling */
.item-type-select-wrapper {
  position: relative;
}

.item-type-icon-container {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--secondary-accent-color);
}

.item-type-select {
  padding-left: 35px !important;
}

#itemType-container {
  position: relative;
}

.item-details h6 {
  font-weight: 600;
}

/* Edit form styling */
.edit-form-container {
  background-color: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 15px !important;
  position: relative;
}

.edit-form-container h5 {
  color: var(--secondary-accent-color);
  border-bottom: 1px solid var(--secondary-accent-color);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.edit-form-container h6 {
  color: #ccc;
  margin-top: 15px;
  margin-bottom: 10px;
}

.edit-input.form-control {
  resize: vertical;
}

/* Editable forms styling */
.edit-item-form .form-label {
  font-size: 0.9rem;
  color: #ddd;
  margin-bottom: 4px;
}

.edit-item-form .form-control,
.edit-item-form .form-select {
  background-color: #2c2c2c;
  border: 1px solid #444;
  color: #fff;
}

.edit-item-form .form-control:focus,
.edit-item-form .form-select:focus {
  background-color: #333;
  border-color: var(--secondary-accent-color);
  box-shadow: 0 0 0 0.2rem rgba(189, 154, 0, 0.25);
  color: #fff !important;
}

.edit-item-description {
  min-height: 80px;
  resize: vertical;
}

.edit-item-form .btn {
  min-width: 100px;
}

.edit-item-form .save-edit-btn {
  background: linear-gradient(45deg, #bd9a00, #3d1c00);
  border: none;
  transition: 0.3s ease;
}

.edit-item-form .save-edit-btn:hover {
  background: linear-gradient(45deg, #3d1c00, #bd9a00);
  transform: translateY(-2px);
}

/* Color-coded rarity dropdown */
.edit-item-rarity option {
  background-color: #2c2c2c;
  color: inherit;
}

/* Type icon styling */
.edit-item-type-with-icon {
  position: relative;
}

.type-icon-preview {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-accent-color);
  z-index: 10;
}

.type-icon-preview + .form-select {
  padding-left: 35px;
}

/* ==========================================================================
     10. Forms & Inputs
     ========================================================================== */
input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

select option {
  font-family: "Roboto", sans-serif !important;
}

.funds-controls,
.item-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.item-controls input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Custom input styling */
.custom-input {
  width: 100%;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease-in-out;
}

.custom-input:focus {
  border-color: #6a89cc;
}

/* Password input with toggle */
.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
  color: #888;
  transition: color 0.3s;
}

.toggle-password:hover {
  color: #555;
}

/* Search and filter fields */
#fundSearch,
#itemSearch {
  min-width: 300px;
}

#fundDateFilter,
#itemOwnerFilter {
  min-width: 150px;
}

/* ==========================================================================
     11. Cards & Containers
     ========================================================================== */
.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
}

.gold-border {
  border: 1px solid #a07d00 !important;
}

.settings-container {
  border: 1px solid #a07d00 !important;
}

/* Theme selection */
.theme-item {
  max-height: 150px;
}

.theme-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  cursor: pointer;
}

.theme-item img:hover {
  transform: scale(1.05);
}

.app-logo {
  max-width: 150px;
  height: auto;
  margin: auto;
  display: flex;
}

/* App logo */
#app-logo-top {
  max-width: 100px;
  height: auto;
  margin: auto;
  display: flex;
}

.logo:hover {
  transform: rotate(10deg);
}

#profile-icon {
  max-width: 50px;
  max-height: 50px;
}

#settings-gear {
  position: absolute;
  bottom: -10px;
  left: 0;
  font-size: 1.2rem;
  text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 15px #000;
}

/* ==========================================================================
     12. Currency Styling & Fund Display
     ========================================================================== */
.overall-funds {
  font-size: 1.2rem;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.fund:not(:first-of-type) {
  border-left: 2px solid #fff;
  padding-left: 10px;
}

.plat {
  color: #8b8b8b;
}

.gold {
  color: #ffd700;
}

.silver {
  color: #f0f0f0;
}

.copper {
  color: #cd7f32;
}

/* Currency breakdown display */
.currency-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.8rem;
}

.currency {
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bg-success-light {
  background-color: rgba(76, 175, 80, 0.3);
}

.bg-danger-light {
  background-color: rgba(244, 67, 54, 0.3);
}

/* Conversion info styling */
.conversion-details {
  font-size: 0.9rem;
  border-left: 3px solid #bd9a00;
  margin-top: 0.5rem;
  padding-left: 8px;
}

.conversion-toggle {
  cursor: pointer;
  margin-left: 0.5rem;
  color: #bd9a00;
  transition: color 0.2s;
}

.conversion-toggle:hover {
  color: #dab200;
}

#party-funds {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
     13. Modal & Dialog Styling
     ========================================================================== */
.share-links {
  padding-right: 10px;
}

.share-link-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.whats-new-modal .btn {
  font-size: 1rem;
  /*glow effeft*/
  box-shadow: 0 0 10px var(--secondary-accent-color);
  transition: box-shadow 0.3s ease;
  float: right;
}

.modal-content {
  border: 1px solid var(--secondary-accent-color);
}

/* ==========================================================================
     14. Animation & Effects
     ========================================================================== */
@keyframes hexPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes shiftBackground {
  0% {
    transform: rotate(30deg) translateY(0);
  }
  50% {
    transform: rotate(30deg) translateY(5px);
  }
  100% {
    transform: rotate(30deg) translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 1;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.depth-bg:hover::after {
  animation-duration: 40s;
}

/* ==========================================================================
     15. Utility Classes
     ========================================================================== */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s;
}

.index .btn,
.profile .btn {
  font-family: "Roboto", sans-serif !important;
  font-weight: 400 !important;
}

/* Cursor styles */
.mimic-cursor {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='50' viewBox='0 0 120 50'%3E%3Crect x='0' y='0' width='120' height='35' rx='15' ry='15' fill='black' opacity='0.8'/%3E%3Cpath d='M20 35 L25 50 L30 35' fill='black' opacity='0.8'/%3E%3Ctext x='60' y='21' font-family='Arial' font-size='16' fill='white' text-anchor='middle'%3EAHH A MIMIC!%3C/text%3E%3C/svg%3E")
      10 10,
    auto !important;
}

/* ==========================================================================
     16. Login Page Styles
     ========================================================================== */
body.login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: #000;
  background-color: #000;
  background-image: none !important;
}

body.login h1 {
  font-size: 3rem;
}

body.login h2 {
  text-align: left;
  font-family: "Roboto", serif;
}

/* Fullscreen Container */
.login-container {
  display: flex;
  width: 100vw;
  height: 100vh;
  background-color: #000;
}

/* Left Side (Login Form) */
.login-left {
  display: flex;
  justify-content: flex-start;
  gap: 50px;
  align-items: center;
  flex-direction: column;
  width: 50%;
  padding: 40px;
  margin: auto;
  color: white;
  background-color: #000;
  position: relative;
}

.login-left .logo-div {
  width: 100%;
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
}

.login-left img#login-party-loot-logo {
  width: 50%;
  max-width: 200px;
  height: auto;
  z-index: 1;
  opacity: 1;
}

.login-left .toggle-password {
  position: absolute;
  right: 15px;
  top: 42%;
  transform: translateY(-50%);
  cursor: pointer;
}

.login-left .toggle-password i {
  font-size: 18px;
  color: #aaa;
}

.login-left .toggle-password:hover i {
  color: #000;
}

.login-left .password-container {
  position: relative;
  width: 100%;
}

.login-left #error-message {
  color: red;
  font-size: 14px;
}

.login-left #login-footer {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

.login-left h2 {
  margin-bottom: 20px;
  text-align: center;
}

.login-left input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 5px;
}

.login-left button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

/* Right side with image */
.login-right {
  width: 50%;
  height: 100vh;
  position: relative;
}

.login-right .image-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.login-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
}

.login-right .not-a-mimic {
  opacity: 0.9;
}

.login-right .mimic {
  opacity: 0;
}

.login-right .image-container:hover .not-a-mimic {
  opacity: 0;
}

.login-right .image-container:hover .mimic {
  opacity: 0.9;
}

/* Create the chat bubble cursor */
.login-right .image-container {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='50' viewBox='0 0 120 50'%3E%3Crect x='0' y='0' width='120' height='35' rx='15' ry='15' fill='black' opacity='0.8'/%3E%3Cpath d='M20 35 L25 50 L30 35' fill='black' opacity='0.8'/%3E%3Ctext x='60' y='21' font-family='Arial' font-size='16' fill='white' text-anchor='middle'%3EAHH A MIMIC!%3C/text%3E%3C/svg%3E")
      10 10,
    auto;
}

/* Collaborator Cards Styling for Home Page */
.collaborator-card {
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  height: 100%;
  position: relative;
}

.collaborator-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: var(--secondary-accent-color);
}

.collaborator-card:after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(189, 154, 0, 0.1) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.collaborator-card:hover:after {
  opacity: 1;
  transform: scale(1);
}

.collaborator-image {
  position: relative;
  overflow: hidden;
}

.collaborator-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.collaborator-card:hover .collaborator-image img {
  transform: scale(1.05);
}

.collaborator-type {
  position: absolute;
  top: 10px;
  right: -25px;
  background: linear-gradient(45deg, #bd9a00, #3d1c00);
  color: white;
  padding: 5px 25px;
  font-size: 0.8rem;
  transform: rotate(45deg);
  font-weight: bold;
  z-index: 10;
  text-transform: uppercase;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.collaborator-content {
  padding: 20px;
}

.collaborator-content h3 {
  font-family: "Cormorant Unicase", serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--secondary-accent-color);
}

.collaborator-content p {
  color: #bbb;
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  color: var(--secondary-accent-color) !important;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(189, 154, 0, 0.3);
}

.social-link:hover {
  transform: translateY(-3px);
  background: linear-gradient(45deg, #bd9a00, #3d1c00);
  color: white !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .collaborator-content h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .collaborator-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .collaborator-content {
    padding: 15px;
  }

  .social-links {
    justify-content: center;
  }
}

/* Pricing Section Styles */
.pricing-section {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 80px 0;
  position: relative;
}

.pricing-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: 1px solid #bd9a00 !important;
  border-radius: 10px;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(189, 154, 0, 0.3);
}

.price-title {
  font-size: 2rem;
  color: #bd9a00;
  font-weight: 700;
}

.price-img-container {
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-img-container img {
  max-height: 100%;
  width: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pricing-card:hover .price-img-container img {
  transform: scale(1.05);
}

.price-value {
  font-family: "Cormorant Unicase", serif;
}

@media (max-width: 992px) {
  .pricing-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .price-img-container {
    height: 150px;
  }

  .price-title {
    font-size: 1.5rem;
  }
}
