/*General things*/
body {
    /* font-family: Arial, Helvetica, sans-serif;*/
    margin: 20px;
    background-color: #f4f4f4;
    font-size: 18px;
}

.roboto-regular {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

label {
    display: block;
    margin: 10px 0;
}

h1 {
    text-align: center;
}

h2 {
    text-align: center;
}

.selected {
    background-color: #45a049 !important;
}

.container {
    flex-wrap: wrap;
    max-width: 1100px;
    /*How much of the screen is taken by the application*/
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.logo {
    position: fixed;
    right: 10px;
    bottom: 10px;
    width: 50px;
}



/*Big containers*/
.left-column {
    flex-basis: 50%;
    padding: 10px;
}




.right-column {
    flex-basis: 45%;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Adjust styles for screens smaller than 700px */
@media (max-width: 700px) {

    .left-column,
    .right-column {
        flex-basis: 100%;
        /* Each column takes up the full width */
    }
}


.food-selection {
    display: flex;
    justify-content: space-between;
    /* Aligns children on opposite ends */
    align-items: center;
    /* Optional: Vertically centers the items if their heights differ */
}

.popup-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.popup-message.show {
    opacity: 1;
    visibility: visible;
}


.order-box {
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
    width: 90%;
    /* Make order-box fill the container */
}







/*Buttons things*/
button {
    width: 100%;
    padding: 10px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    font-size: 16px;
}

button:hover {
    background-color: #2980b9;
}


.clean-button {
    width: auto;
}

.custom-time-picker {
    width: 100px;
}


/* orderBox Buttons */
.orderBoxButton {
    cursor: pointer;
    margin-top: 10px;
    margin-right: 6px;
    padding: 8px;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 22%;
    text-align: center;
    justify-items: stretch;
    justify-content: space-between;
}


/* Download Button Style */
.download-btn {
    background-color: #4caf50;
}

.download-btn:hover {
    background-color: #45a049;
}

body.dark-mode .download-btn:hover {
    background-color: rgb(21, 89, 29);
}


/*Delivered Button Style*/
.delivered-btn {
    background-color: #3498db;
}

.delivered-btn:hover {
    background-color: #2980b9;
}

body.dark-mode .delivered-btn:hover {
    background-color: #2980b9;
}



/* EDIT Button Style */
.edit-btn {
    background-color: #f39c12;
}

.edit-btn:hover {
    background-color: #e67e22;
}

body.dark-mode .edit-btn:hover {
    background-color: rgb(89, 59, 21);
}


/* Delete Button Style */
.delete-btn {
    background-color: #e74c3c;
}

.delete-btn:hover {
    background-color: #c0392b;
}

body.dark-mode .delete-btn:hover,
body.dark-mode .confirm-delete:hover {
    background-color: rgb(89, 21, 21);
}


/*Sidebar-Buttons*/
.sidebar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* Space between buttons */
    position: fixed;
    top: 20px;
    /* Adjust this as needed */
    left: 20px;
}

.side-bar,
.dark-mode-toggle,
#fullscreenButton {
    /* Apply common styles here */
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 50px;
    height: auto;
}


/*Archive Window*/
#archiveDialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Darken background */
    display: none;
    /* Start hidden */
    z-index: 5;
    /* Ensure it's above the page content but below the modal */
}

/* Archive Window */
#archiveWindow {
    position: fixed;
    width: 50%;
    height: 70%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    /* Keep modal background white */
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    /* Ensure it's above the overlay */
    overflow-y: auto;
    padding: 20px;
}



#closeArchiveWindowButton {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: auto;
    margin-right: 6px;
    margin-top: 6px;
    background-color: #e74c3c;
}




/*Confirm or Cancel Deletion*/
.confirmation-dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-items: center;
    z-index: 1000;
    /* Ensure it's above other content */
}

.confirmation-content {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 10px;
}

.confirm-delete {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

.confirm-delete:hover {
    background-color: #c0392b;
}

.cancel-delete {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.cancel-delete:hover {
    background-color: #f4f4f4;
}

/*Material Design*/
.material-symbols-outlined {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24
}

/* Custom Material Design 3 styles adjusted for software design aesthetics */
.md-input-container {
    margin-top: 50px;
    position: relative;
    margin-bottom: 1.5rem;
    /* Increased spacing */
}

.md-input {
    width: 100%;
    padding: 0.75rem;
    /* Adjust padding for better text visibility */
    border: none;
    border-bottom: 1px solid #ffffff;
    /* Softer border color */
    font-size: 1rem;
    /* Keeping font size consistent */
    outline: none;
    transition: border-bottom-color 0.3s;
    background-color: #FAFAFA;
    /* Light background to enhance focus */
    color: #212121;
    /* Darker text for better readability */
}

.md-input:focus {
    border-bottom-color: #3498db;
    /* Changed focus color to a more subtle shade */
}

.md-input-label {
    position: absolute;
    top: 0.25rem;
    /* Adjusted for better alignment with increased padding */
    left: 6px;
    font-size: 1rem;
    /* Slightly larger label for readability */
    color: #9E9E9E;
    /* Softer color for the label */
    pointer-events: none;
    transition: top 0.3s, font-size 0.3s, color 0.3s;
}

.md-input:focus+.md-input-label,
.md-input:not(:placeholder-shown)+.md-input-label {
    top: -2rem;
    /* More distinct movement to draw attention */
    font-size: 0.85rem;
    color: #000;
    /* Matching focus color for consistency */
}


.food-item {
    width: 100px;
    height: 100px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s;
    vertical-align: middle;
    font-size: 16px;
}

.food-item:hover {
    background-color: #2980b9;
}

.food-item-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    /* Decrease the horizontal gap between items */
}

.food-item-container {
    flex: 1;
    max-width: calc(40% - 10px);
    /* Adjust max-width to compensate for the reduced gap */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quantity-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding-top: 5px;
}

.qnt-display {
    width: 10px;
    text-align: center;
}


.decrease-btn,
.increase-btn {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    /* Horizontally center align the text */
    align-items: center;
    /* Vertically center align the text */
    font-size: 16px;
    /* Adjust font size as needed */
}





#addToOrderBtn {
    margin-top: 16px;
    height: 50px;
}

#finishEditBtn {
    display: none;
    margin-top: 16px;
    height: 50px;
    background-color: #f39c12;
}

#finishEditBtn:hover {
    margin-top: 10px;
    height: 50px;
    background-color: #e67e22;
}



/* OrderBox when it is being edited*/
.highlighted-order {
    border: 3px solid #f39c12;
    border-radius: 10px;
    /* Adjust radius as needed */
}




/* Dark Mode Styles */
body.dark-mode,
body.dark-mode .order-box,
body.dark-mode .confirmation-content {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .food-item,
body.dark-mode button,
body.dark-mode #fullscreenButton,
body.dark-mode .download-btn,
body.dark-mode .right-column {
    background-color: #333333;
    color: #ffffff;
}

body.dark-mode .food-item:hover,
body.dark-mode button:hover {
    background-color: #444444;
}