/* BODY RESET / DEFAULTS */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #fff;
}

.bg-modern{
  background-color: #fff;
  transition: all 1s ease;
}

.bg-wild{
    background-color: #262629;
    transition: all 1s ease;

}

/* PAGE TITLE */
h1 {
    padding-top: 8%;
    font-family: 'Oswald', sans-serif;
    font-size: 70px;
    text-align: center;
    margin: 40px 0 20px 0;
}

.title2 {
  padding-top: 0;
  transition: all 1s ease;
}

/* ANCHOR STYLING FOR HEADER */
a.nostyle:link,
a.nostyle:visited {
    text-decoration: none;
    color: inherit;
}

/* FLEX UTILITY */
.center {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* COMMON SPACING */
.spacing {
    margin-top: 24px;
}

/* SEARCH BOX */
.searchbox {
    height: 48px;
    width: 85%;
    max-width: 584px;
    border-radius: 25px;
    padding-left: 25px;
    background-color: #fafafa;
    font-size: 16px;
    border: 1px solid #ccc;
    outline: none;
    transition: background-color 0.2s ease;
}

.searchbox:hover,
.searchbox:focus {
    background-color: #f2f2f7;
}

/* SEARCH BUTTON */
.searchplayer {
    padding: 8px 16px;
    background-color: #fafafa;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.searchplayer:hover {
    background-color: #f2f2f7;
}

/* RESULTS AREA */
.results {
    background-color: #f9f9f9;
    width: 85%;
    max-width: 584px;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap; /* allows wrapping of text within <pre> */
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

/* Grid container for stats */
.stats-grid {
  display: grid;
  gap: 16px; /* space between tiles */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* Each "tile" or "card" in the grid */
.stat-tile {
  background-color: #fff;
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0px 1px 4px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

/* Wide tile if you want certain tiles to span more columns */
.stat-tile--wide {
  grid-column: span 2; /* spans 2 columns if space allows */
}

/* The label/title of each stat */
.stat-title {
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

/* The main stat value */
.stat-value {
  font-size: 1.2rem;
  color: #111;
}

/* Color coding for the profit tile */
.positive-profit {
  border: 2px solid #75c476; /* greenish border if positive */
}

.negative-profit {
  border: 2px solid #ff7070; /* reddish border if negative */
}

.neutral-profit {
  border: 2px solid transparent;
}

/* Loading Text */
.loading-text {
  font-family: "Courier", Courier, monospace;
  font-size: 1rem; /* Adjust size as desired */
  /* Any other styling you want */
}

/* Tooltip for learn-98 */
.learn-98 {
    border-bottom: 1px dotted #000;
    text-decoration: none;
    cursor: help;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

/* input:checked + .slider {
  background-color: #2196F3;
} */

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.text-show-modern {
  color: black;
  opacity: 1;
  transition: all 0.4s ease;
}


.text-show-wild {
  color: white;
  opacity: 1;
  transition: all 0.4s ease;
}

.text-fade {
  opacity: 0;
  transition: all 0.4s ease;
}

/* Results and Settings Container */
.results-settings-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  width: 85%;
  max-width: 1200px;
  margin: 40px auto 0 auto; /* Center horizontally with top margin */
}

/* Stats Container */
#statsContainer {
  /* Removed flex: 1 to prevent stretching */
  max-width: 800px;
  margin-bottom: 24px;
}

/* Settings Container */
#settingsContainer {
  background-color: #f3f3f3; /* Slightly darker shade of grey */
  border-radius: 12px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  
  /* Initially hide the settings container */
  display: none;
}

#settingsContainer h2 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  text-align: center;
}

#settingsContainer label {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1rem;
  cursor: pointer;
}

#settingsContainer input[type="checkbox"] {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

#settingsContainer input[type="number"] {
  margin-right: 10px;
  margin-left: 3px;
  width: 40px;
  height: 20px;
}

.footer {
    background-color: #f3f3f3;
    padding: 12px;
    text-align: center;
    font-size: 0.95rem; /* Slightly larger font size */
    color: #333; /* Darker grey for better readability */
}

.footer p {
    margin: 0;
}

/* Top Renters Section */
.top-renters-container {
  max-width: 800px;
  width: 100%;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.top-renters-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: #2a4365;
  text-align: center;
  padding: 1rem 0;
  margin: 0 0 1.5rem 0;
  border-bottom: 3px solid #f6ad55;
}

/* Mode Section */
.top-renters-mode {
  text-align: left;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2a4365;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

/* Individual Renter Card */
.renter-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.renter-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Rank Number */
.renter-rank {
  font-size: 1.2rem;
  font-weight: bold;
  color: #444;
  min-width: 40px;
  text-align: center;
}

/* Player Info */
.renter-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.renter-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.renter-stat {
  font-size: 0.9rem;
  color: #777;
}

/* Copy Rentals Button */
.copy-rentals-btn {
  padding: 6px 12px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.copy-rentals-btn:hover {
  background-color: #0056b3;
}

.renter-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 10px;
}

.renter-info {
  flex-grow: 1;
  padding-right: 15px; /* Shift the username to the right */
}

.renter-name a {
  font-size: 1.2em;
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: block;
}

.renter-stat {
  font-size: 0.9em;
}

.renter-cards {
  display: flex;
  gap: 4px;
}
.card-icon-container {
  width: 50px;  /* Keep box size fixed */
  height: 50px; /* Keep box size fixed */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Hide excess parts */
  border-radius: 8px;
  background: #f3f3f3;
}

.card-icon {
  width: 200%; /* Zoom in */
  height: 200%;
  object-fit: cover; /* Ensure full coverage */
  object-position: center top; /* Align character properly */
  transform: translateY(20%); /* Shift up to remove frame */
}



.card-placeholder {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;

}
.copy-icon-container {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white; /* White background */
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.copy-icon {
  width: 20px;
  height: 20px;
  stroke: black;
  fill: none;
  opacity: 0.6;
}

.copy-icon-container:hover {
  opacity: 1;
}

/* Hive Keychain Login Button */
.login-keychain {
  display: flex;
  align-items: center;
  padding: 8px 16px;  /* Same padding as searchplayer */
  height: 35px;  /* Match height with search button */
  background-color: #000000;
  color: white;
  border-radius: 6px;
  border: 1px solid #000000;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: fit-content;
  margin-left: 12px;
}

/* SPS rental buttons override the margin */
.sps-rental-buttons .login-keychain {
  margin-left: 0;  /* Remove margin for rental buttons */
  flex-direction: column;  /* Stack text and cost vertically */
  text-align: center;
  padding: 12px 20px;
  background-color: #f6ad55;  /* Orange background */
  border: 1px solid #ed8936;  /* Darker orange border */
  transition: all 0.2s ease;
}

.sps-rental-buttons .login-keychain:hover {
  background-color: #ed8936;  /* Darker orange on hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(237, 137, 54, 0.2);
}

.login-keychain:hover {
  background-color: #333333;
}

.keychain-logo {
  width: 20px;  /* Slightly smaller logo */
  height: 20px;
  margin-right: 8px;
}
.copy-icon-container.highlighted {
  background-color: #46e346 !important;
  opacity: 1 !important;
}

/* Update styles for SPS rental buttons container */
.sps-rental-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}

.rental-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 8px; /* Added spacing between buttons */
}

.sps-rental-buttons .login-keychain {
  background-color: #f6ad55;
  border: 1px solid #ed8936;
  color: #2d3748;
  font-weight: 500;
  width: 100%;
  min-height: 40px;
  padding: 8px 16px;
  white-space: normal; /* Changed from nowrap to normal */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  font-size: 0.9rem; /* Added to make text slightly smaller */
}

.sps-rental-buttons .login-keychain:hover {
  background-color: #ed8936;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rental-cost {
  font-size: 0.9rem;
  color: #718096;
  margin-top: 4px;
}

/* Settings container */
.settings-container {
    display: flex;
    flex-wrap: wrap;  /* Allow wrapping on narrow screens */
    gap: 12px;  /* Consistent spacing */
    justify-content: center;
    align-items: center;
    margin: 16px 0;
}

/* Settings checkbox container */
.settings-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;  /* Minimum width to prevent squishing */
    flex: 1;  /* Allow growing */
    max-width: 300px;  /* Maximum width */
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
}

/* Checkbox input */
.settings-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Checkbox label */
.settings-checkbox label {
    font-size: 14px;
    white-space: nowrap;  /* Prevent text wrapping */
}

.rental-notice {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.rentals-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

.rental-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rental-notice.error {
    background-color: #fee;
    border-left-color: #d44;
}

#rentalReview {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
}

/* Rental Review Modal Styles */
#rentalReviewOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#rentalReviewModal {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

#rentalReviewModal h2 {
  font-family: 'Oswald', sans-serif;
  color: #2d3748;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-family: 'Oswald', sans-serif;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 2px rgba(66,153,225,0.1);
}

.card-selector {
  margin: 1rem 0;
  background: #f7fafc;
  border-radius: 8px;
  padding: 1rem;
}

.tab-headers {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab-header {
  padding: 8px 16px;
  cursor: pointer;
  border: 2px solid;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
  color: #2d3748;
  background: #fff;
  font-weight: 500;
}

/* Splinter-specific styles */
.tab-header[data-splinter="neutral"] {
  background: #f7fafc;
  border-color: #a0aec0;
}

.tab-header[data-splinter="death"] {
  background: #edf2f7;
  border-color: #4a5568;
}

.tab-header[data-splinter="earth"] {
  background: #e6ffed;
  border-color: #4CAF50;
}

.tab-header[data-splinter="water"] {
  background: #ebf8ff;
  border-color: #2196F3;
}

.tab-header[data-splinter="fire"] {
  background: #fff5f5;
  border-color: #F44336;
}

.tab-header[data-splinter="life"] {
  background: #fffff0;
  border-color: #d69e2e;
}

.tab-header[data-splinter="dragon"] {
  background: #fff8eb;
  border-color: #FF9800;
}

.tab-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab-header.active {
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Active state styles */
.tab-header.active[data-splinter="neutral"] {
  background: #f7fafc;
  border-color: #718096;
}

.tab-header.active[data-splinter="death"] {
  background: #edf2f7;
  border-color: #2d3748;
}

.tab-header.active[data-splinter="earth"] {
  background: #e6ffed;
  border-color: #2f855a;
}

.tab-header.active[data-splinter="water"] {
  background: #ebf8ff;
  border-color: #2c5282;
}

.tab-header.active[data-splinter="fire"] {
  background: #fff5f5;
  border-color: #c53030;
}

.tab-header.active[data-splinter="life"] {
  background: #fffff0;
  border-color: #b7791f;
}

.tab-header.active[data-splinter="dragon"] {
  background: #fff8eb;
  border-color: #c05621;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.confirm-rentals,
.cancel-rentals {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.confirm-rentals {
  background-color: #4299e1;
  color: white;
}

.confirm-rentals:hover {
  background-color: #3182ce;
}

.cancel-rentals {
  background-color: #edf2f7;
  color: #2d3748;
}

.cancel-rentals:hover {
  background-color: #e2e8f0;
}

.close-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #a0aec0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: #2d3748;
}

.excluded-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff4f4;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
}

.excluded-section h3 {
    color: #d32f2f;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffcdd2;
}

.excluded-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.excluded-category h4 {
  margin: 0 0 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.excluded-cards {
  display: grid;
  gap: 0.5rem;
}

.excluded-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  background: #fff;
  border-radius: 4px;
}

.excluded-card img {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  object-fit: cover;
}

.rentals-grid {
    margin-top: 2rem;
    padding: 1rem;
    background: #f1f8f1;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
}

.rentals-grid h3 {
    color: #2e7d32;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c8e6c9;
}

.rentals-cards {
    display: grid;
    gap: 0.5rem;
}

.rental-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #c8e6c9;
}

.rental-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.rental-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rental-details h4 {
    color: #2e7d32;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.rental-price {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.excluded-cards.simple-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.excluded-card-name {
    font-size: 14px;
    color: #666;
}

.excluded-tabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 12px 0;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #ffcdd2;
    background: #fff8f8;
    border-radius: 8px 8px 0 0;
}

.tab-header {
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tab-header.active {
    color: #d32f2f;
    border-bottom: 2px solid #d32f2f;
    background: #fff;
}

.tab-content {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
}

.card-item {
    position: relative;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.card-item:hover {
    border-color: #4299e1;
    background: #f7fafc;
}

.card-item.selected {
    border-color: #48bb78;
    background: #f0fff4;
}

.card-item.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #48bb78;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.card-item img {
    width: 100%;
    height: 120px; /* Fixed height for consistency */
    object-fit: cover;
    object-position: center top; /* Focus on the top part of the image */
}

.card-details {
    padding: 8px; /* Reduced from 12px */
}

.card-name {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px; /* Reduced from 4px */
    font-size: 0.85em; /* Smaller font size */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-level {
    display: block;
    font-size: 0.75em; /* Smaller font size */
    color: #666;
}

/* Make modal wider to accommodate 5 cards */
#rentalReviewModal {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Add responsive behavior for smaller screens */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rental-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.rental-price {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.rental-meta .card-level {
    color: #558b2f;
    font-size: 0.75rem;
}

.rentals-grid {
    margin-top: 2rem;
    padding: 1rem;
    background: #f1f8f1;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
}

.rentals-grid h3 {
    color: #2e7d32;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c8e6c9;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 12px;
}

.card-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.card-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center top;
}

.card-details {
    padding: 8px;
}

.card-name {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.total-dec-cost {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    margin: 8px 12px 16px;
    display: inline-block;
}

.guide-link {
  margin: 1rem 0;
}

.guide-button {
  display: inline-block;
  background-color: #4299e1;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  transition: background-color 0.2s;
}

.guide-button:hover {
  background-color: #2b6cb0;
}

/* Guide Banner */
.guide-banner {
    background-color: #2a4365;
    color: white;
    padding: 0.75rem 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.guide-banner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: 500;
    gap: 0.5rem;
    transition: color 0.2s;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
}

.guide-banner-link:hover {
    color: #f6ad55;
}

.guide-banner-icon {
    font-size: 1.25rem;
}

.guide-banner-arrow {
    font-size: 1.25rem;
    transition: transform 0.2s;
}

.guide-banner-link:hover .guide-banner-arrow {
    transform: translateX(4px);
}

/* Preset Manager Styles */
.preset-container, .top-renters-container {
  max-width: 800px;
  width: 100%;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.preset-title, .top-renters-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: #2a4365;
  text-align: center;
  padding: 1rem 0;
  margin: 0 0 1.5rem 0;
  border-bottom: 3px solid #f6ad55;
}

.preset-manager {
  padding: 0;
}

.btn-new-preset {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 1.5rem;
  padding: 0.75rem 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  color: white;
  background-color: #4299e1;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-new-preset:disabled {
  background-color: #cbd5e0;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-new-preset:disabled:hover {
  transform: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-new-preset:hover {
  background-color: #3182ce;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.renter-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.renter-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.top-renters-mode {
  text-align: left;
  font-size: 1.2rem;
  font-weight: bold;
  color: #2a4365;
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.renter-name a {
  color: #2d3748;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
}

.renter-stat {
  color: #4a5568;
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

/* Card preview section */
.card-previews {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.card-thumbnail {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.card-thumbnail:hover {
  transform: translateY(-2px);
}

/* Preset controls */
.preset-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-apply,
.btn-edit,
.btn-delete {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-apply {
  background-color: #4299e1;
  color: white;
}

.btn-apply:hover {
  background-color: #3182ce;
}

.btn-edit {
  background-color: #edf2f7;
  color: #2d3748;
}

.btn-edit:hover {
  background-color: #e2e8f0;
}

.btn-delete {
  background-color: #fff5f5;
  color: #c53030;
}

.btn-delete:hover {
  background-color: #fed7d7;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  animation: slideIn 0.3s ease;
}

.alert-error {
  background-color: #fff5f5;
  color: #c53030;
  border-left: 4px solid #f56565;
}

.alert-success {
  background-color: #f0fff4;
  color: #2f855a;
  border-left: 4px solid #48bb78;
}

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