/* TT Medical AB - Premium Styling */
:root {
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: #030712; /* Ännu mörkare, renare slate-950 */
    color: #e2e8f0;
    overflow-x: hidden;
}

.font-display {
    font-family: var(--font-display);
}

/* Subtila, eleganta kort med renare kanter */
.card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(51, 65, 85, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    border-color: rgba(225, 29, 72, 0.35);
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6), 0 0 20px -4px rgba(225, 29, 72, 0.12);
    transform: translateY(-2px);
}

/* Primärknappar */
.btn-primary {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -6px rgba(225, 29, 72, 0.45);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.7);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
}

/* Input-fält med hög kontrast och ren typografi */
.input-field {
    width: 100%;
    padding: 0.95rem 1.15rem;
    border-radius: 0.85rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(51, 65, 85, 0.75);
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
    background: rgba(15, 23, 42, 1);
}

.input-field::placeholder {
    color: #64748b;
}
/* /* Alltid krispigt vit eller off-white text i primära knappar oavsett tema */
.btn-primary, .btn-primary * {
    color: #ffffff !important;
}

/* Håll switcher-baren alltid tydligt läsbar som utility-bar */
#themeSwitcher {
    background-color: #0b1324 !important;
    border-bottom: 1px solid rgba(71, 85, 105, 0.6) !important;
}
#themeSwitcher * {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
}

/* ========================================================
   TEMA 1: Taktisk Gravitas & Scennärvaro (Navy, Fältröd, Sand)
   ======================================================== */
body.theme-1 {
    background-color: #080e1e !important;
    color: #cbd5e1;
}
body.theme-1 .font-display {
    font-family: 'DM Serif Display', Georgia, serif !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em;
}
body.theme-1 .card {
    background: rgba(13, 22, 42, 0.75) !important;
    border-color: rgba(51, 65, 85, 0.6) !important;
}
body.theme-1 .card:hover {
    border-color: rgba(185, 28, 28, 0.5) !important;
}
body.theme-1 .btn-primary {
    background: linear-gradient(135deg, #b91c1c 0%, #881337 100%) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 10px 24px -6px rgba(185, 28, 28, 0.45) !important;
}
body.theme-1 .btn-primary:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
}
body.theme-1 .text-rose-400, body.theme-1 .text-rose-500 {
    color: #e09f67 !important; /* Varm fältsand / bärnsten */
}
body.theme-1 .bg-rose-600, body.theme-1 .bg-rose-500 {
    background-color: #991b1b !important;
}
body.theme-1 .border-rose-500 {
    border-color: #b91c1c !important;
}

/* ========================================================
   TEMA 2: Ljus Taktisk / Nordic Steel (Stålgrå, Petrol, Fält)
   Samma grund och pondus som 1 & 2, men i ljust dagsljusformat!
   ======================================================== */
body.theme-2 {
    background-color: #e9eef3 !important;
    color: #1e293b !important;
}
body.theme-2 header {
    background-color: rgba(233, 238, 243, 0.95) !important;
    border-color: #cbd5e1 !important;
}
body.theme-2 header a {
    color: #0f172a !important;
}
body.theme-2 header nav a {
    color: #334155 !important;
}
body.theme-2 header nav a:hover {
    color: #0f766e !important;
}
body.theme-2 .font-display {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    color: #0f172a !important;
}
body.theme-2 h1, body.theme-2 h2, body.theme-2 h3, body.theme-2 h4 {
    color: #0f172a !important;
}
body.theme-2 p, body.theme-2 li {
    color: #334155;
}
body.theme-2 .card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06) !important;
}
body.theme-2 .card:hover {
    border-color: #0f766e !important;
    box-shadow: 0 12px 30px -4px rgba(15, 118, 110, 0.15) !important;
}
body.theme-2 .bg-slate-900, 
body.theme-2 .bg-slate-950,
body.theme-2 [class*="bg-slate-900"],
body.theme-2 [class*="bg-slate-950"] {
    background-color: #dde4ec !important;
}
body.theme-2 [class*="border-slate-800"],
body.theme-2 [class*="border-slate-700"] {
    border-color: #cbd5e1 !important;
}
body.theme-2 .text-slate-300 {
    color: #334155 !important;
}
body.theme-2 .text-slate-400 {
    color: #475569 !important;
}
body.theme-2 .text-white {
    color: #0f172a;
}
body.theme-2 .btn-primary,
body.theme-2 .btn-primary *,
body.theme-2 .btn-primary span,
body.theme-2 .btn-primary svg {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
    color: #ffffff !important;
    fill: #ffffff;
    stroke: currentColor !important;
}
body.theme-2 .btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 24px -4px rgba(15, 118, 110, 0.4) !important;
}
body.theme-2 .btn-primary:hover,
body.theme-2 .btn-primary:hover * {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%) !important;
    color: #ffffff !important;
}
body.theme-2 .btn-secondary {
    background: #ffffff !important;
    border: 2px solid #0f766e !important;
    color: #0f766e !important;
    font-weight: 700 !important;
}
body.theme-2 .btn-secondary:hover {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #ffffff !important;
}
body.theme-2 .input-field {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
body.theme-2 .input-field:focus {
    border-color: #0f766e !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2) !important;
}
body.theme-2 .bg-gradient-to-r.from-rose-700,
body.theme-2 .bg-gradient-to-r.from-rose-700 *,
body.theme-2 .bg-gradient-to-r.from-rose-700 span {
    background: linear-gradient(90deg, #092632 0%, #0f766e 50%, #092632 100%) !important;
    color: #ffffff !important;
}
body.theme-2 .text-rose-400, 
body.theme-2 .text-rose-500 {
    color: #0f766e !important;
}
body.theme-2 .text-cyan-300,
body.theme-2 .text-cyan-400,
body.theme-2 .text-cyan-500 {
    color: #0f766e !important;
}
body.theme-2 .text-emerald-300,
body.theme-2 .text-emerald-400,
body.theme-2 .text-emerald-500 {
    color: #047857 !important;
}
body.theme-2 .text-amber-400,
body.theme-2 .text-amber-500 {
    color: #b45309 !important;
}
body.theme-2 .text-slate-100,
body.theme-2 .text-slate-200 {
    color: #0f172a !important;
}
body.theme-2 blockquote,
body.theme-2 blockquote * {
    color: #0f172a !important;
}
body.theme-2 .border-rose-500,
body.theme-2 .border-rose-500\/20 {
    border-color: rgba(15, 118, 110, 0.3) !important;
}
body.theme-2 .bg-gradient-to-br.from-rose-500.to-rose-700,
body.theme-2 .bg-gradient-to-br.from-rose-500.to-rose-700 * {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
    color: #ffffff !important;
}
body.theme-2 .relative [class*="bg-slate-950/90"],
body.theme-2 .relative [class*="bg-slate-950/90"] * {
    background-color: rgba(15, 23, 42, 0.92) !important;
    color: #ffffff !important;
}
body.theme-2 .border-rose-500[class*="bg-slate-950"] {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    border-left: 5px solid #0f766e !important;
    box-shadow: 0 10px 25px -4px rgba(15, 118, 110, 0.1) !important;
}
body.theme-2 .pointer-events-none[class*="blur-"],
body.theme-2 [class*="blur-[140px]"],
body.theme-2 [class*="from-rose-600/30"] {
    display: none !important;
}

/* ========================================================
   TEMA 3: Dämpad Kalksten (Mjuk & Neutral Kalksten, Vinröd)
   ======================================================== */
body.theme-3 {
    background-color: #f7f5f0 !important;
    color: #292524 !important;
}
body.theme-3 header {
    background-color: rgba(247, 245, 240, 0.96) !important;
    border-color: #e5e0d3 !important;
}
body.theme-3 header a {
    color: #292524 !important;
}
body.theme-3 header nav a {
    color: #44403c !important;
}
body.theme-3 header nav a:hover {
    color: #881337 !important;
}
body.theme-3 .font-display {
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em;
    color: #1c1917 !important;
}
body.theme-3 h1, body.theme-3 h2, body.theme-3 h3, body.theme-3 h4 {
    color: #1c1917 !important;
}
body.theme-3 p, body.theme-3 li {
    color: #44403c;
}
body.theme-3 .card {
    background: #ffffff !important;
    border-color: #e7e2d8 !important;
    box-shadow: 0 4px 20px -2px rgba(41, 37, 36, 0.05) !important;
}
body.theme-3 .card:hover {
    border-color: #881337 !important;
    box-shadow: 0 12px 30px -4px rgba(136, 19, 55, 0.12) !important;
}
body.theme-3 .bg-slate-900, 
body.theme-3 .bg-slate-950,
body.theme-3 [class*="bg-slate-900"],
body.theme-3 [class*="bg-slate-950"] {
    background-color: #efebe1 !important;
}
body.theme-3 [class*="border-slate-800"],
body.theme-3 [class*="border-slate-700"] {
    border-color: #e2dbcf !important;
}
body.theme-3 .text-slate-300 {
    color: #383431 !important;
}
body.theme-3 .text-slate-400 {
    color: #44403c !important;
}
body.theme-3 .text-white {
    color: #1c1917;
}
body.theme-3 .relative [class*="bg-slate-950/90"],
body.theme-3 .relative [class*="bg-slate-950/90"] h4,
body.theme-3 .relative [class*="bg-slate-950/90"] p,
body.theme-3 .relative [class*="bg-slate-950/90"] span {
    background-color: rgba(15, 23, 42, 0.92) !important;
    color: #faf7f2 !important;
}
body.theme-3 .relative [class*="bg-slate-950/90"] p {
    color: #cbd5e1 !important;
}
body.theme-3 .card .relative .absolute [class*="bg-slate-900"],
body.theme-3 .card .relative .absolute [class*="bg-slate-900"] * {
    background-color: rgba(15, 23, 42, 0.85) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
body.theme-3 .btn-secondary {
    background: #ffffff !important;
    border: 2px solid #881337 !important;
    color: #881337 !important;
    font-weight: 700 !important;
}
body.theme-3 .btn-secondary:hover {
    background: #881337 !important;
    border-color: #881337 !important;
    color: #ffffff !important;
}
body.theme-3 .input-field {
    background: #ffffff !important;
    border-color: #d6d0c4 !important;
    color: #1c1917 !important;
}
body.theme-3 .input-field:focus {
    border-color: #881337 !important;
    box-shadow: 0 0 0 3px rgba(136, 19, 55, 0.15) !important;
}
body.theme-3 .text-rose-400, 
body.theme-3 .text-rose-500 {
    color: #881337 !important;
}
body.theme-3 .text-cyan-300,
body.theme-3 .text-cyan-400,
body.theme-3 .text-cyan-500 {
    color: #881337 !important;
}
body.theme-3 .text-emerald-300,
body.theme-3 .text-emerald-400,
body.theme-3 .text-emerald-500 {
    color: #881337 !important;
}
body.theme-3 .text-amber-400,
body.theme-3 .text-amber-500 {
    color: #9a3412 !important;
}
body.theme-3 .text-slate-100,
body.theme-3 .text-slate-200 {
    color: #1c1917 !important;
}
body.theme-3 blockquote,
body.theme-3 blockquote * {
    color: #1c1917 !important;
}
body.theme-3 .border-rose-500[class*="bg-slate-950"] {
    background: #ffffff !important;
    border-color: #e7e2d8 !important;
    border-left: 5px solid #881337 !important;
    box-shadow: 0 10px 25px -4px rgba(136, 19, 55, 0.08) !important;
}
body.theme-3 .border-rose-500,
body.theme-3 .border-rose-500\/20 {
    border-color: rgba(136, 19, 55, 0.3) !important;
}
body.theme-3 .btn-primary,
body.theme-3 .btn-primary *,
body.theme-3 .btn-primary span,
body.theme-3 .btn-primary svg {
    background: linear-gradient(135deg, #881337 0%, #4c0519 100%) !important;
    color: #faf7f2 !important;
    fill: #faf7f2;
    stroke: currentColor !important;
}
body.theme-3 .btn-primary {
    border: 1px solid rgba(250, 247, 242, 0.25) !important;
    box-shadow: 0 6px 20px -3px rgba(136, 19, 55, 0.4) !important;
}
body.theme-3 .btn-primary:hover,
body.theme-3 .btn-primary:hover * {
    background: linear-gradient(135deg, #9f1239 0%, #5e0821 100%) !important;
    color: #ffffff !important;
}
body.theme-3 .bg-gradient-to-r.from-rose-700,
body.theme-3 .bg-gradient-to-r.from-rose-700 *,
body.theme-3 .bg-gradient-to-r.from-rose-700 span {
    background: linear-gradient(90deg, #700c2a 0%, #881337 50%, #700c2a 100%) !important;
    color: #faf7f2 !important;
}
body.theme-3 .bg-gradient-to-r.from-rose-700 span.animate-pulse {
    background-color: #faf7f2 !important;
}
body.theme-3 .pointer-events-none[class*="blur-"],
body.theme-3 [class*="blur-[140px]"],
body.theme-3 [class*="from-rose-600/30"] {
    display: none !important;
}
body.theme-3 span.bg-rose-600,
body.theme-3 span.bg-rose-700,
body.theme-3 span.bg-rose-800,
body.theme-3 span[class*="bg-rose-600"],
body.theme-3 span[class*="bg-rose-700"] {
    background-color: #881337 !important;
    color: #faf7f2 !important;
}
body.theme-3 span.bg-rose-600 *,
body.theme-3 span.bg-rose-700 *,
body.theme-3 span[class*="bg-rose-600"] * {
    color: #faf7f2 !important;
}
body.theme-3 .bg-gradient-to-br.from-rose-500.to-rose-700,
body.theme-3 .bg-gradient-to-br.from-rose-500.to-rose-700 * {
    background: linear-gradient(135deg, #881337 0%, #580c21 100%) !important;
    color: #faf7f2 !important;
}

/* ========================================================
   TEMA 4: Fyllig Kontrast (Varm Havre & Djup Vinröd Fond)
   Mer färg och kontrast än den nästan-vita kalkstenen!
   ======================================================== */
body.theme-4 {
    background-color: #eae1d2 !important; /* Mättad varm havre/sandsten */
    color: #241819 !important;
}
body.theme-4 header {
    background-color: rgba(234, 225, 210, 0.96) !important;
    border-color: #cfc2ad !important;
}
body.theme-4 header a {
    color: #1f1416 !important;
}
body.theme-4 header nav a {
    color: #423230 !important;
}
body.theme-4 header nav a:hover {
    color: #700c2a !important;
}
body.theme-4 .font-display {
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em;
    color: #1f1416 !important;
}
body.theme-4 h1, body.theme-4 h2, body.theme-4 h3, body.theme-4 h4 {
    color: #1f1416 !important;
}
body.theme-4 p, body.theme-4 li {
    color: #3d2f2d;
}
body.theme-4 .card {
    background: #fdfbf7 !important;
    border-color: #d6cab6 !important;
    border-top: 3px solid #881337 !important; /* Röd topplist för rik karaktär */
    box-shadow: 0 6px 24px -2px rgba(76, 5, 25, 0.08) !important;
}
body.theme-4 .card:hover {
    border-color: #881337 !important;
    box-shadow: 0 16px 36px -4px rgba(76, 5, 25, 0.16) !important;
}
body.theme-4 .bg-slate-900, 
body.theme-4 .bg-slate-950,
body.theme-4 [class*="bg-slate-900"],
body.theme-4 [class*="bg-slate-950"] {
    background-color: #ded3bf !important;
}
body.theme-4 [class*="border-slate-800"],
body.theme-4 [class*="border-slate-700"] {
    border-color: #cfc2ad !important;
}
body.theme-4 .text-slate-300 {
    color: #382928 !important;
}
body.theme-4 .text-slate-400 {
    color: #473533 !important;
}
body.theme-4 .text-white {
    color: #1f1416;
}

/* Tema 4: Neutrala varma sektionsbakgrunder med maximal textkontrast */
body.theme-4 section#pelare,
body.theme-4 section#bemanning,
body.theme-4 section#hjartstartare {
    background-color: #ded3bf !important; /* Dämpad varm sandsten för elegant sektionskontrast */
    border-color: #cfc2ad !important;
}
body.theme-4 section#pelare h2,
body.theme-4 section#bemanning h2,
body.theme-4 section#hjartstartare h2 {
    color: #1f1416 !important;
}
body.theme-4 section#pelare .card,
body.theme-4 section#bemanning .card,
body.theme-4 section#hjartstartare .card {
    background: #ffffff !important;
    border-top: 3px solid #881337 !important;
    border-color: #d6cab6 !important;
}

/* Primärknappar */
body.theme-4 .btn-primary,
body.theme-4 .btn-primary *,
body.theme-4 .btn-primary span,
body.theme-4 .btn-primary svg {
    background: linear-gradient(135deg, #700c2a 0%, #4c0519 100%) !important;
    color: #faf6f0 !important;
    fill: #faf6f0;
    stroke: currentColor !important;
}
body.theme-4 .btn-primary {
    border: 1px solid rgba(250, 246, 240, 0.3) !important;
    box-shadow: 0 8px 24px -4px rgba(76, 5, 25, 0.45) !important;
}
body.theme-4 .btn-primary:hover,
body.theme-4 .btn-primary:hover * {
    background: linear-gradient(135deg, #881337 0%, #580c21 100%) !important;
    color: #ffffff !important;
}
body.theme-4 .btn-secondary {
    background: #ffffff !important;
    border: 2px solid #881337 !important;
    color: #881337 !important;
    font-weight: 700 !important;
}
body.theme-4 .btn-secondary:hover {
    background: #881337 !important;
    border-color: #881337 !important;
    color: #ffffff !important;
}
body.theme-4 .input-field {
    background: #ffffff !important;
    border-color: #cfc2ad !important;
    color: #1f1416 !important;
}
body.theme-4 .input-field:focus {
    border-color: #700c2a !important;
    box-shadow: 0 0 0 3px rgba(112, 12, 42, 0.2) !important;
}
body.theme-4 .bg-gradient-to-r.from-rose-700,
body.theme-4 .bg-gradient-to-r.from-rose-700 *,
body.theme-4 .bg-gradient-to-r.from-rose-700 span {
    background: linear-gradient(90deg, #3d0514 0%, #700c2a 50%, #3d0514 100%) !important;
    color: #faf6f0 !important;
}
body.theme-4 .text-rose-400, 
body.theme-4 .text-rose-500 {
    color: #881337 !important;
}
body.theme-4 .text-cyan-300,
body.theme-4 .text-cyan-400,
body.theme-4 .text-cyan-500 {
    color: #881337 !important;
}
body.theme-4 .text-emerald-300,
body.theme-4 .text-emerald-400,
body.theme-4 .text-emerald-500 {
    color: #881337 !important;
}
body.theme-4 .text-amber-400,
body.theme-4 .text-amber-500 {
    color: #9a3412 !important;
}
body.theme-4 .text-slate-100,
body.theme-4 .text-slate-200 {
    color: #1f1416 !important;
}
body.theme-4 blockquote,
body.theme-4 blockquote * {
    color: #1f1416 !important;
}
body.theme-4 .border-rose-500[class*="bg-slate-950"] {
    background: #ffffff !important;
    border-color: #d6cab6 !important;
    border-left: 5px solid #881337 !important;
    box-shadow: 0 10px 25px -4px rgba(76, 5, 25, 0.08) !important;
}
body.theme-4 .border-rose-500,
body.theme-4 .border-rose-500\/20 {
    border-color: rgba(136, 19, 55, 0.35) !important;
}
body.theme-4 .bg-gradient-to-br.from-rose-500.to-rose-700,
body.theme-4 .bg-gradient-to-br.from-rose-500.to-rose-700 * {
    background: linear-gradient(135deg, #700c2a 0%, #4c0519 100%) !important;
    color: #faf6f0 !important;
}
body.theme-4 .relative [class*="bg-slate-950/90"],
body.theme-4 .relative [class*="bg-slate-950/90"] * {
    background-color: rgba(26, 16, 18, 0.94) !important;
    color: #faf6f0 !important;
}
body.theme-4 .pointer-events-none[class*="blur-"],
body.theme-4 [class*="blur-[140px]"],
body.theme-4 [class*="from-rose-600/30"] {
    display: none !important;
}
