html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* Modern font */
}

body {
    display: flex;
    flex-direction: column;
    background-color: #f0f2f5; /* Light grey background */
    color: #333;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    background-color: #4CAF50; /* Green header */
    color: white;
    padding: 10px 0;
    border-radius: 5px;
    position: relative;
}

.user-info {
    position: absolute;
    top: 10px;
    right: 10px;
}

.user-info a {
    color: white;
    text-decoration: none;
}

main {
    flex: 1;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

form input, form button {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
}

form button {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

form button:hover {
    background-color: #45a049;
}

form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
    background-color: white;
    cursor: pointer;
}

form select:focus {
    border-color: #4CAF50;
    outline: none;
}

#gift-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#archived-gift-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#archived-gift-cards-container.hidden {
    display: none;
}

.gift-card {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background-color: #fff;
    width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.archived {
    background-color: #e0e0e0;
    border-color: #bdbdbd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.archived h3 {
    color: #757575;
}

.archived p {
    color: #757575;
}

.archived button {
    background-color: #9e9e9e;
}

.archived button:hover {
    background-color: #757575;
}

.hidden {
    display: none;
}

.gift-card h3 {
    margin: 0;
    font-size: 1.2em;
}

.gift-card p {
    margin: 5px 0;
}

.gift-card button {
    margin: 5px 0;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.gift-card button:hover {
    background-color: #45a049;
}

.gift-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

/* Modal overlay styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

/* Class to show the modal */
.modal-overlay.show {
    display: flex;
}

/* Modal dialogue box styling */
.modal {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.modal-content h4 {
    margin-top: 0;
}

.modal-footer {
    text-align: right;
}

.modal-save, .modal-cancel {
    margin: 5px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-save {
    background-color: #4CAF50;
    color: white;
}

.modal-cancel {
    background-color: #f44336;
    color: white;
}

.modal-save:hover {
    background-color: #45a049;
}

.modal-cancel:hover {
    background-color: #e53935;
}

footer {
    text-align: center;
    background-color: #4CAF50;
    color: white;
    padding: 10px 0;
    border-radius: 5px;
    margin-top: 20px;
}

/* Barcode modal styling */
#barcodeModal img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

/* Collapsible panel styling */
.collapsible {
    margin-top: 20px;
}

.collapsible-content {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff; /* Change to white to match the main content background */
    display: none;
}

.collapsible-content.hidden {
    display: none;
}

.collapsible-content:not(.hidden) {
    display: block;
}

/* Toggle Switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 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: .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: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}