/* ===== Base Styles ===== */

.pb-cellar {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: #222;
  --color-red: #d32f2f;
  --color-white: #f5f5f5;
  --color-rose: #f06292;
  --color-orange: #f57c00;
  --color-sparkling: #ffd54f;
  --color-dessert: #8d6e63;
  --color-low-stock: #ff9800;
  --color-critical: #f44336;
  --color-primary: #234e2d;
}

body.pb-standalone-cellar #pbStandaloneCellarSection,
body.pb-standalone-cellar #pbStandaloneCellarMount,
body.pb-standalone-cellar .pb-cellar__content {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.pb-cellar * {
  box-sizing: border-box;
}

body.pb-cellar-tools {
  margin: 0;
  padding: 0;
}

body.pb-cellar-tools .pb-cellar__panel {
  width: 100%;
  margin: 0;
}

body.pb-cellar-tools .card {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

body.pb-cellar-tools #pbCellarSection {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
/* ===== Layout ===== */
.pb-cellar--embedded {
  /* Embedded inside the app card: no extra padding/max-width that can shift layout */
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.pb-cellar__panel {
  background: white !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.pb-cellar__section:last-child { margin-bottom: 0; }

.pb-cellar__titleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pb-cellar__sectionTitle {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== Header ===== */
.pb-cellar__header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pb-cellar__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.pb-cellar__sub {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 4px;
}

.pb-cellar__search-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 20px;
}

.pb-cellar__search-box {
  flex: 2;
  min-width: 200px;
  position: relative;
}

.pb-cellar__search-box input {
  width: 100%;
  padding: 12px 16px;
  padding-left: 40px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 40px;
  font-size: 15px;
  background: #fff;
}

.pb-cellar__search-box:before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  font-size: 16px;
}

.pb-cellar__filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pb-cellar__filter-select {
  padding: 10px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 40px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.pb-cellar__btn {
  padding: 10px 16px;
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.1s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #222;
}

.pb-cellar__btn:hover {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.25);
}

.pb-cellar__btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.pb-cellar__btn--primary:hover {
  background: #1d3f25;
  border-color: #1d3f25;
  color: #fff;
}

.pb-cellar__btn--ghost {
  background: transparent;
  border-color: rgba(0,0,0,0.18);
}

.pb-cellar__btn--small {
  padding: 6px 12px;
  font-size: 13px;
}

.pb-cellar__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Import Grid ===== */
.pb-cellar__grid--import {
  display: grid;
  grid-template-columns: 1.4fr .55fr .7fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 920px) {
  .pb-cellar__grid--import {
    grid-template-columns: 1fr 1fr;
  }
}

.pb-cellar__field label {
  display: block;
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 4px;
}

.pb-cellar__input, .pb-cellar select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  font-size: 14px;
}

.pb-cellar__input:disabled {
  opacity: 0.5;
  background: #f5f5f5;
}

.pb-cellar__input:focus, .pb-cellar select:focus {
  outline: 2px solid rgba(35,78,45,0.25);
  border-color: rgba(35,78,45,0.55);
}

/* ===== Low Stock Banner ===== */
.pb-cellar__lowstock {
  background: #fff3e0;
  border: 1px solid #ffb74d;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.pb-cellar__lowstock-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  color: #e65100;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pb-cellar__lowstock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.pb-cellar__lowstock-item {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  border-left: 4px solid;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.pb-cellar__lowstock-item.critical { border-left-color: var(--color-critical); }
.pb-cellar__lowstock-item.warning { border-left-color: var(--color-low-stock); }

/* ===== Color Sections ===== */
.pb-cellar__color-section {
  margin-bottom: 24px;
}

.pb-cellar__color-header {
  font-weight: 700;
  font-size: 18px;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pb-cellar__color-header.red { border-bottom-color: var(--color-red); color: #b71c1c; }
.pb-cellar__color-header.white { border-bottom-color: #9e9e9e; color: #616161; }
.pb-cellar__color-header.other { border-bottom-color: #757575; color: #424242; }

.pb-cellar__color-count {
  font-size: 14px;
  font-weight: normal;
  opacity: 0.7;
}

/* ===== Batch Cards ===== */
.pb-cellar__batch-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.pb-cellar__batch-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pb-cellar__batch-header {
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.02);
  border-radius: 16px 16px 0 0;
}

.pb-cellar__batch-header.expanded {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.pb-cellar__batch-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  flex: 2;
}

.pb-cellar__batch-name {
  font-weight: 700;
  font-size: 18px;
}

.pb-cellar__batch-year {
  font-weight: 400;
  opacity: 0.7;
}

.pb-cellar__batch-notes {
  font-size: 13px;
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 40px;
  color: #444;
}

.pb-cellar__batch-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.pb-cellar__batch-count {
  font-weight: 700;
  font-size: 18px;
}

.pb-cellar__batch-count.small { 
  font-size: 14px;
  color: #e65100;
}

.pb-cellar__batch-badges {
  display: flex;
  gap: 6px;
}

.pb-cellar__badge {
  padding: 4px 10px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  background: #f0f0f0;
  color: #444;
}

.pb-cellar__badge.scattered { background: #e3f2fd; color: #1565c0; }
.pb-cellar__badge.low { background: #fff3e0; color: #e65100; }
.pb-cellar__badge.critical { background: #ffebee; color: #c62828; }

.pb-cellar__batch-expand-icon {
  font-size: 20px;
  opacity: 0.5;
  transition: transform 0.2s;
}

.pb-cellar__batch-header.expanded .pb-cellar__batch-expand-icon {
  transform: rotate(90deg);
}

/* ===== Batch Detail ===== */
.pb-cellar__batch-detail {
  padding: 20px;
  background: #fafafa;
  border-radius: 0 0 16px 16px;
}

.pb-cellar__location-cluster {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,0.08);
}

.pb-cellar__location-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
}

.pb-cellar__location-select {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ===== Rack Grid ===== */
.pb-cellar__rack-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pb-cellar__rack-row {
  display: flex;
  gap: 4px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
}

.pb-cellar__row-label {
  width: 40px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
  text-align: right;
  padding-right: 8px;
}

.pb-cellar__row-bins {
  display: grid;
  gap: 2px;
  width: 100%;
  grid-template-columns: repeat(6, minmax(32px, 1fr));
}

.pb-cellar__row-bins.scrollable {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  gap: 2px;
}

.pb-cellar__row-bins.scrollable .pb-cellar__bin {
  flex: 0 0 auto;
  width: 42px;
}

.pb-cellar__bin {
  aspect-ratio: 1;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 500;
  box-sizing: border-box;
  position: relative;
}

.pb-cellar__bin.occupied {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pb-cellar__bin.occupied:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pb-cellar__bin.empty {
  background: #f5f5f5;
  color: #aaa;
}

.pb-cellar__bin.selected {
  outline: 3px solid #2196f3;
  outline-offset: 2px;
}

.pb-cellar__bin input[type="checkbox"] {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  margin: 0;
}

/* ===== Actions ===== */
.pb-cellar__batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  justify-content: flex-end;
}

/* ===== Move Modal ===== */
.pb-cellar-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.pb-cellar-modal__content {
  background: #fff;
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
}

.pb-cellar-modal__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pb-cellar__rack-selector {
  margin: 20px 0;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 16px;
}

/* ===== Loading States ===== */
.pb-cellar__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0.6;
  font-style: italic;
}

.pb-cellar__spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 12px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ===== Mobile Responsive ===== */
@media (max-width: 720px) {
  .pb-cellar__batch-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .pb-cellar__batch-stats {
    width: 100%;
    justify-content: space-between;
  }
  
  .pb-cellar__bin {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }
  
  
  .pb-cellar__filter-group {
    justify-content: space-between;
  }
  
  .pb-cellar__filter-select {
    flex: 1;
  }
  
  .pb-cellar__grid--import {
    grid-template-columns: 1fr;
  }
}

/* Import form grid (restores the compact layout) */
.pb-cellar__grid--import{
  display:grid;
  grid-template-columns: 1.4fr .55fr .7fr 1fr 1fr auto;
  gap:10px;
  align-items:end;
}
@media (max-width: 920px){
  .pb-cellar__grid--import{ grid-template-columns: 1fr 1fr; }
}

/* Make the "Notes" and actions span full width (clean) */
.pb-cellar__spanAll{ grid-column: 1 / -1; }
.pb-cellar__actionsRight{ display:flex; justify-content:flex-end; }

/* Clean checkbox row */
.pb-cellar__check{
  display:flex;
  align-items:center;
  gap:6px;
  justify-content:flex-start;
  height:38px;
  padding-bottom:6px;
}
.pb-cellar__check input{ transform: translateY(1px); }

.pb-cellar-card-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  display: none; /* Hidden by default */
}

.pb-cellar-card-container .pb-cellar--embedded {
  background: white;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  width: 100%;
}

.pb-cellar__header {
  position: relative;
}

.pb-cellar__back-btn {
  position: absolute;
  top: 0;
  left: 0;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  color: #0b3d2e;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pb-cellar__back-btn:hover {
  opacity: 0.7;
}

/* Bottle action buttons */
.pb-cellar__bin {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.pb-cellar__bin-number {
  font-size: 6px;
  font-weight: 600;
  margin-bottom: 2px;
}

.pb-cellar__bottle-actions {
  position: absolute;
  bottom: -8px;
  right: -8px;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}

.pb-cellar__bin:hover .pb-cellar__bottle-actions {
  opacity: 1;
  transform: translateY(-2px);
}

.pb-cellar__bottle-action {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: white;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.pb-cellar__bottle-action:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.pb-cellar__bottle-action:first-child:hover {
  background: #8b1e1e;
  color: white;
}

.pb-cellar__bottle-action:last-child:hover {
  background: #2e7d32;
  color: white;
}

/* Ensure checkbox doesn't interfere with actions */
.pb-cellar__bin input[type="checkbox"] {
  margin-top: 2px;
  z-index: 1;
}

/* FORZAR UNA SOLA CARD */
.pb-cellar--embedded {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.pb-cellar__panel {
  background: white !important;
  border-radius: 24px !important;
  padding: 24px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

.pb-cellar__section {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 12px !important;
}




/*   #pbStandaloneCellarSection {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#pbStandaloneCellarSection,
#pbStandaloneToolsSection,
#pbChooseBottleSection {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 14px 14px;
  box-sizing: border-box;
}

.pb-standalone-tools,
.pb-standalone-cellar,
.pb-choose-bottle {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.pb-standalone-tools .card,
.pb-standalone-cellar .card,
.pb-choose-bottle .card {
  width: 100%;
  max-width: 400%;
  margin: 20px auto 0 auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #pbStandaloneCellarSection,
  #pbStandaloneToolsSection,
  #pbChooseBottleSection {
    padding: 0 10px 10px;
  }
}
*/



.pb-cellar__sectionHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
  font-weight:600;
  font-size:15px;
}

.pb-cellar__sectionActions{
  display:flex;
  gap:8px;
}

.pb-cellar__bin.new-placement {
  background: #c8f7c5;
  border-color: #2e7d32;
  animation: cellarFlash 2s ease-in-out;
}

@keyframes cellarFlash {
  0%   { background:#9be79a; }
  70%  { background:#c8f7c5; }
  100% { background:inherit; }
}




@media (max-width: 900px) {
  .pb-cellar__search-row {
    grid-template-columns:1fr !important;
    }
  }

@media (max-width: 760px) {
  .pb-cellar__section {
    padding: 4px 0 !important;
    margin-bottom: 8px !important;
  }
}

  .pb-cellar__grid--import {
    grid-template-columns:1fr !important;
  }

  .pb-cellar__batch-header {
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .pb-cellar__batch-stats {
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
  }
}

@media (max-width: 560px) {
  .pb-cellar__title {
    font-size:22px !important;
    line-height:1.15 !important;
  }
   .pb-cellar__sub {
    font-size:13px !important;
  }
   .pb-cellar__btn {
    min-height:42px;
  }
}

.pb-standalone-section {
  width: 100%;
  box-sizing: border-box;
}

body.pb-standalone-cellar #pbLegacyContent > .card {
	display: none !Import;
}

body.pb-standalone-cellar #pbStandaloneCellarMount {
  padding: 0 12px 16px 12px;
  box-sizing: border-box;
}

body.pb-standalone-cellar #pbStandaloneCellarMount .pb-cellar__content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.pb-standalone-cellar .pb-standalone-card {
  max-height: none !important;
  overflow-y: visible !important;
}

body.pb-standalone-cellar *::-webkit-scrollcard {
	display: none;
}

.pb-cellar__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pb-cellar__field--full {
  grid-column: 1 / -1;
}

.pb-cellar__field--check {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pb-cellar__importCard {
  display: grid;
  gap: 14px;
}

.pb-cellar__grid {
  display: grid;
  gap: 12px;
}

.pb-cellar__grid--2 {
  grid-template-columns: 1fr 1fr;
}

.pb-cellar__grid--3 {
  grid-template-columns: 120px 1fr 1fr;
}

.pb-cellar__grid--alignEnd {
  align-items: end;
}

.pb-cellar__field--full {
  width: 100%;
}

.pb-cellar__field--checkbox .pb-cellar__checkWrap {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  background: #fff;
}

.pb-cellar__btn--full {
  width: 100%;
}

@media (max-width: 640px) {
  .pb-cellar__grid--2,
  .pb-cellar__grid--3 {
    grid-template-columns: 1fr 1fr;
  }

  .pb-cellar__field--checkbox {
    grid-column: 1 / -1;
  }
}

/* Rack Overview Cards */
.rack-overview {
    padding: 4px 0;
}

.rack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.rack-card {
    background: white;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    cursor: pointer;
}

.rack-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.rack-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.rack-name {
    font-weight: 800;
    font-size: 18px;
    color: #1a2a1f;
    letter-spacing: -0.2px;
}

.rack-status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 99px;
    background: #f0f0f0;
    color: #444;
}

.rack-status-badge.green {
    background: #e8f5e9;
    color: #2e7d32;
}

.rack-status-badge.yellow {
    background: #fff8e1;
    color: #ed6c02;
}

.rack-status-badge.red {
    background: #ffebee;
    color: #c62828;
}

.rack-status-badge.blue {
    background: #e3f2fd;
    color: #1976d2;
}

/* Progress Bar */
.rack-progress-container {
    background: #e8e8e8;
    border-radius: 12px;
    height: 10px;
    overflow: hidden;
    margin: 14px 0;
}

.rack-progress-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s ease;
}

/* Stats Row */
.rack-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin: 12px 0;
    padding: 4px 0;
}

.rack-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Free spots info */
.rack-free-spots {
    background: #f8f6f0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin: 12px 0;
    color: #3a5a2a;
    border-left: 3px solid #7cb342;
}

.rack-full-warning {
    background: #ffebee;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin: 12px 0;
    color: #c62828;
    text-align: center;
    font-weight: 600;
    border-left: 3px solid #c62828;
}

/* Button inside rack card */
.rack-view-btn {
    width: 100%;
    padding: 10px 12px;
    background: #0b3d2e;
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.rack-view-btn:hover {
    background: #1a5a44;
}

.rack-view-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .rack-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .rack-card {
        padding: 14px;
    }
    
    .rack-name {
        font-size: 16px;
    }
}