/*
 * -------------------------------------------------------------------------------------------------
 * Filename: main.css
 * Description: Stylesheet for the application.
 *
 * Author: Daniel Kearns
 * Created: 2025-01-30
 * Last Modified: 2025-01-30
 *
 * Modification History:
 * -------------------------------------------------------------------------------------------------
 * Date        * Modified By                        * Description
 * ----------- * ---------------------------------- * ----------------------------------------------
 * 2025-01-30  * Daniel Kearns                      * Initial creation
 *
 */

.banner img {
  width: 100%;
  height: 100%;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
}
.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: darkcyan;
  color: white;
  z-index: 999;
}
.top-bar nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.top-bar nav a {
  color: white;
  text-decoration: none;
  margin-right: 10px;
  font-size: 1.2em;
}

#tableWrapper {
    height: 200px; /* Set the height of the wrapper element to 95% of the viewport height */
    width: 100%;
}

button#submit {
    background-color: green;
    color: white;
    border: none;
    padding: 10px 20px;
}
.popup {
    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;
    border-radius: 10px;
}

.popup-content {
    background-color: white;
    border-radius: 5px;
    border: 10px solid blue; /* New border rule */
    padding: 20px;
}

#okButton {
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
    display: block;
    margin: auto;
}
#cancelButton {
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
    display: block;
    margin: auto;
}
#deleteDeleteButton {
    background-color: green;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
    margin: auto;
}
#deleteCancelButton {
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
    margin: auto;
}
#confirmButton {
    background-color: green;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
    margin: auto;
}
#cancelConfirmButton {
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
    margin: auto;
}
.selectorPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 300px;
    display: none;
    border-radius: 10px;
    transform: translate(-50%, -50%);
}

.selectorPopupContent {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 5px;
    border: 10px solid blue; /* New border rule */
}

#selectorPopupCancelButton {
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
    align-self: flex-end; /* align the button to the bottom of the container */
    justify-self: flex-end; /* align the button to the right of the container */
    position: absolute; /* position the button relative to the container */
    bottom: 0; /* position the button at the bottom of the container */
    right: 0; /* position the button at the right of the container */
    margin: 10px; /* add some margin to the button */
}
    
.item-table {
    border: 1px solid #ddd;
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

    .item-table th,
    .item-table td {
        text-align: left;
        padding: 8px;
    }

    .item-table th {
        background-color: #0070c0;
        color: white;
    }

    .item-table tr:hover {
        background-color: #ddd;
    }

    .item-table td {
        border: 1px solid #ddd;
    }

    .report-table {
        border: 1px solid #ddd;
        border-collapse: collapse;
        width: 100%;
        font-family: Arial, sans-serif;
        font-size: 14px;
    }
    
        .report-table th,
        .report-table td {
            text-align: left;
            padding: 8px;
        }
    
        .report-table th {
            background-color: #0070c0;
            color: white;
        }
    
        .report-table tr:hover {
            background-color: #ddd;
        }
    
        .report-table td {
            border: 1px solid #ddd;
        }    
    .report-popup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: lightgoldenrodyellow;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-height: 100%;
    border: 4px solid black;
    font-weight: bold;
}

    .report-popup .close {
        position: absolute;
        top: 0;
        right: 0;
        cursor: pointer;
        color: firebrick;
    }
.spinner .spinner-icon {
    animation: spinner-rotate 1s infinite linear;
}

.spinner {
    border: 10px solid #f3f3f3;
    border-top: 10px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinner.animate {
    animation-name: spin;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.lightgreen-background {
    background-color: lightgreen !important;
}

/* For Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 10px; /* width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* color of the track */
}

::-webkit-scrollbar-thumb {
    background-color: blue; /* color of the thumb */
    border-radius: 5px; /* roundness of the thumb */
}

#productsContainer {
    height: 800px;
    width: 95%;
    margin-left: 25px;
    margin-top: 15 px;
    margin-bottom: 0px;
}

#dataTableContainer {
    height: 600px;
    width: 150%;
    margin-left: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.selected {
    background-color: #0dd;
}

    .borderless-button {
        border: none;
        background: none;
        padding: 0;
        margin: 0;
        cursor: pointer;
    }

/* Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}