.backend-container {
    height: 100%;
    width: 100%;
    min-height: 100vh;
    min-width: 100vw;
}

body {
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Because for some fucking reason, bootstrap 5 does not have it */
.d-list-item {
    display: list-item !important;
}

.attributes-table {
    width: 100%;
    border-collapse: collapse; /* For consistent cell borders */
    table-layout: fixed; /* Ensures consistent column widths */
}

.attributes-table td {
    align-items: stretch;
    width: 100%;
}

.product-attribute-values {
    background-color: #ededed;
    margin: 0 13px;
    padding: 15px 0;
    border-radius: 5px;
    width: -webkit-fill-available !important;
}

.remove-attribute-value-btn {
    display: flex;
    justify-content: flex-end;
}

.attributes-table tr {
    display: flex; /* Makes the row a flex container */
    flex-wrap: nowrap; /* Ensures cells in the row align side by side */
}

/*.container {*/
/*    max-width: 400px;*/
/*    margin: 0 auto;*/
/*    padding: 40px;*/
/*    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);*/
/*    border-radius: 5px;*/
/*    background-color: #ffffff;*/
/*    margin-top: 100px;*/
/*}*/

.form-group label {
    font-size: 18px;
    color: black !important; /*todo: de schimbat sa suporte darkmode - T */
    font-weight: bold;
}

.form-info {
    margin-bottom: 2em;
}

.form-group input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.btn-login {
    width: 100%;
}

body {
    background-color: #f8f9fa;
}

.navbar {
    margin-bottom: 20px;
}

/*.user-status {*/
/*    width: 100%;*/
/*    justify-content: flex-end;*/
/*    margin-right: 1em;*/
/*}*/

.welcome-message {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

.nav-link {
    color: white;
}

.logout-button {
    margin-left: auto;
}

.order-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.selection button {
    display: initial !important;
    width: initial !important;
    margin: initial !important;
}

.welcome-message {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: black;
}

.black {
    color: black !important;
}

.nav-link {
    color: white;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--bs-primary-bg-subtle);
    color: black;
}

.form-control.select-dropdown {
    background-image: url('data:image/svg+xml;charset=UTF8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23000" viewBox="0 0 16 16"><path d="M1.5 6.5a.5.5 0 0 1 .5-.5h12a.5.5 0 0 1 .354.854l-6 6a.5.5 0 0 1-.708 0l-6-6A.5.5 0 0 1 1.5 6.5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.table-img-container {
    width: auto;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-switch {
    height: 4em;
}

.form-check-input {
    cursor: pointer;
}

.edit-group {
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 4em;
}

.img-responsive {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

#message-container {
    z-index: 1050; /* Above most other items */
    width: 50%; /* Or max-width if you prefer */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 10px 20px;
    text-align: center;
    margin-top: 20px; /* Space from the form */
    margin-left: auto; /* Middle of screen 1 */
    margin-right: auto; /* Middle of screen 2 */
    display: none; /*Hide by default */
}

/* Animation for the alert message */
@keyframes slideDown {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.loading-spinner {
    width: 20px; /* Width of the spinner */
    height: 20px; /* Height of the spinner */
    border: 5px solid rgba(0, 0, 0, 0.1); /* Light border */
    border-top: 5px solid #3498db; /* Blue top border */
    border-radius: 50%; /* Make it circular */
    animation: spin 1s linear infinite; /* Spin animation */
    margin-left: 1em;
    margin-top: 2px;
}

/* Keyframes for spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.ajax-container {
    position: fixed;
    top: 10px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%); /* Horizontal centering only */
    width: auto;
    height: auto;
    margin: 0 auto;
    z-index: 99999;
}

.alert-container {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    margin: 30px;
    z-index: 99999;
}

.alert-show {
    display: block;
    animation: slideDown 0.3s ease-out forwards;
}

.product-image {
    border: 1px outset cadetblue;
    border-radius: 10px;
    padding: 15px;
    object-fit: contain;
}

.doc-container {
    width: 100%;
    display: flex;
    height: 30px;
    margin: 1em 0;
}

.delete-doc {
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    font-size: 30px !important;
}

.doc-field:hover {
    background-color: #dfdfdf;
}

.doc-field:active {
    background-color: #cacaca;
}

.doc-field {
    color: black;
    text-decoration: none;
    text-align: center;
    border: 1px solid black;
    border-radius: 10px;
}

.doc-delete-btn {
    position: absolute;
    top: -8px;
    left: 6px;
}

.image-preview-container {
    width: 100%;
    display: flex;
    height: 100%;
    border: 1px outset cadetblue;
    border-radius: 10px;
    overflow: hidden;
}

.admin-navbar {
    justify-content: space-between;
    margin-right: 2em;
}

.lang-selector {
    min-width: auto !important;
}

.user-ball-color, .user-ball-color-navbar {
    background-color: purple;
}

.sm-user-ball {
    border-radius: 100em;
    margin: 0 auto;
    height: 38px;
    width: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: white;
    text-decoration: none;
}

.user-ball {
    border-radius: 100em;
    margin: 0 auto;
    height: 100%;
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 7em;
    color: white;
}

.sm-user-ball:hover {
    filter: invert(100%);
}

.toggle-password {
    cursor: pointer;
}

/* Select2 style */
.select2.select2-container {
    min-height: 38px !important;
}

.select2-container .select2-selection--single, .select2-container .select2-selection--multiple {
    height: 100% !important;
}

/* Slick slider logic */
.slick-prev, .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.slick-prev:hover, .slick-next:hover {
    opacity: 1;
}

.slick-prev {
    left: 15px; /* Position to the left of the slider */
}

.slick-next {
    right: 15px; /* Position to the right of the slider */
}

/* Optional: Hide buttons on small screens */
@media (max-width: 768px) {
    .slick-prev, .slick-next {
        display: none;
    }
}

/* Laravel Paginator */

.pagination {
    justify-content: center; /* Center align the pagination links */
    margin-top: 20px; /* Add some spacing from the content above */
}

.pagination .page-item.active .page-link {
    background-color: #007bff; /* Use Bootstrap's primary color */
    border-color: #007bff;
    color: white;
    font-weight: bold;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2); /* Add a shadow effect */
}

.pagination .page-link {
    color: #007bff; /* Set the link color */
    border-radius: 5px; /* Rounded corners */
    margin: 0 5px; /* Add spacing between links */
    transition: all 0.3s; /* Smooth transition for hover effect */
}

.pagination .page-link:hover {
    background-color: #e9ecef; /* Light gray background on hover */
    color: #0056b3; /* Darker blue on hover */
    text-decoration: none; /* Remove underline on hover */
}

.pagination .page-item.disabled .page-link {
    color: #6c757d; /* Bootstrap's muted text color */
    background-color: #f8f9fa; /* Light background for disabled items */
    border-color: #dee2e6;
}

.export-checkbox {
    font-size: 30px;
    text-align: center;
    vertical-align: middle;
}

.export-table-th {
    text-align: center;
    vertical-align: middle;
    background: #d4d4d4;
    white-space: nowrap;
    width: 150px;
}

.tooltip-container {
    padding: 0;
    border-radius: 100px !important;
    width: 30px;
    height: 30px;
}

.search-custom-small {
    margin-top: 5px;
    margin-bottom: 15px;
}

.tooltip-container-inner {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.tree-renderer {
    text-align: left;
    border: 2px solid black;
    border-radius: 5px;
    max-height: 30em;
    overflow-y: scroll;
}

.logo-login {
    width: 300px;
    height: auto;
    border-radius: 1000px;
    overflow: hidden;
}

.accordion-button:focus {
    border-color: initial !important;
    outline: 0;
    box-shadow: initial !important;
}

.pastel-blue, #syncXRP .accordion-button:not(.collapsed) {
    background: #bae1ff !important;
}

.pastel-yellow, #syncMAG .accordion-button:not(.collapsed) {
    background: #ffdfba !important;
}

.pastel-green, #syncBASE .accordion-button:not(.collapsed) {
    background: #d1ffba !important;
}

.page-edit-actions {
    display: flex;
    justify-content: space-between;
}






/* TEXT AREA CUSTOM FIELD STYLE */

.textarea-heading {
    cursor: pointer;
    padding: 8px;
    background-color: #fff;
    border-radius: 4px;
    letter-spacing: 3px;
}

.textarea-toolbar {
    display: flex;
    height: 2em;
}

.hidethem {
    display: flex;
    align-items: center;
}

.command-active {
    background-color: #0000003d;
}

.hiddenheading {
    display: none;
}

.text-editor-executor {
    color: #000;
    padding: 0 10px 0 7px;
    text-decoration: none;
    font-weight: bolder;
}

.text-editor-executor:hover {
    font-size: 1.4rem;
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
}

span a {
    font-size: 1.2rem;
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
    border-right: 1px solid #9D9D9D;
}

/*:nth-of-type(odd)*/
/*span a {*/
/*    border-right: 1px solid #9D9D9D;*/
/*}*/

.textarea-counter {
    overflow: scroll;
    height: 400px;
    background-color: #fff;
}

.tooltip-btn {
    position: absolute;
    left: 0;
    background: #00d0ff;
    border: 1px solid black;
    border-radius: 100em;
    font-size: 12px;
    width: auto;
    /*height: 100%;*/
    padding: 0 3px;
}

.brand-image-container {
    height: 5em;
    border: 1px solid black;
    border-radius: 15px;
    width: 10em;
    overflow: hidden;
}

.custom-toggle {
    width: 3em !important;
    display: block !important;
}

.error-border {
    border: 1px solid black;
    padding: 5px;
    border-radius: 5px;
    margin-right: 15px;
}

.error-list {
    position: sticky !important;
    display: block;
    top: 0;
    z-index: 1;
}

.attribute-border {
    border-bottom: 5px ridge gray;
    padding-bottom: 10px;
}

.schedule-list-container {
    box-shadow: rgba(0, 0, 0, 0.24) 0 3px 8px;
}
