/* 
 * popup.css
 * Grundläggande stilar för StatusNotifier Extension
 *
 * Author: Linus Olofsson - Iver 
 * Date: 2025-07-08
 * Last modified: Linus Olofsson (2025-07-08)
 * Uppdaterad med tre-kolumns layout för lista
 */

/* ===== FÄRGVARIABLER - Iver tema =====
 * Ändra här för att uppdatera färger globalt
 */
:root {
  /* Primära Iver-färger */
  --iver-gold:              #FCDE06;  /* Huvudsaklig gul/guld */
  --iver-gold-light:        #FFD700;  /* Ljusare guld för text/borders */
  --iver-gold-hover:        #FFC700;  /* Guld vid hover */
  --iver-gold-glow:         rgba(255, 215, 0, 0.3); /* Guld glöd/skugga */
  --iver-gold-focus:        rgba(255, 215, 0, 0.2); /* Guld fokus-ring */

  /* Mörka bakgrunder */
  --bg-darkest:             #1a1a1a;  /* Mörkaste bakgrund */
  --bg-dark:                #2d2d2d;  /* Mörk bakgrund */
  --bg-container:           #323232;  /* Container bakgrund */
  --bg-gray-mid:            #505050;  /* Mellangrå (gradient-start) */

  /* Textfärger */
  --text-dark:              #1f2937;  /* Mörk text */
  --text-gray:              #4b5563;  /* Grå text */
  --text-light:             #ebf1fd;  /* Ljus text */
  --text-muted:             #8492a7;  /* Dämpad text */
  --text-white-soft:        rgba(255, 255, 255, 0.822); /* Mjuk vit text */

  /* Accentfärger */
  --accent-red:             #ef4444;  /* Fel / SLA utgått / blink */

  /* Knappar */
  --btn-red-start:          #dc2626;
  --btn-red-end:            #b91c1c;
  --btn-gray:               #6b7280;
  --btn-gray-hover:         #4b5563;

  /* Borders & dividers */
  --border-light:           #e5e7eb;  /* Ljus border */
  --border-input:           #86851f;  /* Input border */

  /* Notifikation */
  --notification-green:     #4caf50;

  /* Highlight / blink vid statusändring */
  --highlight-start:        #FCDE06;
  --highlight-end:          #ef4444;

  /* Modal */
  --modal-bg:               #ffffff;
  --modal-overlay:          rgba(0, 0, 0, 0.5);

  /* Övrigt */
  --input-bg:               #f9fafb;
}

/* Grundläggande stilar - Iver färgschema */
html, body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  width: 420px;
  height: 600px;
  background: linear-gradient(135deg, var(--bg-darkest) 0%, var(--bg-dark) 100%);
  color: var(--text-dark);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 380px;
  height: 100%;
  max-height: 720px;
  overflow: hidden;
  padding: 14px 16px;
  background: var(--bg-container);
  border: 3px solid var(--iver-gold);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--iver-gold-glow);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
/* User info bar */
.user-info-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(189, 163, 44, 0.2);
  flex-shrink: 0;
}

.user-info-bar span {
  font-size: 11px;
  color: #bda32c;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.user-info-bar #userDisplayName {
  font-weight: 600;
}

/* Spark + Logo*/
.spark-logo {
  display: block;
  margin: 0 auto 10px auto;
  max-width: 180px;
  height: auto;
  flex-shrink: 0;
}
/* Input-fält */
input[type="text"] {
  width: 320px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-left: 5px;
  margin-right: 5px;
  margin-top: 10px;
  margin-bottom: 16px;
  border: 1px solid #86851f;
  border-radius: 3px;
  font-size: 14px;
  color: #1f2937;
}

input[type="text"]:focus {
  outline: none;
  border-color: #23385a;
  box-shadow: 0px 0px 2px rgba(66, 65, 63, 0.3);
}

/* Knapp-grid */
.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.button-grid button {
  font-size: 13px;
  padding: 10px 12px;
}

/* SSO inloggad-status på Teams-knappen */
.sso-logged-in {
  border: 1.5px solid var(--notification-green) !important;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.3);
}

/* Notifikation för bakgrundsuppdatering */
.notification {
  background-color: #4caf50;
  color: white;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  opacity: 1;
  transition: opacity 0.5s;
}

/* Knappar */
button {
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white-soft);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

button:focus {
  outline: none;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Knapp-färger - Iver tema */
.btn-green {
  background: linear-gradient(135deg, var(--iver-gold) 0%, var(--iver-gold-hover) 100%);
  color: var(--bg-darkest);
}

.btn-purple {
  background: linear-gradient(75deg, var(--bg-gray-mid), var(--bg-darkest) 100%);
  border: 2px solid var(--iver-gold-light);
}

.btn-indigo {
  background: linear-gradient(135deg, var(--iver-gold) 0%, var(--iver-gold-hover) 100%);
  color: var(--bg-darkest);
}

.btn-red {
  background: linear-gradient(135deg, var(--btn-red-start) 0%, var(--btn-red-end) 100%);
}

.btn-dark {
  background: linear-gradient(75deg, var(--bg-gray-mid), var(--bg-darkest) 100%);
  border: 2px solid var(--iver-gold-light);
  color: var(--iver-gold-light);
}

.btn-dark:hover {
  background: linear-gradient(65deg, var(--bg-gray-mid) 0%, #000000 100%);
  border-color: var(--iver-gold-hover);
}

.btn-full {
  grid-column: span 2;
}

.item-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-top: 3px solid var(--iver-gold);
  margin-top: 16px;
  margin-bottom: 0;
  padding-right: 8px;
  border-radius: 8px;
  list-style-position: outside;
  padding-left: 25px;
  max-height: 520px;
  scrollbar-width: thin;                        /* Firefox */
  scrollbar-color: var(--iver-gold-hover) transparent; /* Firefox: thumb track */
}

.item-list::-webkit-scrollbar {
  width: 1.5px;                                  /* Tunn scrollbar */
}

.item-list::-webkit-scrollbar-track {
  background: transparent;
}

.item-list::-webkit-scrollbar-thumb {
  background-color: var(--iver-gold-hover);
  border-radius: 3px;
}

.item-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--iver-gold);
}

/* Bullet-punkt hover-effekt */
.item-list li::marker {
  color: #666666ab;
  transition: all 0.2s ease;
}

.item-list li:hover::marker {
  color: var(--iver-gold);
  /* Ta bort font-size: 1.2em; för att stoppa expandering */
}

/* Custom guld-scrollbar - se .item-list ovan */

.item {
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin-bottom: 4px;
}

.item:hover {
  /* Ingen rörelse eller bakgrundsändring */
}

/* Highlight för ändrad status - blinkar ID-numret */
.status-changed .item-id {
  animation: id-blink 1.5s ease-in-out infinite;
}

@keyframes id-blink {
  0%   { color: var(--iver-gold); }
  50%  { color: var(--accent-red); }
  100% { color: var(--iver-gold); }
}

/* Kolumnlayout för listobjekt */
.item-grid {
  display: grid;
  grid-template-columns: 24px 1fr 1.2fr 1.2fr 0.6fr;
  gap: 6px;
  align-items: center;
}

/* Ta bort-knapp */
.item-remove {
  display: flex;
  justify-content: center;
  align-items: center;
}

.remove-icon {
  width: 16px;
  height: 16px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.remove-icon:hover {
  opacity: 1;
}

/* Kolumnrubriker */
.header-row {
  font-weight: 600;
  background: linear-gradient(75deg, var(--bg-gray-mid), var(--bg-darkest) 100%);
  padding: 10px 8px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 2px solid var(--iver-gold);
}

.item-id-header,
.item-status-header,
.item-sla-header,
.item-link-header {
  font-size: 14px;
  color: var(--iver-gold-light);
  font-weight: 700;
}

/* Kolumninnehåll */
.item-id {
  font-weight: 600;
  color: var(--iver-gold);
}

.item-status {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--iver-gold-light);
  text-align: center;
  background: linear-gradient(75deg, var(--bg-gray-mid), var(--bg-darkest) 100%);
  border: 1px solid var(--iver-gold-light);
}

.item-link {
  text-align: center;
}

.link-button {
  display: inline-block;
  padding: 4px 8px;
  background: linear-gradient(75deg, var(--bg-gray-mid), var(--bg-darkest) 100%);
  color: var(--iver-gold-light);
  border: 1px solid var(--iver-gold-light);
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.link-button:hover {
  background: linear-gradient(65deg, var(--bg-gray-mid) 0%, #000000 100%);
  border-color: var(--iver-gold-hover);
}

.item-title {
  font-weight: 500;
  color: #8492a7;
  margin-bottom: 4px;
}

.item-date {
  font-size: 12px;
  color: #ebf1fd;
  margin-top: 4px;
}

/* Status-indikatorer och färger */
.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

/* Status-indikator klasser tas inte i bruk i nuvarande tema */


/* Modal-stilar */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 320px;
  max-height: 85vh;
  overflow-y: auto;
  border: 3px solid var(--iver-gold-light);
  scrollbar-width: thin;
  scrollbar-color: var(--iver-gold-hover) transparent;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1f2937;
  text-align: center;
}

/* Config & Timer modal: dark theme */
#configModal .modal-content,
#timerModal .modal-content {
  background: var(--bg-container);
}

#configModal .modal-title,
#timerModal .modal-title {
  color: var(--iver-gold-light);
}

.modal-body {
  margin-bottom: 16px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--iver-gold-hover) transparent;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Timer-input stilar */
.timer-input-group {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.timer-input-group label {
  flex: 1;
  font-size: 14px;
  color: #4b5563;
}

.timer-input-group input {
  width: 70px;
  padding: 10px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.timer-input-group input:focus {
  outline: none;
  border-color: var(--iver-gold-light);
  box-shadow: 0 0 0 3px var(--iver-gold-focus);
}

/* Extra knapp-färger */
.btn-gray {
  background-color: var(--btn-gray);
}
.btn-gray:hover {
  background-color: var(--btn-gray-hover);
}

/* SLA-kolumn stilar */
.item-sla {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.sla-ok {
  color: var(--iver-gold);
}

.sla-expired {
  color: var(--accent-red);
  font-weight: 700;
}

/* Klickbara items */
.item-clickable {
  cursor: pointer;
  transition: color 0.2s ease;
}

.item-clickable:hover {
  color: var(--iver-gold-light);
}

/* Detalj-modal stilar */
.detail-modal-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
  text-align: center;
  line-height: 1.3;
}

.detail-modal-content {
  max-height: 80vh;
  overflow-y: auto;
}

.detail-modal-body {
  margin-bottom: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
}

.detail-label {
  font-weight: 600;
  color: #4b5563;
  font-size: 13px;
}

.detail-value {
  font-size: 13px;
  color: #1f2937;
  text-align: right;
}

.detail-divider {
  height: 1px;
  background: var(--iver-gold-light);
  margin: 12px 0;
}

.detail-description-label {
  font-weight: 600;
  color: #4b5563;
  font-size: 13px;
  margin-bottom: 6px;
}

.detail-description {
  font-size: 12px;
  color: #374151;
  line-height: 1.5;
  max-height: 150px;
  overflow-y: auto;
  padding: 8px;
  background: var(--input-bg);
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.detail-link-btn {
  display: inline-block;
  padding: 8px 16px;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Senaste uppdatering sektion */
.detail-latest-update {
  font-size: 12px;
  color: #374151;
  line-height: 1.5;
  padding: 8px;
  background: var(--input-bg);
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.detail-loading {
  color: #9ca3af;
  font-style: italic;
  font-size: 11px;
}

.detail-no-data {
  color: #9ca3af;
  font-style: italic;
  font-size: 11px;
}

.detail-divider-thin {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}

.latest-update-status {
  font-size: 11px;
  color: #374151;
  line-height: 1.6;
}

.latest-update-status strong {
  color: var(--iver-gold-hover);
}

.latest-update-post {
  font-size: 11px;
  color: #374151;
  line-height: 1.6;
}

.latest-update-post strong {
  color: var(--iver-gold-hover);
}

.latest-update-mail {
  font-size: 11px;
  color: #374151;
  line-height: 1.6;
}

.latest-update-mail strong {
  color: var(--iver-gold-hover);
}

/* Beskrivningstext */
.detail-description-text {
  font-size: 12px;
  color: #374151;
  line-height: 1.5;
}

/* Trunkerad klickbar text */
.truncated-clickable {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.truncated-clickable:hover {
  color: var(--iver-gold-hover);
}

/* Fullskärms text-popup */
.fulltext-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fulltext-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.fulltext-popup-content {
  position: relative;
  background: #ffffff;
  width: 95%;
  height: 90%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 3px solid var(--iver-gold-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fulltext-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 2px solid var(--iver-gold-light);
  background: var(--input-bg);
  flex-shrink: 0;
}

.fulltext-popup-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.fulltext-popup-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #6b7280;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.fulltext-popup-close:hover {
  color: var(--accent-red);
}

.fulltext-popup-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 13px;
  color: #374151;
  line-height: 1.7;
  word-break: break-word;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: var(--iver-gold-hover) transparent;
}

/* Config-knapp */
.btn-config {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px 0;
  background: transparent;
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.3);
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-config:hover {
  color: var(--iver-gold);
  border-color: var(--iver-gold-light);
  background: rgba(189, 163, 44, 0.05);
}

/* Config modal extras */
.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.config-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 13px;
  color: var(--text-light);
}

.config-checkbox-label:hover {
  background: rgba(189, 163, 44, 0.08);
}

.config-checkbox-label input[type="checkbox"] {
  accent-color: var(--iver-gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Config sektioner */
.config-section {
  margin-bottom: 12px;
}

.config-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--iver-gold);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(189, 163, 44, 0.2);
}

/* Radio-knappar för Sort by */
.config-radio-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.config-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 13px;
  color: var(--text-light);
}

.config-radio-label:hover {
  background: rgba(189, 163, 44, 0.08);
}

.config-radio-label input[type="radio"] {
  accent-color: var(--iver-gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Toggle-switch för on/off */
.config-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
}

.config-toggle-text {
  font-size: 13px;
  color: var(--text-light);
}

.config-toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.config-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.config-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 22px;
  transition: background 0.2s ease;
}

.config-toggle-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.config-toggle-switch input:checked + .config-toggle-slider {
  background: var(--iver-gold);
}

.config-toggle-switch input:checked + .config-toggle-slider::before {
  transform: translateX(20px);
}

/* Title override dropdown */
.config-title-override {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px 4px;
}

.config-select {
  width: 100%;
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid rgba(189, 163, 44, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.config-select:focus {
  border-color: var(--iver-gold);
}

.config-select option {
  background: #2a2a2a;
  color: var(--text-light);
}

.config-current-title {
  font-size: 11px;
  color: var(--iver-gold-light);
  font-style: italic;
  padding: 2px 0;
}

/* Custom Queue selector */
.config-custom-queue {
  padding: 8px 4px 4px;
}

.config-custom-queue.hidden {
  display: none;
}

.config-custom-queue-hint {
  font-size: 11px;
  color: var(--iver-gold-light);
  font-style: italic;
  margin: 0 0 6px 0;
}

.config-custom-queue-list {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid rgba(189, 163, 44, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 8px;
}

.config-custom-queue-list::-webkit-scrollbar {
  width: 6px;
}

.config-custom-queue-list::-webkit-scrollbar-thumb {
  background: rgba(189, 163, 44, 0.4);
  border-radius: 3px;
}

.config-custom-queue-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
}

.config-custom-queue-label input[type="checkbox"] {
  accent-color: var(--iver-gold);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.config-custom-queue-label span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.config-custom-queue-loading {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  padding: 8px 0;
  text-align: center;
}

/* ===== MINIMAL MODE ===== */

/* Normal mode: ikoner gömda, text visas */
.btn-icon {
  display: none;
}

/* Minimal: Använd CSS Grid för att placera user-info och logga på samma rad */
.container.minimal {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr auto;
  gap: 0;
}

.container.minimal .user-info-bar {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
  padding: 4px 8px;
  text-align: left;
  align-self: center;
}

.container.minimal .user-info-bar span {
  font-size: 10px;
}

.container.minimal .spark-logo {
  grid-column: 2;
  grid-row: 1;
  max-width: 90px;
  margin: 0;
  align-self: center;
}

.container.minimal .button-grid {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.container.minimal .item-list {
  grid-column: 1 / -1;
}

.container.minimal .btn-config {
  grid-column: 1 / -1;
}

/* Minimal: Knappar — 5 i rad, ikon-only */
.container.minimal .button-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-bottom: 10px;
}

.container.minimal .button-grid button {
  padding: 5px 0;
  font-size: 12px;
  text-align: center;
  min-width: 0;
  border-radius: 6px;
}

.container.minimal .button-grid .btn-full {
  grid-column: span 1;
}

.container.minimal .button-grid .btn-icon {
  display: inline;
}

.container.minimal .button-grid .btn-text {
  display: none;
}

/* Minimal: Timer countdown i knappens ikon */
.container.minimal .button-grid #timerBtn .btn-icon {
  font-size: 10px;
  letter-spacing: -0.5px;
}

/* Minimal: Mer plats åt ärendelistan */
.container.minimal .item-list {
  margin-top: 8px;
}
