/* ==============================================================
 *   safos2.css
   ============================================================== */

* {
    font-family: arial, "Helvetica Neue", sans-serif;
    font-size: 0.9rem;
    color: #1b1e23;
}
html {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Main content wrapper */
.container { }

/* Relative font sizes for different elements */
p {
    font-size: clamp(1.2rem, 1.3vw, 4.3em);
}
p a { font-size: inherit; }

h1 { font-size: clamp(2em, 2.2vw, 4.2em); }
h2 { font-size: clamp(1.45rem, 1.6vw, 3.6rem); }
h3 { font-size: clamp(1.35em, 1.4vw, 4.4rem); }

body { margin: 0; }

.h1_height  {
    font-size: clamp(2em, 3vw, 3em);
    visibility: hidden;
    pointer-events: none;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

/* Style the header */
.header {
    color: #ffffffff;
    margin: 6px;
    padding: 0.1vw;
    text-align: center;
    width: 100% - 12px;
    background: linear-gradient(to bottom, white, #f4f4f4);
}
.header p, .header h1 { color: #ffffff; }

.logo-top-left {
    text-align: left;
    position: absolute;
    top: 1.8vw;
    left: 1em;
/*    max-width: 200px;*/
    width: 15%;
}
/*.logo-top-left img {
#    width: 100%;
#    height: auto;
#    max-height: 60px;
#    max-width: 100%;
#    width: auto;
#    height: auto;
#}*/

.centered-text { text-align: center; }

/* Språkval ----------------------------------------------------*/
.lang-top-right-nav_old {
    position: absolute;
    top: 2vw;
    right: 20px;
    max-width: 50px;
    width: 9%;
    display: inline-flex;
    align-items: center;
}
.lang-top-right-nav {
    position: absolute;
    top: 2vw;
    right: 20px;
    max-width: none;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.lang-top-right-nav_old img { width: 70%; height: auto; }
.lang-top-right-nav img {
    width: 16px;
    height: auto;
    margin-left: 4px;
}

/* Style the footer --------------------------------------------*/
.footer {
    color: #1b1e23;
    position: fixed;
    bottom: 0.4vw;
    padding: 0.9vw;
    text-align: right;
    width: 99%;
    font-size: 1.2vw;
    z-index: -1;
}
.footer p, .footer h1 { color: #ffffff; }
.people-bottom-right {
    position: absolute;
    bottom: 0.6em;
    right: 1.5em;
    max-width: 280px;
    width: 20%;
}
.people-bottom-right img { width: 100%; height: auto; }

/* Innehållet ---------------------------------------------------*/
.content { width: 100%; }
.column_middle {
    padding-left: 10vw;
    padding-right: 10vw;
    padding-top: 3vw;
}
.wrapper { text-align: center; }
.centered-box {
    background: white;
    text-align: center;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
    border-radius: 10px;
    display: inline-block;
    text-align: left;
    padding: 3em;
    padding-top: 2em;
}
.center-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
}
.center-container h1,
.center-container .login-options { 
    text-align: left; 
}

/* Tooltip -----------------------------------------------------*/
.show_tooltip { border-radius: 50%; position: relative; }

.show_tooltip::before,
.show_tooltip::after {
    --scale: 0;
    --arrow-size: 10px;
    --tooltip-color: #0321fd;
    position: absolute;
    top: 50%;
    left: -0.25rem;
    transform: translateY(-50%) translateX(var(--translate-x, 0)) scale(var(--scale));
    transition: 150ms transform;
    transform-origin: right center;
}
.show_tooltip::before {
    --translate-x: calc(-100% - var(--arrow-size));
    font-size: clamp(0.8em, 1.1vw, 1.2em);
    content: attr(title-tooltip);
    color: white;
    padding: .5rem;
    border-radius: .3rem;
    text-align: center;
    width: max-content;
    width: 200px;
    max-width: 130%;
    background: var(--tooltip-color);
}
.show_tooltip:hover::before,
.show_tooltip:hover::after { --scale: 1; }
.show_tooltip::after {
    --translate-x: calc(-1 * var(--arrow-size));
    content: '';
    border: var(--arrow-size) solid transparent;
    border-left-color: var(--tooltip-color);
    transform-origin: left center;
}

/* Input box ---------------------------------------------------*/
input[type=text], select {
    width: 85%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
input[type=submit] {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
input[type=submit]:hover { background-color: #45a049; }

/* Formulär ----------------------------------------------------*/
div.card_border {
    border-radius: 4px;
    border: 1px solid #4e6ca8;
    padding-top: 0px;
    padding-left: 20px;
    padding-right: 10px;
    padding-bottom: 10px;
    margin-top: 0px !important;
    width: 80%;
    font-size: 0.8em;
}
.radio_block { padding-left: 40px; text-indent: -35px; padding-bottom: 10px; }
.radio_block input { width: 20px; }
details>summary {
    list-style: none;
    cursor: help;
    text-indent: 0.01em;
}
summary::-webkit-details-marker { display: none }
summary::after { content: ' ↴'; }
details[open] summary:after { content: " ↧"; }
.msg_ok { color: green; font-family: Arial, Helvetica, sans-serif; }

/* -- Login-sidan --*/
/* Textfältet under “Gäst” */
#guestNameField input {
    font-size: clamp(1.2rem, 1.3vw, 4.3em);
}

/*.login-options {
    font-size: clamp(1.2rem, 1.3vw, 4.3em);
}*/
.login-options label {
    font-size: clamp(1.2rem, 1.3vw, 4.3em); /* ändra till önskad storlek */
}
/*.login-options input[type="radio"] {
    transform: scale(1.6);
    transform-origin: left center; /* gör att den växer från vänster sida */
    /*margin-right: 0.4em; /* lite mellanrum mellan cirkel och text */
/*}*/
.custom-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;                  /* mellan cirkel och text */
    font-size: clamp(1.2rem, 1.3vw, 4.3rem); /* text + cirkel skalar */
    cursor: pointer;
}

.custom-radio input {
    /*display: none;               /* döljer native radio */
    position: absolute;    /* flytta ut ur synfältet */
    opacity: 0;            /* osynlig */
    width: 0;              /* tar inget utrymme */
    height: 0;
    margin: 0;
}
.custom-radio input:focus + span {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5); /* blå glow */
    border-color: #2563eb; /* optional */
}

.custom-radio span {
    font-size: clamp(1.2rem, 1.3vw, 4.3em);
    display: inline-block;
    width: 0.8em;                  /* cirkelstorlek = 1em → följer font-size */
    height: 0.8em;
    /*border: 2px solid currentColor;*/
    border: 2px solid #0078d4;
    border-radius: 50%;
    position: relative;
}

.custom-radio input:checked + span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5em;               /* innercirkel = 0.5em → skalar med text */
    height: 0.5em;
    /*background-color: currentColor;*/
    background-color: #0078d4;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}




/* Bilder -----------------------------------------------------*/
.scaled_image {
    width: 40vmin;
    height: auto;
    max-width: 300px;
}
.stars { display: inline-block; }
.star {
    font-size: 50px;
    color: #f4f4f4;
    cursor: pointer;
    transition: color 0.2s;
}
.star:hover, .star.selected { color: gold; }

/* Start bokningssida ----------------------------------------*/
.key { font-weight: bold; }
.value { margin-left: 20px; }
.toolbar-buttons {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid #ccc;
}
.toolbar-buttons ul { padding: 0; margin: 5px 0; }
.toolbar-buttons li { margin-bottom: 5px; }
.meeting-options { margin-top: 20px; }
.meeting-options label {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
}
.meeting-options input[type="radio"] { margin-right: 10px; }
.meeting-link { margin-top: 20px; }
.meeting-link a {
    display: block;
    color: #0d85c7;
    text-decoration: none;
    font-size: 16px;
}
.meeting-link a:hover { text-decoration: underline; }
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}
.radio-option:hover {
    background-color: #f0f8ff;
    border-color: #0d85c7;
}
.radio-option input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.hidden { display: none; }

/* Fjärilar ----------------------------------------------------------------------------*/
.container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.form-group { margin-bottom: 25px; }
.url-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}
.url-display {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    background-color: white;
    word-break: break-all;
}
.copy-button {
    background-color: #0d85c7;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.copy-button:hover { background-color: #0a6ca0; }
.copy-button:active { background-color: #085380; }
.copy-feedback {
    display: inline-block;
    margin-left: 10px;
    color: #28a745;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s;
}
.copy-feedback.show { opacity: 1; }

/* ==============================================================
   NEW RESPONSIVE OVERRIDES FOR HEADER & TEXT
   ============================================================== */
/* Logo: fluid width with min/max limits */
.logo-top-left img {
    width: clamp(60px, 10vw, 320px);   /* min,  relative, max */
    height: auto;
}

/* Header text: fluid scaling with min/max limits */
.header h1,
.header p {
    font-size: clamp(1.25rem, 1.8vw, 2.25rem);
    margin: 0.2rem 0;
}

/* Body font: fluid scaling for overall content */
body {
    font-size: clamp(0.9rem, 1vw, 1.1rem);
}

/* Media query for very small devices */
@media (max-width: 480px) {
    .logo-top-left {
        top: 2vw;
        left: 0.5rem;
    }
    .header h1 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
    .footer { font-size: clamp(0.9rem, 1.1vw, 1.1rem); }
}
#copyStatus {
    display: none;
    color: #28a745;
    font-size: 0.9em;
    margin-left: 10px;
    transition: opacity 0.3s;
}
#copyStatus.show { display: inline; }
