@font-face {
    font-family: 'Falstaff';
    src: url('/assets/fonts/FalstaffMTStd.otf') format('opentype');
}

@font-face {
    font-family: 'Gotham Medium';
    src: url('/assets/fonts/Gotham Medium.otf') format('opentype');
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-Thin.ttf') format('truetype');
    font-weight: 100;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.site-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.back-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: #1b46b4;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

body {
    background-image: url('/assets/images/bakgrund1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #1a1a1a;
    font-family: 'Gotham Medium', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 40px;
}

main {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 20px 0;
}

.logo {
    width: 280px;
    max-width: 100%;
}

.card {
    background: #ffffff;
    border-radius: 0px;
    padding: 24px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
}

#upload-card {
    max-width: 420px;
}

#upload-card.expanded {
    max-width: 600px;
}

.upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-label {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1b46b4;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
}

.file-label input {
    display: none;
}

.file-name {
    flex: 1;
    font-size: 0.8rem;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #666;
    background: none;
    color: #666;
    font-size: 0.75rem;
    font-style: italic;
    font-family: Georgia, serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.info-popup {
    margin-top: 12px;
    background: #f0f4ff;
    border-radius: 0px;
    padding: 10px 14px;
    font-family: 'Gotham Medium', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #555;
}

.info-popup strong {
    font-family: 'Gotham Bold', sans-serif;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.info-popup ul {
    padding-left: 1.2em;
    margin: 0;
}

.info-popup ul li {
    margin-bottom: 1px;
}

.btn[hidden] { display: none; }

.btn {
    display: block;
    width: fit-content;
    margin: 16px auto 0;
    padding: 12px 40px;
    background-color: #1b46b4;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 100;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn:hover { background-color: #1640a0; }
.btn:active { background-color: #123890; }

.loading-label {
    text-align: center;
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 16px;
    min-height: 1.4em;
}

.progress-track {
    background: #e8e8e8;
    border-radius: 50px;
    height: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #1b46b4, #6ec2e8);
    width: 0%;
    transition: width 0.05s linear;
}

.video-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

#result-video {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
}

.result-title {
    font-family: 'Falstaff', Georgia, serif;
    font-size: 2rem;
    color: #365899;
    text-align: center;
    margin-bottom: 4px;
}

.result-styrka {
    font-family: 'Gotham Bold', sans-serif;
    font-size: 1.4rem;
    color: #444;
    text-align: center;
    margin-bottom: 6px;
}

.result-desc {
    font-family: 'Gotham Medium', sans-serif;
    font-size: 13px;
    color: #444;
    text-align: center;
    margin-bottom: 16px;
}

.cert-wrap {
    display: flex;
    justify-content: center;
}

.cert-wrap img {
    width: 100%;
    border-radius: 8px;
}

.cert-btn {
    margin: 12px auto 0;
    text-decoration: none;
    text-align: center;
}

.cert-hint {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    margin-top: 8px;
}

.swisha {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    line-height: 1.6;
}

.swisha .swisha-rubrik {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.konto-logo {
    width: 160px;
    max-width: 100%;
}

.swish-logo {
    width: 64px;
    max-width: 100%;
    margin-top: 8px;
}
