/* Base kiosk-oriented layout helpers - ShowRoom compatible */
html,body { height:100%; }

/* Typography scale (responsive) */
h1, .h1 { font-size:clamp(2.4rem, 3vw, 3rem); line-height:1.15; font-weight:700; }
h2, .h2 { font-size:clamp(2rem, 2.4vw, 2.25rem); line-height:1.2; font-weight:700; }
h3, .h3 { font-size:clamp(1.35rem, 1.6vw, 1.5rem); line-height:1.25; font-weight:600; }
p, .text-body { font-size:1rem; line-height:1.5; }
small, .small { font-size:.875rem; }

/* Spacing tokens (vertical rhythm) */
:root { 
  --space-xs:.25rem; 
  --space-sm:.5rem; 
  --space-md:1rem; 
  --space-lg:2rem; 
  --space-xl:4rem; 
  --radius-md: .5rem;
}

/* Utility helpers */
.text-muted-secondary{color:var(--showroom-text)!important; opacity:0.7;}
.bg-neutral{background:var(--showroom-light-gray)!important;}
.bg-neutral-alt{background:var(--showroom-dale-mist)!important;}

/* Cards & interactive tiles - ShowRoom themed */
.card { 
  border-radius: var(--radius-md); 
  background-color: var(--showroom-vanilla-cloud);
  border-color: var(--showroom-light-gray);
}

.category-card,.item-card{
  cursor:pointer; 
  transition:box-shadow .25s ease;
}

/* Hover: ShowRoom green outline */
.category-card:hover,.item-card:hover{
  transform:none; 
  box-shadow:0 0 0 4px var(--showroom-green),0 0 0 6px rgba(48,144,42,.35)!important; 
  outline:3px solid var(--showroom-green); 
  outline-offset:0;
}

/* Keyboard accessibility: samme ring ved focus-visible */
.category-card:focus-visible,.item-card:focus-visible{
  box-shadow:0 0 0 4px var(--showroom-green),0 0 0 6px rgba(48,144,42,.35)!important; 
  outline:3px solid var(--showroom-green);
} 

.category-card img,.item-card img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Overlay labels inside tiles */
.tile-label { 
  background:rgba(255,255,255,.55); 
  backdrop-filter:blur(2px); 
  -webkit-backdrop-filter:blur(2px); 
  text-shadow:0 1px 2px rgba(0,0,0,.25); 
}

/* Grid layouts */
.grid-card {
  background: var(--showroom-vanilla-cloud);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.thumb-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--showroom-light-gray);
}

.thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Form elements - ShowRoom themed */
.form-control {
  border-color: var(--showroom-light-gray);
  background-color: var(--showroom-vanilla-cloud);
  color: var(--showroom-text);
}

.form-control:focus {
  border-color: var(--showroom-green);
  box-shadow: 0 0 0 0.2rem rgba(48,144,42,.25);
}

.btn-primary {
  background-color: var(--showroom-green);
  border-color: var(--showroom-green);
  color: white;
}

.btn-primary:hover {
  background-color: var(--showroom-dark-green);
  border-color: var(--showroom-dark-green);
}

.btn-outline-secondary {
  border-color: var(--showroom-light-gray);
  color: var(--showroom-text);
}

.btn-outline-secondary:hover {
  background-color: var(--showroom-light-gray);
  border-color: var(--showroom-text);
  color: var(--showroom-text);
}

/* Modal styling - ShowRoom themed */
.modal-content {
  background-color: var(--showroom-vanilla-cloud);
  border-color: var(--showroom-light-gray);
}

.modal-header {
  border-bottom-color: var(--showroom-light-gray);
  background-color: var(--showroom-topmenu);
}

.modal-footer {
  border-top-color: var(--showroom-light-gray);
  background-color: var(--showroom-topmenu);
}

/* Table styling - ShowRoom themed */
.table {
  color: var(--showroom-text);
}

.table th {
  background-color: var(--showroom-topmenu);
  border-color: var(--showroom-light-gray);
  color: var(--showroom-dark-green);
  font-weight: 700;
}

.table td {
  border-color: var(--showroom-light-gray);
}

/* Alert styling - ShowRoom themed */
.alert-info {
  background-color: var(--showroom-dale-mist);
  border-color: var(--showroom-light-gray);
  color: var(--showroom-dark-green);
}

.alert-success {
  background-color: var(--showroom-linen-drawer);
  border-color: var(--showroom-green);
  color: var(--showroom-dark-green);
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}