body {
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: Arial, sans-serif;
}

#tablet {
    width: 90vw;
    height: 90vh;
    padding: 0;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('./img/baggrund.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
    z-index: 1000; 
    border: 5px solid black;
    border-radius: 16px;
}

.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: red;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  display: none;
  z-index: 1000;
}
.notification.show {
  display: block;
}

#tablet-notification {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #d9534f;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1100;
    white-space: nowrap;
}

#tablet-notification.show {
    opacity: 1;
}

#center-kasse {
    width: 430px;
    height: 350px;
    background-color: transparent; 
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px; 
    box-sizing: border-box;
}

/* Logo-bar */
#center-kasse::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    border-radius: 8px 8px 0 0;
    background-image: url('./img/politi.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#klokkeslæt {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    font-weight: 800;
    font-family: 'Arial', sans-serif;
    color: white;
}

.input-label {
    color: white;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 5px;
    user-select: none;
}

.skriv-kasse {
    width: 70%;
    padding: 10px 40px 10px 15px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    color: white;
    font-size: 18px;
    font-family: Arial, sans-serif;
    outline: none;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    text-align: left;
}

.skriv-kasse:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 1px 1px #4A90E2;
}

.skriv-kasse-container {
    position: relative;
    width: 70%;
}

.skriv-kasse-container::after {
    content: "→";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4A90E2;
    font-weight: bold;
    font-size: 22px;
    pointer-events: none;
}

#dato {
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    font-weight: 600;
    font-family: 'Arial', sans-serif;
    color: white;
    user-select: none;
}

#loginBtn {
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 12px 30px;
    background-color: #3278e3;
    color: white;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
}

#loginBtn:hover {
    background-color: #2762ba;
}

#loginBtn:active {
    transform: scale(0.98);
}

#notification {
    position: absolute;
    top: 20px;
    right: -100%;
    background-color: #2c3e50;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: right 0.4s ease-in-out, opacity 0.4s ease-in-out;
    z-index: 999;
    opacity: 0;
    white-space: nowrap;
    max-width: 80%;
}

#notification-icon {
    margin-right: 8px;
    font-size: 16px;
}

#notification.show {
    right: 20px;
    opacity: 1;
}

#content {
    flex-grow: 1;
    padding: 20px;
}

#main-content {
    flex-grow: 1;
    padding: 20px;
    box-sizing: border-box;
    background-color: #222;
}

.nav-btn {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #ccc;
    padding: 12px 0;
    text-align: left;
    font-size: 17px;
    cursor: pointer;
}

.nav-btn:hover {
    color: white;
}

#topbar {
    height: 50px;
    background-color: #111;
    border-bottom: 2px solid #444;
    width: 100%;
    flex-shrink: 0;
}

#logoutBtn {
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.category {
    margin-bottom: 15px;
    cursor: pointer;
    user-select: none;
}

.category-title {
    font-weight: bold;
    padding: 8px 12px;
    background-color: #222;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.category-title:hover {
    background-color: #3278e3;
    color: white;
}

.submenu {
    margin-top: 6px;
    margin-left: 12px;
    display: none;
    flex-direction: column;
}

.submenu .nav-item {
    padding: 6px 10px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.submenu .nav-item:hover {
    background-color: #3278e3;
    color: white;
}

html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#police-screen {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: transparent;
}

#sidebar {
    width: 220px;
    background-color: #141414;
    color: #bbb;
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
    overflow-y: auto;
}

.sidebar {
  width: 250px;
  background: #1c1f26;
  color: white;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  overflow: hidden;
  border-right: 1px solid #2b2f38;
}

.sidebar.collapsed {
  width: 60px;
}

/* Header */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 12px 0;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle {
  transform: rotate(180deg);
}

.sidebar-title {
  font-size: 18px;
  transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .menu-text {
  display: none;
}

/* Menu */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.sidebar-menu li {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.sidebar-menu li i {
  width: 20px;
  text-align: center;
}

.sidebar.collapsed li {
  justify-content: center;
  gap: 0;
  padding: 12px 0;
}

.sidebar-menu li:hover {
  background-color: #1f1e1e;
}

.menu-category {
  padding: 10px 20px;
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
  margin-top: 15px;
}

.sidebar.collapsed .menu-category {
  display: none;
}

/* Bottom section */
.sidebar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar.collapsed .sidebar-bottom {
  align-items: center;
}

.sidebar-user {
  flex-grow: 1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar.collapsed .sidebar-user .menu-text {
  display: none;
}

.logout-button {
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.sidebar.collapsed .logout-button .menu-text {
  display: none;
}

.sidebar.collapsed li:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 70px;
  background: #2b2f38;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 100;
  font-size: 14px;
}

#content-wrapper {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

h2, h3 {
    color: #eee;
    margin: 0 0 15px 0;
}

.dashboard-cards {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.card {
    background-color: #2a2a2a;
    padding: 15px 20px;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
    text-align: center;
}

.card p {
    margin: 0 0 5px 0;
    color: #ccc;
}

.card h3 {
    margin: 0;
    font-size: 22px;
    color: #f0f0f0;
}

.section-box {
    background-color: #222;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.person {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.person:last-child {
    border-bottom: none;
}

.person img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #555;
}

button {
    background-color: #444;
    border: none;
    color: #ddd;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: Arial, sans-serif;
}

button:hover {
    background-color: #666;
}

#toggleSidebar {
    background-color: transparent;
    border: none;
    color: #bbb;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
}

#toggleSidebar:hover {
    color: #fff;
}

#sidebar.collapsed {
    width: 50px;
}

#sidebar.collapsed .sidebar-menu li span:nth-child(2) {
    display: none;
}

#sidebar.collapsed .sidebar-header span:nth-child(2) {
    display: none;
}

.view-section {
    padding: 20px;
    color: white;
    font-size: 20px;
}

.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
}

#searchBorger {
    flex: 1;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
}

#searchBorger:focus {
    border-color: #4d8aff;
    box-shadow: 0 0 5px #4d8aff;
}

select#genderFilter {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #2f2f2f;
    color: white;
}

.search-results {
    width: 100%;
    border-radius: 6px;
    background-color: #444857;
    padding: 8px;
}

.person-card {
    display: flex;
    align-items: center;
    background-color: #5a5e6b;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 6px;
    transition: background-color 0.2s ease;
}

.person-card:hover {
    background-color: #6c7080;
}

.initials-icon {
    width: 40px;
    height: 40px;
    background-color: #3d3dff;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.person-details {
    flex: 1;
    display: flex;
    gap: 40px;
    align-items: center;
}

.person-details span {
    font-size: 15px;
    color: white;
}

.badge {
    background-color: red;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 13px;
}

.sidebar-menu li i {
    font-size: 16px;
    width: 20px;
    color: #aaa;
}

.sidebar-menu li span {
    font-weight: 600;
    font-family: Arial, sans-serif;
}

.flaade-input {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.flaade-input input {
  flex: 1;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.8);
  background: transparent;
  color: white;
  outline: none;
}
.flaade-input input:focus {
  border-color: #4A90E2;
  box-shadow: 0 0 2px #4A90E2;
}
#opretKategoriBtn {
  padding: 10px 20px;
  background-color: #3278e3; 
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  transition: background-color .2s;
}
#opretKategoriBtn:hover {
  background-color: #2762ba;
}

.kategori-box {
  background-color: #222;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}
.kategori-header {
  font-weight: 600;
  margin-bottom: 8px;
  color: #eee;
}
.kategori-body .person-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kategori-body .initials-icon {
  width: 36px;
  height: 36px;
  background-color: #3d3dff;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kategori-body .person-details span {
  color: white;
  font-size: 15px;
}

.menu-category {
  padding: 10px;
  font-weight: bold;
  color: #ccc;
  font-size: 14px;
  text-transform: uppercase;
  margin-top: 10px;
  pointer-events: none;
}

.submenu {
  padding-left: 20px;
}

.flaade-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.flaade-box {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  padding: 25px;
  width: 75%;
  min-height: 200px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.flaade-search {
  width: 60%;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 20px;
  background-color: #1d1d1d;
  color: white;
  font-family: Arial, sans-serif;
  outline: none;
  transition: outline 0.2s ease;
}

.flaade-search:focus {
  outline: 2px solid #3278e3;
}

.kategori-container {
  margin-top: 30px;
}

.flaade-searchbar {
  width: 100%;
  padding: 12px 20px;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background-color: transparent;
  color: white;
  outline: none;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.flaade-searchbar:focus {
  border-color: #3278e3;
  box-shadow: 0 0 8px 2px #3278e3;
}

.flaade-skriv-kasse {
    width: 70%;
    padding: 10px 40px 10px 15px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    color: white;
    font-size: 18px;
    font-family: Arial, sans-serif;
    outline: none;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    text-align: left;
}

.flaade-skriv-kasse:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 1px 1px #4A90E2;
}

.flaade-skriv-kasse-container {
    position: relative;
    width: 70%;
    margin-left: 25%;
}

.flaade-skriv-kasse-container::after {
    content: "→";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4A90E2;
    font-weight: bold;
    font-size: 22px;
    pointer-events: none;
}

.flaade-container {
  display: flex;
  flex-direction: column;
  align-items: center;  
  padding-top: 20px;    
  padding-bottom: 50px; 
  height: 100%;         
  box-sizing: border-box;
}

.flaade-box {
  width: 90%;
  height: 750px; 
  background-color: #222222; 
  margin-top: 25px;
  border: none;
  border-radius: 0; 
  padding: 15px 20px;
  color: white;
  box-shadow: none; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-tilfoej-kategori {
  background-color: #4A90E2;
  border: none;
  border-radius: 24px;
  padding: 10px 30px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s ease;
  margin-left: 20px; 
  height: 50px; 
  align-self: center; 
}

.btn-tilfoej-kategori:hover {
  background-color: #3A78C2;
}

.modal-baggrund {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-container {
  background-color: #121212; 
  padding: 30px 40px;
  border-radius: 12px;
  width: 400px;
  box-sizing: border-box;
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
}

.modal-container h2 {
  margin-bottom: 20px;
  font-weight: normal;
  font-size: 20px;
}

.skriv-kasse-kategori {
  width: 100%;
  padding: 10px 40px 10px 15px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  color: white;
  font-size: 18px;
  outline: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  text-align: left;
  margin-bottom: 25px;
}

.skriv-kasse-kategori:focus {
  border-color: #4A90E2;
  box-shadow: 0 0 1px 1px #4A90E2;
}

.skriv-kasse-kategori-container {
  position: relative;
  width: 100%;
}

.skriv-kasse-kategori-container::after {
  content: "→";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #4A90E2;
  font-weight: bold;
  font-size: 22px;
  pointer-events: none;
}

.btn-luk-modal {
  background-color: transparent;
  border: none;
  color: #4A90E2;
  font-size: 18px;
  cursor: pointer;
  margin-top: 10px;
  text-decoration: underline;
}

#settings-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #3278e3;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

#settings-notification.show {
  opacity: 1;
  pointer-events: auto;
}

.settings-box {
  background-color: #1a1a1a;
  padding: 25px 30px;
  border-radius: 12px;
  position: relative;
  left: -10px; /* prøv en større værdi */
  margin: 20px 0; /* fjern auto */
  max-width: 400px;
  color: white;
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.settings-box label {
  font-weight: 600;
  font-size: 18px;
}

.background-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  background-color: #292929;
  color: white;
  outline: none;
}

.btn-save {
  align-self: flex-start;
  padding: 10px 25px;
  background-color: #3278e3;
  border: none;
  border-radius: 24px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.btn-save:hover {
  background-color: #255bb5;
}

.settings-notification {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3278e3;
  color: white;
  padding: 12px 30px;
  border-radius: 24px;
  font-weight: 600;
  font-family: Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.settings-notification.show {
  opacity: 1;
  pointer-events: auto;
}

.settings-container {
  display: flex;
  gap: 20px;
  max-width: 850px; /* lidt bredere end to bokse */
  margin: 20px auto;
}

.settings-box {
  background-color: #1a1a1a;
  padding: 25px 30px;
  border-radius: 12px;
  max-width: 400px;
  color: white;
  font-family: 'Arial', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1; /* fylder ligeligt */
}