.table-responsive .dropdown,
.table-responsive .btn-group,
.table-responsive .btn-group-vertical {
    position: static;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark semi-transparent overlay */
    backdrop-filter: blur(10px);
    /* Add blur effect */
    -webkit-backdrop-filter: blur(10px);
    /* For Safari */
    z-index: 1040;
    /* Ensure it appears below the modal */
}




.custom-dropzone {
    border: 2px dashed #85858542;
    border-radius: 5px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.custom-dropzone:hover {
    background-color: #f8f9fa;
}

.dz-message {
    font-size: 1rem;
    color: #6c757d;
}

#previewImage {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#previewImage {
    display: block;
    margin: 10px auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: #0d6efd;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.2);
}

.accordion-item {
    border-radius: 6px;
    overflow: hidden;
}

.accordion-body {
    background-color: #fff;
}




.collapse {
    transition: all 0.3s ease-out;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

/* Customize the loading overlay */
.blockUI {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.blockMsg {
    text-align: center;
    font-size: 1.2rem;
    color: #333;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.fa-check-circle {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Base Styles */
.modal-content {
    background: #fff;
    transition: all 0.3s ease;
}

/* Typography */
.field-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.section-title {
    color: #1e293b;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Product Options */
.product-option {
    cursor: pointer;
    position: relative;
}

.product-option input {
    position: absolute;
    opacity: 0;
}

.option-label {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s ease;
}

.product-option input:checked+.option-label {
    background: #3b82f6;
    color: white;
}

/* Form Controls */
.form-control-minimal,
.form-select-minimal {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.form-control-minimal:focus,
.form-select-minimal:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Product Cards */


/* Option Toggles */
.option-toggle {
    position: relative;
    cursor: pointer;
}

.option-toggle input {
    position: absolute;
    opacity: 0;
}

.option-toggle span {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.option-toggle input:checked+span {
    background: #3b82f6;
    color: white;
}

/* Buttons 
  .btn {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .btn-primary {
    background: #3b82f6;
    border: none;
  }

  .btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
  }

  .btn-light {
    background: #f1f5f9;
    border: none;
    color: #64748b;
  }

  .btn-light:hover {
    background: #e2e8f0;
  }*/

/* Animations */
/* 1) Let the container scroll and set max-height. */
#searchResults {
    position: absolute;
    top: 100%;
    /* Just like before, place it below your input or wherever you want */
    left: 0;
    min-width: 100%;
    width: auto;
    z-index: 1000;

    max-height: 200px;
    /* The container is capped at 200px, so it scrolls */
    overflow-y: auto;
    /* Scrolling happens in this container */

    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: none;
    /* presumably toggled by JS when you have results */
}

/* 2) Make sure the table spans the full width and uses normal table layout. */
#searchResults table {
    width: 100%;
    border-collapse: collapse;
    /* optional but usually nicer */
}

/* 3) "Lock" the header row with position: sticky; it will remain on top. */
#searchResults thead th {
    position: sticky;
    top: 0;
    /* "sticks" to the top of its scrollable container */
    background: white;
    /* So it doesn’t get overlapped by table rows */
    z-index: 1;
    /* Keep it above the body cells if needed */
}



.glow-effect {
    box-shadow: 0px 0px 20px 10px rgba(13, 9, 9, 0.7);
    /* White glow */
    transition: box-shadow 0.3s ease-in-out;
}

/* Add a hover effect */
.glow-effect:hover {
    box-shadow: 0px 0px 30px 10px rgba(81, 110, 209, 0.9);
    /* Stronger glow on hover */
}


.product-fields {
    display: none;
    opacity: 0;
    /* transform: translateY(10px); */
    transition: all 0.3s ease;
    z-index: 1;

}

.product-fields.active {
    display: block;
    opacity: 1;
    /* transform: translateY(0); */
    z-index: 1;

}

/* Input Group */
.input-group-text {
    color: #64748b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-option {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .option-label {
        width: 100%;
        text-align: center;
    }
}

.custom-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.custom-modal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.custom-modal .modal-body {
    padding: 2rem;
}

.custom-dropzone {
    border: 2px dashed #4286f4;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    background: #f8faff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-dropzone:hover {
    background: #edf2ff;
    border-color: #2563eb;
}

.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(66, 134, 244, 0.1);
    border-color: #4286f4;
}




.input-group-box {
    position: relative;
    margin-bottom: 1.5rem;
}



/* Global Enhancements */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --border-gradient: linear-gradient(45deg, #4a90e2, #06fc1e);
    --border-glow: 0 0 15px rgba(74, 144, 226, 0.3);
    --border-hover-color: #4a90e2;
    --border-width: 2px;
}

.btn {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all var(--transition-speed) ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal Enhancements */
/* .modal {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
} */

.modal-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}


/* Soft, pastel green for paid invoices */
.bg-paid {
    background-color: #dff6dd !important;
    /* Light, smooth green */
    /* color: #2e6b32 !important; */
    /* Dark green text */
}

/* Soft, pastel red for unpaid invoices */
.bg-unpaid {
    background-color: #fde2e2 !important;
    /* Light, warm red */
    /* color: #a94442 !important; */
    /* Dark red text */
}

.table-hover {
    cursor: pointer;
}

td {
    padding-top: 0.4% !important;
    padding-bottom: 0.3% !important;
}




/* Additional styles for the custom-dropzone and input-group-box */
/* Enhanced Bootstrap Custom Styles */

/* Custom color variables */


/* Container enhancements */


/* Button enhancements */






/* Sidebar styling */
.sidebar-area {
    background: var(--menu-bg);
    background-image: linear-gradient(180deg, #ffffff 0%, #ddedf7 100%);
    box-shadow: 4px 0 15px rgba(224, 229, 245, 0.1);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 10px 0;
}

.sidebar-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}


/* Responsive Sidebar */
/* Enhanced Border Styles for Bootstrap */

/* Custom border variables */


/* Basic border styles */
.border {
    border-width: var(--border-width) !important;
}

.border-primary {
    border-color: #4a90e2 !important;
    transition: all 0.3s ease;
}

.border-primary:hover {
    box-shadow: var(--border-glow);
}

/* Gradient borders */
.border-gradient {
    border: var(--border-width) solid transparent;
    background: linear-gradient(white, white) padding-box,
        var(--border-gradient) border-box;
}

/* Animated border */
.border-animated {
    position: relative;
    background: white;
}

.border-animated::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4a90e2, #67b26f, #4a90e2);
    z-index: -1;
    border-radius: inherit;
    background-size: 200% 200%;
    animation: border-animation 3s ease infinite;
}

@keyframes border-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Glowing borders */
.border-glow {
    border: var(--border-width) solid #4a90e2;
    box-shadow: var(--border-glow);
    transition: all 0.3s ease;
}

.border-glow:hover {
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

/* Custom border radiuses */
.rounded-xl {
    border-radius: 1rem !important;
}

.rounded-2xl {
    border-radius: 1.5rem !important;
}

.rounded-3xl {
    border-radius: 2rem !important;
}

/* Dashed & dotted borders with custom styles */
.border-dashed {
    border-style: dashed !important;
    border-width: var(--border-width) !important;
}

.border-dotted {
    border-style: dotted !important;
    border-width: var(--border-width) !important;
}

/* Double borders */
.border-double {
    border: double var(--border-width) #4a90e2 !important;
}

/* Inset borders */
.border-inset {
    box-shadow: inset 0 0 0 var(--border-width) #4a90e2;
    transition: all 0.3s ease;
}

.border-inset:hover {
    box-shadow: inset 0 0 0 var(--border-width) var(--border-hover-color);
}

/* Different border widths */
.border-thin {
    --border-width: 1px;
}

.border-medium {
    --border-width: 3px;
}

.border-thick {
    --border-width: 4px;
}

/* Border with offset shadow */
.border-offset {
    border: var(--border-width) solid #4a90e2;
    box-shadow: 4px 4px 0 rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.border-offset:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 rgba(74, 144, 226, 0.3);
}

/* Responsive borders */
@media (max-width: 768px) {
    .border-responsive {
        border-width: 1px !important;
    }
}

/* Border transitions */
.border-transition {
    border: var(--border-width) solid #4a90e2;
    transition: all 0.3s ease;
}

.border-transition:hover {
    border-color: #67b26f;
    transform: scale(1.02);
}

.bg-picture {
    position: relative;
    /* Required for the pseudo-element positioning */
    z-index: 0;
}

.bg-picture::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/images/main_bckgr.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0.3;
    /* Adjust opacity to control visibility (0.0 - fully transparent, 1.0 - fully opaque) */
    z-index: -1;
    /* Place the pseudo-element behind the content */
}

.bg-semi-transparent {
    background-color: rgba(194, 207, 221, 0.5) !important;
    /* semi-transparent blue */
    transition: background-color 0.3s ease !important;
    /* rounded corners */
    border-radius: 8px !important;
    /* padding */
    padding: 10px 0px !important;
}

/* Soft blue gradient */
.bg-soft-blue {
    background: linear-gradient(135deg, #e0f2ff 0%, #f0f8ff 100%) !important;
}

/* Slightly more colorful but still gentle */
.bg-ocean-breeze {
    background: linear-gradient(135deg, #e8f5ff 0%, #d1e9ff 50%, #e6f3ff 100%) !important;
}

/* Multi-tonal soft blue */
.bg-sky-flow {
    background: linear-gradient(120deg, #f0f7ff 0%, #e1f0ff 35%, #d4ebff 100%) !important;
}

/* Morning fog effect */
.bg-morning-blue {
    background: linear-gradient(to right, #f5f9ff 0%, #e7f3ff 50%, #f2f8ff 100%) !important;
}

/* The most subtle version */
.bg-whisper-blue {
    background: linear-gradient(145deg, #f8fbff 0%, #f0f6ff 100%) !;
}