        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f4f4f9;
        }

        .container {
            max-width: 800px;
            margin: 20px auto;
            background: #fff;
            padding: 40px 20px 20px 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        h1 {
            text-align: center;
            color: #333;
        }

        form {
            margin-bottom: 20px;
        }

        textarea, input[type="text"], input[type="password"], input[type="file"] {
            width: 98%;
            margin: 10px 0;
            padding: 10px;
            font-size: 16px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        button {
            background: #007BFF;
            color: #fff;
            border: none;
            padding: 10px 15px;
            font-size: 16px;
            border-radius: 4px;
            cursor: pointer;
        }

        button:hover {
            background: #0056b3;
        }

        .log-container {
            margin-top: 20px;
            display: none;
            padding: 10px;
            background: #f9f9f9;
            border: 1px solid #ccc;
            border-radius: 4px;
            max-height: 300px;
            overflow-y: auto;
        }

        .log-container pre {
            font-size: 14px;
            color: #555;
        }

        .success, .error {
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 20px;
        }

        .success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        .powered-by {
            position: fixed;
            bottom: 10px;
            right: 10px;
            background-color: rgba(0, 0, 0, 0.7);
            color: #fff;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 12px;
            font-family: Arial, sans-serif;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            z-index: 1000;
        }
/* Overlay för mörkare bakgrund */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Login-knappens container */
.login-button-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10; /* Sätt hög prioritet om andra element överlappar */
}

/* Login-knappens stil */
.login-button {
    display: inline-block;
    background-color: #007BFF; /* Blå färg */
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px; /* Rundad knapp */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Lätt skugga */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover-effekt för knappen */
.login-button:hover {
    background-color: #0056b3; /* Mörkare blå */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Ökad skugga */
}

/* Login-ruta */
.login-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
}

/* Stäng-knapp */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #d9534f;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form h2 {
    text-align: center;
    margin: 0;
    color: #333;
}

.login-form label {
    font-weight: bold;
    color: #555;
}

.login-form input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-form input:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.login-form button {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form button:hover {
    background-color: #0056b3;
}

.error-message {
    color: #d9534f;
    font-size: 14px;
    text-align: center;
}

.example-csv-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
    max-height: 80%;
}

.example-csv-container h2 {
    text-align: center;
    margin: 0;
    color: #333;
}

.example-csv-container pre {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow-x: auto;
}
.copy-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: #0056b3;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #d9534f;
}

.column-selection-container {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    text-align: left;
}

.column-selection-container h2 {
    text-align: center;
    color: #333;
}

.column-selection-container label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #555;
}

.column-selection-container select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
}

.column-selection-container button {
    width: 100%;
    background: #007BFF;
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.column-selection-container button:hover {
    background: #0056b3;
}

/* Gör "Remove" knappen mindre och placerad korrekt */
.column-selection-container #filter-list .remove-filter-btn {
    background-color: #d9534f !important; /* Vikt för att överrida globala stilar */
    color: white;
    width: 80px;
    border: none;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    vertical-align: middle; /* Justera knappen på samma rad */
}

.column-selection-container #filter-list .remove-filter-btn:hover {
    background-color: #c9302c !important;
}

/* Placera filter och knappen på samma rad */
.column-selection-container #filter-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.column-selection-container #filter-list li:last-child {
    border-bottom: none;
}

/* Ta bort list-bullets och marginaler */
.column-selection-container #filter-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.preview-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
    max-height: 80%;
}

.preview-container h2 {
    text-align: center;
    color: #333;
}

.preview-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.preview-container table th,
.preview-container table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close-button:hover {
    color: #d9534f;
}

.description-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 0px 8px 8px 0px;
    padding: 20px;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    color: #333;
}

.description-container h2 {
    font-size: 24px;
    color: #007BFF;
    margin-bottom: 12px;
}

.description-container p {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
}

.description-container ul {
    margin: 10px 0;
    padding-left: 20px;
}

.description-container ul li {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.description-container strong {
    color: #333;
}

.gdpr-container {
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gdpr-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    color: #007BFF;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.gdpr-header:hover {
    background-color: #e9f5ff;
}

.gdpr-icon {
    margin-right: 10px;
    margin-top: -17px;
    font-size: 27px;
}

.gdpr-content {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.gdpr-content h4 {
    margin-top: 10px;
    color: #333;
}

.gdpr-content a {
    color: #007BFF;
    text-decoration: none;
}

.gdpr-content a:hover {
    text-decoration: underline;
}


.contact-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    text-align: center;
}

.contact-info a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ABK Form */
.abk-upload {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    text-align: left;
}

.abk-upload a,input[type="file"] {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.abk-upload a:hover {
    text-decoration: underline;
}

/* ABK Form */
.csv-upload {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    text-align: left;
}

.csv-upload a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.csv-upload a:hover {
    text-decoration: underline;
}

/* Token counter */
.token-info {
    font-size: 16px;
    font-weight: bold;
    color: #007BFF;
    margin-bottom: 10px;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f4f4f9;
    padding: 10px 20px;
    border-bottom: 2px solid #ddd;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-left h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.header-left .token-info {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #007BFF;
}

.header-left .token-info .token-count {
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right .user-info {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.header-right .logout-button,
.header-right .login-button {
    display: inline-block;
    padding: 5px 15px;
    font-size: 0.9rem;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.header-right .logout-button:hover,
.header-right .login-button:hover {
    background-color: #0056b3;
}


input[type="file"] {
    display: none; /* Dölj standardknappen */
}

.custom-file-upload {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    border: none;
    display: inline-block;
}

.custom-file-upload:hover {
    background-color: #0056b3;
}

#file-selected {
    font-size: 14px;
    color: #555;
}

#previewContainer {
    max-width: 100%;
    overflow-x: auto; /* Gör tabellen horisontellt scrollbar */
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    background: #fff;
}

#previewTable {
    width: 100%;
    border-collapse: collapse;
}

#previewTable th, #previewTable td {
    border: 1px solid #ddd;
    padding: 8px;
    white-space: nowrap; /* Förhindra radbrytning */
}

#previewTable th {
    background-color: #f2f2f2;
}

.language-switcher {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.lang-flag img {
    width: 32px;
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
}

.lang-flag img:hover {
    opacity: 0.7;
}
