#popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 900;
    background-color: #2c2c2c;
    border-radius: 10px;
    padding: 20px;
    width: 700px;
    height: 550px;
    max-height: 80vh;
    overflow-x: visible; /* 👈 fikser at tooltips ikke klippes */
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    display: none;
    transition: opacity 0.5s ease-in-out;
    user-select: none;
}

#popup-header-bar {
    height: 20px;
    cursor: move;
    background-color: transparent; /* Gjør den usynlig */
    border-bottom: none;           /* Fjern eventuell linje */
    box-shadow: none;              /* Fjern skygge */
    margin-bottom: 0;
}

.popup.error {
    background: #e74c3c; /* Rød farge for feil */
}
.popup.info {
    background: #3498db; /* Blå farge for informasjon */
}

.popup-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 15px;
}
.popup-header h3 {
    margin: 0;
    font-size: 1.5em;
    text-align: center;
}
.popup-header .close-button {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s;
}
.popup-header .close-button:hover {
    color: #e74c3c;
}
.tab-button {
    flex: 1;
    padding: 10px;
    text-align: center;
    background-color: #111;
    border: none;
    border-right: 1px solid #444;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.tab-button:last-child {
    border-right: none;
}
.tab-button:hover {
    background-color: #222;
}
.tab-button.active {
    background-color: #333;
    border-bottom: 2px solid #e74c3c;
}
.tab-content-container {
    width: 100%;
    flex-grow: 1;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.save-button {
    background-color: green;
    color: white;
    margin-top: 20px;
    padding: 5px 10px; /* Gjør knappen mindre */
    font-size: 0.9em; /* Reduser fontstørrelsen */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.save-button:hover {
    background-color: darkgreen;
}
#settings-popup-container .popup-header {
    display: flex;
    justify-content: center; /* Center the header content */
    width: 100%;
    margin-bottom: 15px;
    position: relative; /* Allow absolute positioning of the close button */
}
#settings-popup-container .popup-header h3 {
    margin: 0;
    font-size: 1.5em;
    text-align: center; /* Center the "Innstillinger" text */
}
#weather-location-popup .popup-header .close-button {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s;
}
#weather-location-popup .popup-header .close-button:hover {
    color: #e74c3c;
}
#settings-popup-container .popup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
#settings-popup-container .popup-buttons button {
    padding: 10px 15px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px; /* Add spacing between buttons */
}
#settings-popup-container .popup-buttons button:hover {
    background-color: #2980b9;
}
#settings-popup-container label {
    margin-bottom: 10px; /* Add spacing below labels */
}
#refresh-slider-label {
    margin-top: 20px; /* Add more spacing above the refresh slider label */
}
#settings-popup-container .slider-container {
    margin-bottom: 20px; /* Add spacing between sliders */
}
#settings-popup-container .save-button {
    background-color: green;
    color: white;
    margin-top: 20px; /* Add more spacing above the save button */
    padding: 10px 15px; /* Make the save button smaller */
    font-size: 1em; /* Decrease font size */
}
#refresh-slider-value-label {
    margin-bottom: 20px; /* Add more spacing below the refresh slider value label */
}
#screen-size-slider-label {
    margin-top: 20px; /* Add more spacing above the screen size slider label */
}
#weather-location-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #111;
    color: white;
    padding: 30px; /* Increase padding */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: center;
    width: 600px; /* Set consistent width */
    height: 500px; /* Set consistent height */
}
#weather-location-popup .popup-header {
    display: flex;
    justify-content: center; /* Center the header content */
    align-items: center;
    width: 100%;
    margin-bottom: 20px; /* Add more spacing below the header */
    position: relative; /* Allow absolute positioning of the close button */
}
#weather-location-popup .popup-header h3 {
    margin: 0;
    font-size: 1.5em;
    text-align: center; /* Center the "Angi lokasjon for vær" text */
}
#weather-location-popup .popup-header .close-button {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s;
}
#weather-location-popup .popup-header .close-button:hover {
    color: #e74c3c;
}
.folder-input-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #111;
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10001; /* Ensure it is above other popups */
    text-align: center;
    min-width: 500px;
    max-width: 700px;
}
.folder-input-popup .popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10001; /* Ensure it is above other popups */
}
.folder-input-popup h3 {
    margin-bottom: 10px;
}
.folder-input-popup p {
    margin-bottom: 20px;
    text-align: center;
}
.folder-input-popup input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.folder-input-popup .popup-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.folder-input-popup .popup-buttons .popup-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #3498db;
    color: white;
    transition: background-color 0.3s ease;
}
.folder-input-popup .popup-buttons .popup-button:hover {
    background-color: #2980b9;
}
.folder-input-popup .popup-buttons #folder-ok-button {
    background-color: #4CAF50;
}
.folder-input-popup .popup-buttons #folder-cancel-button {
    background-color: #f44336;
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #2196F3;
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.calendar-controls > div {
    display: flex;
    align-items: center;
    margin-bottom: 12px; /* gir luft mellom toggle-knappene */
  }
.calendar-controls .calendar-size-btn {
    margin: 0 5px;
    padding: 5px 10px;
    font-size: 0.9em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: #3498db;
    color: #fff;
    transition: background-color 0.3s ease;
}
.calendar-controls .calendar-size-btn:hover {
    background-color: #2980b9;
}

.popup-close {
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    margin-left: auto;
  }

.popup-close:hover {
    color: red;
}







select.modern-dropdown {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    transition: border-color 0.2s ease;
}
select.modern-dropdown:focus {
    border-color: #3498db;
    outline: none;
}








/* Legg dette i static/css/popup_styles.css eller styles.css */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
  }
  


  .btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
  }
  .btn-danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
  }
  .btn-primary:hover, .btn-danger:hover {
    opacity: 0.85;
  }




  .info-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.info-circle {
    width: 20px;
    height: 20px;
    background-color: #3498db; /* Samme blå som før */
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    user-select: none;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
    transition: background-color 0.3s;
}

.info-circle:hover {
    background-color: #2980b9; /* Litt mørkere blå på hover */
}

.info-icon .tooltip {
    visibility: hidden;
    width: 260px;
    background-color: #222;
    color: #f0f0f0;
    text-align: left;
    padding: 12px 16px;
    border-radius: 8px;
    position: absolute;
    z-index: 999;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
    font-size: 13px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    white-space: pre-line;
}

.info-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(5px); /* Litt glid opp */
}
