 body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f5f5;


            align-items: center;
          
        }

        .login-container {
            width: 90%;
            max-width: 400px;
            background-color: #ffffff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .login-container h1 {
            font-size: 24px;
            margin-bottom: 20px;
            color: #333;
        }

        .login-container .input-group {
            margin-bottom: 15px;
            text-align: left;
        }

        .login-container label {
            display: block;
            font-size: 14px;
            margin-bottom: 5px;
            color: #555;
        }

        .login-container input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;
        }

        .login-container .login-button {
            width: 100%;
            padding: 10px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            margin-top: 10px;
        }

        .login-container .login-button:hover {
            background-color: #45a049;
        }

        .login-container .google-button {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            background-color: #db4437;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            margin-top: 10px;
        }

        .login-container .google-button i {
            margin-right: 10px;
        }

        .login-container .google-button:hover {
            background-color: #c33d2e;
        }


        #reader {
            margin: 20px auto;
            width: 300px;
            height: 300px;
            border: 2px solid #ccc;
            border-radius: 10px;
        }

        .btn {
            display: inline-block;
            padding: 10px 20px !important;
            font-size: 16px !important;
            color: #fff !important;
            background-color: #007BFF!important; 
            border: none!important;
            border-radius: 5px!important;
            cursor: pointer!important;
            margin: 10px 5px!important;
            text-decoration: none!important;
        }

        .btn:hover {
            background-color: #0056b3!important;
        }

        #result {
            margin-top: 20px;
        }

        .hidden {
            display: none!important;
        }

        .options {
            margin-top: 20px;
        }

        .options button {
            margin: 10px;
        }
 .scanner-container {
            max-width: 500px;
           margin:auto;
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

     text-align: center
        }

        h1 {
            font-size: 24px;
            text-align: center;
            color: #333;
        }

        form {
            margin-top: 15px;
        }

         input, form button, form textarea, select {
            display: block;
            width: 100%;
            margin-bottom: 10px;
            padding: 10px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
        }

        form button {
            background-color: #007bff;
            color: #fff;
            border: none;
            cursor: pointer;
        }

        form button:hover {
            background-color: #0056b3;
        }

        .options {
            margin-top: 20px;
        }

        .options button {
            width: auto;
            margin-right: 10px;
            background-color: #007bff;
            color: #fff;
            border: none;
            cursor: pointer;
            padding: 10px 15px;
            border-radius: 4px;
        }

        .options button:hover {
            background-color: #0056b3;
        }

    

        #createItemForm {
            margin-top: 20px;
        }

        textarea {
            resize: vertical;
        }

        #result img {
            
            display: block;
            margin: 10px auto;
            cursor: pointer;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        #result p {
            text-align: center;
        }


  /* Modal layout */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0; /* Top, right, bottom, left = 0 */
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;         /* ðŸ’¡ SÃ¥ den ikke vokser uendeligt */
    overflow-y: auto;         /* ðŸ’¡ Scroll inde i modal ved behov */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
}


        .close-button {
            color: #aaa;
            position: absolute;
            top: 10px;
            right: 16px;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .close-button:hover {
            color: #000;
        }

       #reader {
    width: 100% !important;

    height: auto !important;
    margin: 0 auto;
}

/* Luk-knappen */
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Formular styling */
.modal label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.modal input,
.modaltextarea,
.modal button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
.modaltextarea{
        min-height: 100px;
}
.modal button.btn {
    background-color: #007BFF;
    color: #fff;
    border: none;
    margin-top: 20px;
    font-weight: bold;
    cursor: pointer;
}

.modal button.btn:hover {
    background-color: #0056b3;
}




 .checked-off td {
    text-decoration: line-through;
    opacity: 0.6;
}     

.priority-high td {
    background-color: #ffe5e5;
    font-weight: bold;
}
.priority-medium td {
    background-color: #fffbe0;
}
.priority-low td {
    background-color: #e7f7e7;
    opacity: 0.8;
}
table {
    width: 100%
}
td {
    padding:5px;
}
  .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            background: #f8f8f8;
            border-bottom: 1px solid #ccc;
        }
        .scanner-icon {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
        }
 .online-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid #ddd;
}

.result-img {
  width: 60px;
  height: auto;
  border-radius: 8px;
}

.result-details {
  flex: 1;
}

.result-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.result-sub {
  font-size: 14px;
  color: #555;
}

.choose-btn {
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 8px;
}

.choose-btn:hover {
  background-color: #005fc1;
}



.tilbud-kort {
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.tilbud-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tilbud-billede {
    width: 120px;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.tilbud-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.tilbud-info > div {
    margin: 2px 0;
    line-height: 1.4;
}

.tilbud-navn {
    font-weight: bold;
    font-size: 1rem;
}
.tilbud-pris {
    font-size: 18px;
    font-weight: bold;
}
.tilbud-links {
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.tilbud-links .btn,
.tilbud-link {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.tilbud-link {
    background-color: #eee;
    color: #007bff;
    border: 1px solid #007bff;
}




body {
  overscroll-behavior-y: auto;
}
.pull-to-refresh {
  position: fixed;
  top: -50px;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: top 0.7s ease-in-out;
}
.pull-to-refresh.visible {
  top: 0;
}

table.shopping-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-family: sans-serif;
}

table.shopping-table th {
    background-color: #f9f9f9;
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
}

table.shopping-table td {
    background-color: #fff;
    padding: 10px;
    vertical-align: top;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Prioritetsfarver */
.priority-high td {
    background-color: #ffe5e5;
}
.priority-medium td {
    background-color: #fff9e5;
}
.priority-low td {
    background-color: #e6f5e9;
}

/* Kun farvebånd i første kolonne */
.priority-high td:first-child {
    border-left: 5px solid #e53935;
}
.priority-medium td:first-child {
    border-left: 5px solid #ffc107;
}
.priority-low td:first-child {
    border-left: 5px solid #28a745;
}


.shopping-prioritet small {
    display: block;
    color: #666;
    margin-top: 4px;
    font-size: 0.85em;
}
.purchase-check {
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    appearance: auto; /* sørg for at systemets checkbox bruges */
    -webkit-appearance: auto; /* ekstra for iOS Safari */
}
.green-text {
    color: green!important;
}

.red-text {
    color: red!important;
    font-weight: bold;
}

.yellow-text {
    color: orange!important; /* eller gul hvis du hellere vil */
    font-weight: bold;
}