/* Base Styles */
body {
    font-family: Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: linear-gradient(135deg, #090700, #2a2007, #0c0b08); /* Gradient background */
    padding: 1rem 0;
    color: #dcdcdc;
    position: relative;
    overflow: hidden; /* Ensure texture doesn’t overflow */
    border-bottom: 3px solid #1a2b04;
}

header .header-logo img {
    max-width: 150px;
}

header .contact-info p,
header .language-switcher button {
    margin: 0;
}

header .language-switcher button {
    margin-left: 0.5rem;
}

/* Dark Theme */
.dark-theme {
    background-color: #1e1e1e;
    color: #dcdcdc;
}

.dark-theme header {
    background-color: #2d2d2d;
}

.dark-theme footer {
    background-color: #2d2d2d;
}

.dark-theme .btn {
    border: 1px solid transparent;
    transition: background-color 0.3s, color 0.3s;
}

.dark-theme .btn-primary {
    background-color: #007acc;
    color: #dcdcdc;
    border-color: #007acc;
}

.dark-theme .btn-secondary,
.dark-theme .list-group-item {
    background-color: #4e4e4e;
    color: whitesmoke;
    border-color: #4e4e4e;
}

.dark-theme .btn-success {
    background-color: #007f00;
    border-color: #007f00;
}

.dark-theme .btn-info {
    background-color: #005f5f;
    border-color: #005f5f;
}

.dark-theme .btn-warning {
    background-color: #e3c300;
    color: #1e1e1e;
    border-color: #e3c300;
}

.dark-theme .btn-light,
.dark-theme .form-control {
    background-color: #333;
    color: #dcdcdc;
    border: 1px solid #444;
}

.dark-theme .form-control::placeholder {
    color: #888;
}

.dark-theme .list-group-item{
    background-color: #2d2d2d;
    color: #dcdcdc;
    border-bottom: #444 solid 1px;
}
.dark-theme .table {
    background-color: #1a2b04;
    color: #dcdcdc;
    border-color: #444;
}

.dark-theme .table thead th {
    background-color: #333;
}

.dark-theme .table tbody tr:nth-child(odd) {
    background-color: #2d2d2d;
}

.dark-theme .table tbody tr:nth-child(even) {
    background-color: #333;
}

.dark-theme .table tbody tr.highlighted {
    color: #5b9c05;
}

.dark-theme .main_title,
.dark-theme .sub-table-title,
.dark-theme .body_main_title {
    color: #dbd45a;
    text-align: center;
}

.dark-theme .sub-table-title {
    font-size: 0.9rem;
    background-color: #20140e;
    text-align: left;
}

.dark-theme table tfoot {
    color: #5b9c05;
}

/* Footer Styles */
footer {
    color: #6c757d;
    text-align: left;
}

footer address,
footer p {
    margin: 0;
    font-size: 0.9em;
}

footer a {
    color: #007acc;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    footer {
        text-align: center;
        padding-top: 0.5rem;
    }

    .footer-logo {
        margin: 0 auto;
    }

    footer address,
    footer p {
        margin-bottom: 1em;
    }

    .contact-info {
        text-align: center;
        margin-top: 10px;
    }

    .serial-number {
        max-width: 30px;
        text-align: center;
        vertical-align: middle;
    }

    .d-none {
        display: none !important;
    }

    .d-block {
        display: block !important;
    }
}

@media (min-width: 768px) {
    footer {
        text-align: left;
        padding-top: 1rem;
    }

    .serial-number {
        width: 50px;
        text-align: center;
        vertical-align: middle;
    }

    .d-md-none {
        display: none !important;
    }

    .d-md-block {
        display: block !important;
    }
}


/* Modal Styles */

#luxury-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark backdrop */
    visibility: hidden;
    opacity: 0;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 1500; /* Ensure modal is above other content */
}

#luxury-modal .modal-content {
    /*background: #2d2d2d;
    color: #dcdcdc;*/
    color: #2d2d2d;
    background: #dcdcdc;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1501; /* Ensure content is above the backdrop */
}
#luxury-modal.show .modal-content{
    transform: translateY(0); /* Final position for slide effect */
    opacity: 1; /* Make content fully visible */
}

#luxury-modal.show{
    visibility: visible;
    opacity: 1; /* Make content fully visible */
}

.modal-header,
.modal-footer {
    border-bottom: 1px solid #444;
}

.modal-title {
    color: #dcdcdc;
}

/* Scrollable Areas */
.scrollable-table {
    max-height: 400px;
    overflow-y: auto;
}

.scrollable-list {
    max-height: 523px;
    overflow-y: auto;
}

/* RTL Styles */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .contact-info {
    text-align: left;
}

[dir="rtl"] .header-logo {
    margin-left: auto;
}

[dir="rtl"] .btn-group {
    flex-direction: row-reverse;
}

[dir="rtl"] .text-end {
    text-align: start;
}

[dir="rtl"] .text-start {
    text-align: end;
}

/* Miscellaneous Styles */
.item-code {
    font-size: 0.75em;
}

.item-description {
    font-size: 0.85em;
    font-weight: lighter;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

.quantity-cell,
.has-button {
    text-align: center;
    vertical-align: middle;
}

.table th {
    text-align: center; /* Center align vertically */
}

.credit-line {
    font-size: 0.8em;
    color: #6c757d;
}

.credit-line a {
    color: #007acc;
    text-decoration: none;
}

.credit-line a:hover {
    text-decoration: underline;
}

.highlighted {
    background-color: #e7f1ff;
}

.flashed {
    background-color: #5b9c05 !important;
    color: #1e1e1e !important;
}

button,
html, body {
    touch-action: manipulation; /* Prevents double-tap zoom */
}

@media (max-width: 767.98px) {
    .align-items-end-mobile {
        align-items: center !important;
    }
}

/* Custom Scrollbars */
.custom-scrollbar {
    overflow: auto;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: #DFE9EB;
}

.custom-scrollbar::-webkit-scrollbar-track:hover {
    background-color: #B8C0C2;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: #397524;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #62A34B;
}

/* Forms */
.form-select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #1a2b04;
    color: #5b9c05;
}

.hide_me {
    display: none !important;
}

/* List Group */
.list-group-item {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Smooth transform */
}

.list-group-item:hover,
.list-group-item.cat-selected {
    background-color: #1a2b04;
    color: #5b9c05;
}

/* Header Texture */
header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('fancy-cushion.webp') repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* Main Container Texture */
.main_container {
    position: relative;
    background-color: #110f03;
   /* overflow: hidden;*/
}

.main_container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('patternlight.png') repeat;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.main_container .container,
header .container {
    position: relative;
    z-index: 2; /* Ensure content is above the texture */
}

/* Cairo Title */
.cairo-title,
.cairo-title2 {
    font-family: "Cairo", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "slnt" 0;
}

.cairo-title {
    font-weight: bold;
}

.cairo-title2 {
    font-size: 0.9em;
}

.modal-image {
    width: 100%;
    border-radius: 10px 10px 0 0;
    height: auto;
}

.modal-text p {
    margin: 20px 0;
    font-size: 1em;
    color: #333;
}

#close-modal {
    background-color: #d4af37; /* Luxurious gold */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
}



#close-modal:hover {
    background-color: #b8860b; /* Darker gold */
    color:#110f03;
}

.dark-theme #image-modal-label{
    color:#110f03 !important;
}
#quantity-modal{
    color:#090700;

}
#quantity-modal input{
background-color: whitesmoke !important; 
color:#090700 !important;
}
#qrmodal-header{
    background-color: #b8860b; /* Darker gold */
    color:#110f03;
    text-align: center;
    border-bottom: 1px solid white;
}







