body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    margin: 0;
}

header {
    background-color: #002e56; /* Blue color */
    color: white; /* White text color */
    padding: 10px; /* Add some padding for better appearance */
    text-align: center; /* Center-align the text */
    position: relative; /* Make the header a positioned parent */
    height: 100px;
}
/* Specific h1 styling inside the header */
header h1 {
    color: white; /* Override color to white for h1 inside header */
}

.container_news {
    /* Existing styles */
    margin-top: 50px; /* Add some margin at the top to create space */
}

/* Global h1 styling */
h1 {
    color: #00498c;
    text-align: center;
}
h5 {
    color: #000000;
    text-align: center;
}
.message {
    position: relative;
    top: 30px; /* Adjust the top value to position it below the header */
    margin: 10px auto; /* Adjust the margin as needed */
    width: 50%;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    width: 500px;
    text-align: center;
}

a {
    display: block;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 3px;
    text-decoration: none;
    color: #00498c;
}

a:hover {
    background-color: #f2f2f2;
}
a.inline-link {
    display: inline;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    text-decoration: underline;
    color: #00498c;
}

a.inline-link:hover {
    background-color: transparent;
    text-decoration: underline;
}

.logo {
    width: auto;
    height: 65px;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Additional styles for the "Beskrivning" column */
th:nth-child(4),
td:nth-child(4) {
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
}
th.column_left {
    text-align: left;
}
tbody td {
    text-align: left;
}

table {
    background-color: #ffffff;
    border-collapse: collapse;
    border-radius: 10px; /* Apply border radius to the table */
    overflow: hidden;
    width: 90%;
    align-items: center;
    margin-top: 20px;
}

table th,
table td {
    padding: 8px;
    border-bottom: 1px solid #ffffff;
}

table th {
    background-color: #ffffff;
    font-weight: bold;
}

table thead {
    background-color: #ffffff;
}

table tbody tr:last-child td {
    border-bottom: none;
}

table thead tr:first-child th {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}


.table-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.menu-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 999;
    cursor: pointer;
}
.menu-button .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
}
/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    position: relative; /* viktigt! */
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 5px;
}
.modal-content a:hover {
    background-color: #f2f2f2;
    width: 75%;
    z-index: 999; /* Ensure the link appears behind the close button */
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #000;
    opacity: 0.5;
    background: none;
    border: none;
    cursor: pointer;
}
.close:hover {
    opacity: 0.75;
}
.toggle-button {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.toggle-button input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #2196F3;
}
input:checked + .slider:before {
    transform: translateX(26px);
}
/* Add user styles */
.styled-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #000000;
}

.info-icon {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background-color: #E4F3B3;
    color: #000000;
    font-size: 10px;
    cursor: help;
}

.info-icon:before {
    content: "i";
    display: block;
    text-align: center;
    font-style: normal;
    font-size: 10px;
    line-height: 15px;
}
.info-icon-container .tooltip {
    position: absolute;
    visibility: hidden;
    width: auto;
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    bottom: 150%; /* Position the speech bubble above the icon */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}

.info-icon-container:hover .tooltip {
    visibility: visible;
}

  input[type="text"],
  input[type="date"],
  textarea {
    font-family: Arial, sans-serif;
    width: 100%;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
    height: 15px;
  }

  input[type="file"] {
    display: block;
    margin-top: 10px;
  }

  input[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #00498c;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
  }

  input[type="submit"]:hover {
    background-color: #00335a;
  }
  #metadata-table {
    width: 100%; /* Set the width to 100% */
    max-width: 100%; /* Ensure the table doesn't exceed its container */
    table-layout: fixed; /* Fix the table layout */
    overflow-y: auto; /* Make the table vertically scrollable if needed */
    overflow-x: auto; /* Make the table horizontally scrollable if needed */
    
}
#metadata-table th {
    width: 30%; /* Adjust the width as needed */
    border: none !important;
    border-radius: 15px;
}
#metadata-table td {
    white-space: nowrap; /* Prevent text from wrapping to the next line */
    word-wrap: break-word;
    overflow: hidden; /* Hide any overflowing content */
    text-overflow: ellipsis; /* Display an ellipsis (...) for truncated text */
    border: none !important;
}
.checkbox-row {
    color: #000000;
    display: flex;
    align-items: baseline;
    gap: 1em; /* valfritt: lite mellanrum mellan checkbox och label */
}
.checkbox label {
    display: flex;
    align-items: baseline;
    font-weight: bold;
    color: #000000;
    gap: 0.5em;
}
.ck-editor__editable {
    min-height: 200px; /* Höjden i pixlar */
}
/* Stil/utseende för taggar */
#tagContainer {
    display: flex;
    flex-wrap: wrap; /* Viktig! tillåter radbrytning */
    gap: 5px;         /* Mellanrum mellan taggar */
    max-width: 300px; /* Anpassa efter behov */
    margin-bottom: 10px;
}

.tag-wrapper {
    display: inline-block;
    background-color: #002e56;
    color: #f2f2f2;
    border-radius: 5px;
    padding: 2px 0px 5px 5px;
    margin-right: 1px;
    margin-bottom: 10px;
    font-weight: bold;
    
}

.tag {
    margin-right: 5px;
}
.delete-button {
    font-size: xx-small;
    background-color: transparent;
    border: none;
    cursor: pointer;
    float: right;
}
.nyhet {
    max-width: 600px;       /* Maximal bredd på nyheten */
    margin: 0 auto;         /* Centrerar nyheten */
    border: 1px solid #ccc;
    border-radius: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    position: relative; /* För att hantera topplinjen */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Lägg till skugga om du vill */
}

.nyhet::before {
    content: "";
    display: block;
    width: 99.9%;
    height: 10px; /* Höjden på den övre linjen */
    background-color: #002e56;
    position: absolute;
    top: 0;
    left: 0;
    border-top-left-radius: 100px; /* Rundade hörn */
    border-top-right-radius: 100px;
}
.nyhet img {
    display: block;          /* Gör bilden till ett blockelement */
    margin-left: auto;       /* Automatisk vänster marginal */
    margin-right: auto;      /* Automatisk höger marginal */
    max-width: 100%;         /* Sätter maximal bredd så att bilden inte blir större än sitt föräldraelement */
    height: 200px;           /* Bibehåller bildens proportioner */
    border-radius: 5px;
}

.nyhet h2 {
    text-align: center;
    color: #002e56;
}
.nyhet p {
    font-size: 2rem;
    line-height: 1.6;
}
.nyhet small {
    color: #777;
}
.nyhet .footer {
    margin-top: 20px;
    font-size: 0.9rem;
    text-align: center;
}
footer {
    position: fixed; /* Fixed position */
    bottom: 0; /* Stick to the bottom */
    right: 0; /* Stick to the right */
    background-color: #f8f9fa; /* Light background color */
    padding: 10px; /* Add padding for better appearance */
    width: 100%; /* Take the full width */
}
.driftstatus-ok {
    margin-top: 50px;
    padding: 30px;
    border: 2px solid #d4edda;
    background-color: #f0fff4;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}