body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f7 100%);
}
h1, h2.passwordForm {
    text-align: center;
}        
h1 {
    font-size: 28px;
    margin-bottom: 20px;
    padding: 0 10px;
    color: #2c3e50;
}
h2 {
    font-size: 18px;
    color: #34495e;
    font-weight: 700;
    margin-top: 25px;
}
h3 {
    font-size: 14px;
    color: #34495e;
    font-weight: 700;
    margin-top: 25px;
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
#passwordForm, #iframeContainer {
    text-align: center;
}
#redbox {
    border: 1px solid var(--primary-color); 
    margin: 25px auto; 
    padding: 20px; 
    width: calc(100% - 30px);
    max-width: 500px;
    box-sizing: border-box;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(var(--primary-rgb), 0.1);
}
#iframeContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
}
#iframeContainer iframe {
    width: 100%;
    flex: 1;
    border: none;
    max-width: 100%;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#iframeContainer iframe.loaded {
    opacity: 1;
}
#passwordForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 20px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
#passwordForm label {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}
#password {
    margin: 10px 0 20px 0;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    width: calc(100% - 30px);
    max-width: 300px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
}
#password:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    text-align: left;
}
#password::placeholder {
    color: #666;
    opacity: 1;
}
button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(var(--primary-rgb), 0.2);
}
button:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.3);
    transform: translateY(-1px);
}
button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(var(--primary-rgb), 0.2);
}
@media (max-width: 1200px) {
    #iframeContainer iframe {
        width: 100%;
    }
}
#iframeContainer {
    display: none;
    opacity: 0;
    transition: opacity 1.2s ease;
}
#iframeContainer.visible {
    opacity: 1;
}
#loadingMessage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
    z-index: 2000;
}
.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}
.loading-dots span {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}
.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}
@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}
#errorMessage {
    color: #e74c3c;
    display: none;
    margin-top: 10px;
    padding: 10px 16px;
    background-color: #fef0ef;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    animation: shake 0.3s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
.accordion-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
    background-color: rgb(240, 240, 240);
    position: sticky;
    top: 68px;
    z-index: 2;
}
.accordion-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.accordion-disclaimer {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}
.accordion-info {
    display: flex;
    align-items: center;
    margin-left: auto;
    white-space: nowrap;
}
.accordion-info-text {
    font-size: 14px;
    margin-right: 10px;
    white-space: nowrap;
}
.accordion-logo {
    height: 30px;
    width: auto;
    display: block;
}
.accordion-info-logos,
.accordion-info-logos-mobile {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.accordion-info a,
.accordion-info-mobile a,
.accordion-info-logos a,
.accordion-info-logos-mobile a {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}
.accordion-info a:hover,
.accordion-info-mobile a:hover,
.accordion-info-logos a:hover,
.accordion-info-logos-mobile a:hover {
    opacity: 0.7;
    text-decoration: none;
}
.accordion,
.comment-toggle {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 999px;
    outline: none;
    text-align: left;
    white-space: nowrap;
    box-shadow: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.accordion:hover,
.comment-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.14);
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: none;
    transform: none;
}
.accordion:active,
.comment-toggle:active {
    transform: none;
    box-shadow: none;
}
.accordion:after {
    content: '';
}
.accordion.active:after {
    content: '';
}
.accordion-panel {
    padding: 15px 20px 45px 20px;
    background-color: white;
    max-height: none;
    height: calc(100% - 68px);
    overflow: hidden;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    text-align: left;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
.accordion-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), rgba(var(--primary-rgb), 0.15));
    pointer-events: none;
}
.accordion-panel::after {
    content: "";
    display: block;
    clear: both;
}
.accordion-panel.active {
    overflow-y: auto;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.close-panel {
    position: sticky;
    top: 0;
    right: -5px;
    float: right;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 24px;
    color: #666;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.close-panel:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.accordion-panel p {
    font-size: 14px;
    margin: 10px 0;
    color: #555;
}
.accordion-panel-content-item {
    float: left;
    width: calc(33.333% - 16px);
    margin: 0 16px 20px 0;
    box-sizing: border-box;
}
.accordion-panel-content-item:last-of-type + * {
    clear: both;
}
.accordion-panel a {
    color: var(--primary-color) !important;
    text-decoration: none;
}
.accordion-panel a:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}
.comment-panel {
    padding: 24px 20px 45px 20px;
    background-color: white;
    height: calc(100% - 68px);
    overflow-y: auto;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    text-align: left;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}
.comment-panel h2 {
    margin-top: 0;
}
.comment-close {
    position: sticky;
    top: 0;
    float: right;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-size: 24px;
    color: #666;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.comment-close:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.comment-notice,
.comment-panel label,
.comment-history p,
.comment-status {
    font-size: 14px;
    color: #555;
}
.comment-panel label {
    display: block;
    margin: 20px 0 8px 0;
    font-weight: 600;
}
.comment-panel textarea {
    width: 100%;
    min-height: 130px;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
    font: inherit;
    resize: vertical;
}
.comment-panel textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    outline: none;
}
.comment-actions {
    margin-top: 12px;
}
.comment-history {
    margin: 20px 0;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.comment-history ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.comment-history li {
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
}
.comment-history li:first-child {
    border-top: none;
    padding-top: 0;
}
.comment-history time {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #666;
}
.comment-status {
    min-height: 20px;
    margin-top: 12px;
    font-weight: 600;
}
.comment-status.success {
    color: #1f7a3f;
}
.comment-status.error {
    color: #e74c3c;
}
.comment-status.pending {
    color: #555;
}
.accordion-info-mobile {
    display: none;
}
.developer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}
.developer-credit-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.developer-credit a {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}
.developer-credit a:hover {
    opacity: 0.7;
    text-decoration: none;
}
.developer-credit img {
    height: 30px;
    width: auto;
}
.profile-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}
#consentBox {
    display: none;
    max-width: 700px;
    width: calc(100% - 30px);
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
}
#consentBox h2 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 20px;
}
#consentBox p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}
#consentBox ul {
    margin: 20px 0;
    padding-left: 0;
    list-style-position: outside;
    margin-left: 20px;
}
#consentBox ul li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 5px;
}
#consentBox .consent-notice {
    font-style: italic;
    color: #666;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}
#consentBox .consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
    padding: 20px;
    background: #f8fbff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
#consentBox .consent-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}
#consentBox .consent-checkbox label {
    color: #333;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.5;
}
@media (max-width: 768px) {
    body {
        padding: 15px;
        padding-top: 30px;
        justify-content: flex-start;
    }
    .profile-logo {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
        margin-top: 0;
    }
    h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    #passwordForm {
        margin: 0;
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
        width: 100%;
        max-width: 100%;
    }
    #passwordForm label {
        font-size: 14px;
    }
    #password {
        width: 100%;
        max-width: none;
        font-size: 16px;
        padding: 14px 16px;
    }
    button {
        width: 100%;
        max-width: none;
        padding: 14px 32px;
        font-size: 16px;
    }
    #redbox {
        padding: 16px;
        margin: 20px 0;
        border-radius: 10px;
        width: 100%;
    }
    #redbox h2 {
        font-size: 16px;
    }
    #redbox p {
        font-size: 14px;
    }
    #errorMessage {
        font-size: 13px;
        padding: 8px 12px;
    }
    .developer-credit {
        margin-top: 15px;
        font-size: 13px;
    }
    .developer-credit img {
        height: 26px;
    }
    .developer-credit-logos {
        gap: 15px;
    }
    .accordion-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 20px;
    }
    .accordion-left {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }
    .accordion,
    .comment-toggle {
        align-self: center;
        text-align: center;
    }
    .accordion-info {
        display: none;
    }
    .accordion-info-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #ccc;
    }
    /* Når der er flere logoer på mobil, vis dem under teksten */
    .accordion-info-mobile.multiple-logos {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .accordion-panel.active {
        padding: 15px 20px 45px 20px;
        max-height: 80vh;
        overflow-y: auto;
    }
    .close-panel {
        position: sticky;
        top: 15px;
        left: auto;
        right: 20px;
        margin-left: auto;
        background-color: rgba(255, 255, 255, 0.95);
        z-index: 10;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .accordion-panel h2:first-of-type {
        margin-top: 0;
        display: inline-block;
    }
    .accordion-disclaimer,
    .accordion,
    .accordion-info-text {
        white-space: normal;
    }
    .accordion-panel p,
    .accordion-panel li,
    .accordion-panel a {
        font-size: 14px !important;
    }
    .accordion-panel-content-item {
        float: none;
        width: 100%;
        margin-right: 0;
    }
    #consentBox {
        padding: 20px;
        margin: 15px;
        width: calc(100% - 30px);
    }
    #consentBox h2 {
        font-size: 20px;
    }
    #consentBox .consent-checkbox {
        padding: 15px;
    }
}

/* General list styling in accordion panel */
.accordion-panel ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}
.accordion-panel ul > li {
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    font-size: 14px;
    color: #555;
}
.accordion-panel ul > li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #555;
}
.accordion-panel ul ul {
    list-style: none;
    padding-left: 20px;
    margin-top: 8px;
    margin-bottom: 0;
}
.accordion-panel ul ul li {
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
    font-size: 14px;
    color: #555;
}
.accordion-panel ul ul li:before {
    content: "◦";
    position: absolute;
    left: 0;
    color: #555;
}
