@media only screen and (max-width: 480px) {
    .main-container .deliveries {
        width: 90%;
    }
}

@media (min-width: 768px) {
    .main-container .deliveries {
        width: 65%;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.main-container {
    max-width: 100%;
    width: 93%;
    margin: 0 auto;
    padding-top: 1%;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    margin-top: auto;
}

.header h2 {
    font-weight: 700;
    margin-bottom: 5px;
}

.header p {
    font-size: 18px;
    font-weight: 500;
}

.footer {
    padding: 20px 0;
    background-color: #f7f9fc;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #d1d4d8;
    margin-top: 40px;
}

.footer a {
    text-decoration: none;
    color: #007BFF;
}

.footer a:hover {
    text-decoration: underline;
}


.main-container {
    padding-bottom: 30px;
}

.selected-row {
    background-color: rgb(239, 165, 9);
}

.navbar {
    font-family: 'Roboto', sans-serif;
}

.nav-link {
    font-family: 'Roboto', sans-serif;
}

.roboto-form, .roboto-form * {
    font-family: 'Roboto', sans-serif;
}

.wave {
    animation-name: wave-animation; /* Refers to the name of your @keyframes element below */
    animation-duration: 2.5s; /* Change to speed up or slow down */
    animation-iteration-count: infinite; /* Never stop waving :) */
    transform-origin: 70% 70%; /* Pivot around the bottom-left palm */
    display: inline-block;
    font-size: 1.5em;
}

@keyframes wave-animation {
    0% {
        transform: rotate(0.0deg)
    }
    10% {
        transform: rotate(14.0deg)
    }
    /* The following five values can be played with to make the waving more or less extreme */
    20% {
        transform: rotate(-8.0deg)
    }
    30% {
        transform: rotate(14.0deg)
    }
    40% {
        transform: rotate(-4.0deg)
    }
    50% {
        transform: rotate(10.0deg)
    }
    60% {
        transform: rotate(0.0deg)
    }
    /* Reset for the last half to pause */
    100% {
        transform: rotate(0.0deg)
    }
}

.tag {
    padding: 6px 12px;
    margin: 4px;
    margin-right: 1px;
    border-radius: 16px;
    font-size: 14px;
    color: #fff;
    display: inline-block;
    text-align: center;
    cursor: default;
}

#pdfViewerFrame {
    width: 70%;
    height: 100%;
    border: none; /* Removes the iframe border */
}

#pdfModal .modal-dialog {
    max-width: 70%;
    max-height: 100%;
    min-height: 500px;
    margin: 0% auto;
}

#pdfModal .modal-content {
    height: 100%;
}


#pdfModal .modal-body {
    flex: 1;
    overflow: auto;
}

#pdfModal .modal-dialog {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pdf-modal-top {
    z-index: 1060 !important;
}

.pdf-modal-top .modal-backdrop {
    z-index: 1055 !important;
}

.pdfPreview {
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 80%;
}

.pdfPreview:hover {
    background-color: #1B5949;
    color: white;
    font-weight: bolder;
}

html {
    height: 100%;
}

.content-wrapper {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    padding: 20px 0;
    background-color: #f7f9fc;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #d1d4d8;
    width: 100%;
    margin-top: 30px;
}

/* Styling the dropdown menu container */
.dropdown-menu {
    background-color: #f8f8f8; /* Light gray background */
    border: none; /* Remove the default border */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Styling the dropdown items */
.dropdown-item {
    transition: background-color 0.3s; /* Smooth transition for hover effects */
}

.dropdown-item:hover {
    background-color: #e0e0e0; /* Change background color on hover */
}

.dropdown-item a {
    color: #333; /* Text color for the links */
    text-decoration: none; /* Remove the default underline */
}

.dropdown-item a:hover {
    color: #555; /* Darken text color on hover */
}

/* Styling the notification circle */
.notification-circle {
    display: inline-block;
    min-width: 20px; /* Minimum width to accommodate numbers */
    height: 20px;
    background-color: #f00; /* Red color for notifications */
    border-radius: 50%; /* Make it a circle */
    vertical-align: middle; /* Align it with the text */
    text-align: center; /* Center the number within the circle */
    line-height: 20px; /* Vertically center the text */
    font-size: 12px; /* Adjust font size if needed */
    color: #fff; /* White text */
    visibility: hidden; /* Hidden by default */
}

/* If the notification circle is used in the main dropdown header, it might need slightly different styling */
#main-counter {
    position: sticky; /* Position it relative to its parent */
    top: 0; /* Adjust these values to position the circle */
    right: 0;
}

.centered-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ensures it takes full height of parent */
}

.icon-text {
    font-size: 16px;
    color: #333;
    font-weight: bold;
    margin-left: 10px;
    vertical-align: middle;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

@keyframes pulsate-opacity {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-dot {
    font-size: xx-large;
    animation: pulsate-opacity 1.5s infinite ease-in-out;
}

.tabulator .tabulator-group {
    background-color: #f7f7f7; /* Change group header background */
    color: #333; /* Change group header text color */
    font-weight: bold; /* Make group header text bold */
    border-bottom: 2px solid #ccc; /* Add border below group header */
}

.tabulator .tabulator-group .tabulator-arrow {
    color: #333; /* Change group arrow color */
}

.tabulator .tabulator-row.tabulator-group-level-0 {
    background-color: #e8e8e8; /* Change background for top-level group rows */
}

/* You can specify further levels if needed */
.tabulator .tabulator-row.tabulator-group-level-1 {
    background-color: #e0e0e0; /* Change background for second-level group rows */
}

/* Style for group count badge if you have one */
.tabulator .tabulator-group .tabulator-group-count {
    background: #333; /* Change background of the count badge */
    color: #fff; /* Change text color of the count badge */
    border-radius: 10px; /* Round corners */
    padding: 2px 5px; /* Add some padding */
    margin-left: 10px; /* Add left margin */
    font-size: 0.85em; /* Change font size */
}

.tabulator .tabulator-cell[tabulator-field="description"] {
    white-space: normal; /* Ensure text wraps in the description column */
}

.details {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    align-items: center; /* Ensures everything in details is centered */
}

.action-and-comment-container {
    display: flex;
    width: 100%;
    justify-content: left;
}

.button-container {
    flex-basis: 20%;
    flex-shrink: 5;
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 20px;
    border-right: 2px solid #ccc;
    margin-right: 10px;
}

.comment-container {
    flex-grow: 0;
    flex-shrink: 6;
    flex-basis: 50%;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Centers the messages */
    border-right: 2px solid #ccc;
    width: 40%; /* Adjust this to control the width of the comment area */
}

.file-container {
    flex-grow: 1;
    flex-shrink: 20;
    flex-basis: 40%;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 30%;
    gap: 1px;
}

.message-bubble {
    max-width: 350px;
    width: 100%; /* Ensures all messages take up the same width */
    padding: 10px;
    border-radius: 10px;
    margin: 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
}

.user1, .user2 {
    width: calc(100% - 10px); /* Adjusts width, accounting for padding */
}

.user1 {
    align-self: flex-end;
    background-color: #dcf8c6;
}

.user2 {
    align-self: flex-start;
    background-color: #f0f0f0;
}

.file-bubble-bg {
    align-self: flex-start;
    background-color: #f8edc1;
}

.message-info {
    width: 100%; /* Ensures the sender and time are aligned correctly */
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}

.sender-name {
    font-weight: bold;
    color: #333;
}

.message-time {
    color: #777;
    font-size: 12px;
}

.message-text {
    font-size: 14px;
    color: #333;
    word-wrap: break-word;
    margin: 0;
    white-space: normal;
}

.comment-container {
    max-height: 300px;
    overflow-y: auto;
}

.larger-checkbox {
    width: 25px;
    height: 25px;
    margin: 35px;
}

.text-center-new {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.form-label-new {
    margin-bottom: 0.5rem; /* Adjust the spacing between the label and the checkbox */
}

.file-bubble {
    display: inline-block;
    padding: 10px;
    background-color: #f0f0f0; /* Light grey background */
    color: #333; /* Dark grey text */
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px; /* Add some spacing between files */
}

.download-link {
    font-size: 14px;
    font-weight: bold;
    color: #3f2b5f;
    text-decoration: none;
    border-bottom: 2px solid #33224b;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.download-link:hover {
    color: #32214d;
    border-bottom: 2px solid #281a3a;
}

/* ************  NOVI CSS  ***************** */

/* Provjera zaliha */

.searchButton {
    background-image: linear-gradient(to right, #047AC2, #4C74C6, #756BC3);
    color: white;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-image 0.8s ease;
}

.loginButton {
    background-image: linear-gradient(to left, #047AC2, #4C74C6, #756BC3, #9761B9);
    color: white;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-image 0.8s ease;
}

.loginButton:hover {
    background-image: linear-gradient(to right, #047AC2, #4C74C6, #756BC3, #9761B9);
    color: white;
}

.searchButton:hover {
    background-image: linear-gradient(to left, #047AC2, #4C74C6, #756BC3, #9761B9);
    color: white;
    font-weight: bold;
}

#suggestions {
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9; /* Neutral background color */
    border-radius: 4px;
    position: absolute;
    z-index: auto;
    margin-top: 0rem;
}

#suggestions div {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-image 0.2s ease;
    color: #333; /* Dark text color for better contrast */
}

#suggestions div:hover {
    background-image: linear-gradient(to right, #047AC2, #4C74C6, #756BC3);
    color: white;
}

#suggestions div:focus {
    background-image: linear-gradient(to right, #047AC2, #4C74C6, #756BC3); /* Updated to a more muted color from the palette */
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Added new styles for better contrast */
#suggestions div:active {
    background-image: linear-gradient(to right, #047AC2, #4C74C6, #756BC3); /* Updated to a more muted color from the palette */
    color: white;
}

#productInfoBox {
    display: none;
    border: 1px solid #7CC0E4;
    border-radius: 5px;
    padding: 10px;
    background-image: linear-gradient(to right, #047AC2, #4C74C6, #756BC3);
    margin-bottom: 20px;
    font-size: 17px;
    color: white;
}


.product-info-label {
    font-weight: bold;
    margin-right: 5px;
}

.product-info {
    margin-right: 10px;
}

.product-table thead {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #7CC0E4;
    background-image: linear-gradient(to right, #047AC2, #4C74C6, #756BC3);
    border-radius: 5px;
    margin-bottom: 20px;
    color: white;
}

.update-button {
    border: white;
    background-color: transparent;
    cursor: pointer;
}

.update-button-plus {
    color: #3D4756;
}

.update-button-minus {
    color: #3D4756;
}

.update-button-plus:hover {
    background-color: #f9e7e1;
    color: #C84793;
    transition: background-color 0.3s ease;
}

.update-button-minus:hover {
    background-color: #f9e7e1;
    color: #C84793;
    transition: background-color 0.3s ease;
}

.highlighted {
    background-image: linear-gradient(to left, #047AC2, #4C74C6, #756BC3, #9761B9);
    color: white;
    font-weight: bold;
    transition: background-image 0.8s ease;
}

.product-table tbody tr:hover {
    background-image: linear-gradient(to right, #047AC2, #4C74C6, #756BC3, #9761B9);
    color: white;
    font-weight: bold;
    transition: background-image 0.8s ease;
}

/* Ponude */

#addProductButton {
    background-color: #047AC2;
    font-weight: bold;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#addShippingCostButton {
    background-color: #4C74C6;
    font-weight: bold;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#createOfferButton:hover,
#createOfferButton-PT:hover,
#clearFormButton:hover,
#addShippingCostButton:hover,
#addProductButton:hover,
.load-button-offer:hover,
.download-button-offer:hover,
.delete-button-offer:hover,
.remove-product-button:hover {
    background-color: #C84793;
    color: white;
}

#createOfferButton {
    background-color: #756BC3;
    font-weight: bold;
    color: white;
    padding: 10px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-grow: 1;
    margin-right: 10px;
}

#createOfferButton-PT {
    background-color: #9761B9;
    font-weight: bold;
    color: white;
    padding: 10px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-grow: 1;
    margin-right: 10px;
}

#clearFormButton {
    background-color: #B354A9;
    font-weight: bold;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-button-offer {
    background-color: #B354A9;
    color: white;
    width: 45px;
    margin: 2.5px;
}

.download-button-offer {
    background-color: #9761B9;
    color: white;
    width: 45px;
    margin: 2.5px;
}

.delete-button-offer {
    background-color: #756BC3;
    color: white;
    width: 45px;
    margin: 2.5px;
}

.remove-product-button {
    background-color: #B354A9;
    color: white;
}

#productTable {
    display: none;
    width: 100%;
}

/* OPTIMOROUTE */

#loadRoutesButton,
#getOrdersButton,
.close-template-button {
    background-color: #047AC2;
    font-weight: bold;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#loadRoutesButton:hover,
#getOrdersButton:hover,
#resetButton:hover,
#groupSMS:hover,
.close-template-button:hover,
.save-template-button:hover {
    background-color: #C84793;
    color: white;
}

#resetButton,
.save-template-button {
    background-color: #B354A9;
    font-weight: bold;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#resetButton {
    display: none;
}

#groupSMS {
    background-color: #756BC3;
    font-weight: bold;
    color: white;
    padding: 10px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-grow: 1;
    margin-right: 10px;
}
