﻿

.selected-list-item {
    background-color: aliceblue !important; /* Use !important if needed to override Bootstrap */
}
.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--primary-color);   /*#0d4054 !important;*/
    font-size: 18px;
    font-weight: bold;
}

.navbar-nav {
    display: flex;
    flex-direction: row; /* Forces horizontal layout */
}

.nav-item {
    padding-right: 15px;
}

.nav-item a:hover {
    color: var(--primary-blue); /*white;  #0d4054 !important; --primary-blue: #0056b3;*/
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

.parallax {
    /* Set a specific height */
    min-height: 300px;
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

html, body {
    height: 100%; /* Ensure html and body take full viewport height */
    margin: 0;
}

.parent-container {
    background-color: lightgray;
    width: 80%; /* Parent container takes 80% of body width */
    height: 50%; /* Parent container takes 50% of body height */
    margin: 0 auto; /* Center the parent container */
    padding: 20px;
}

.shrinkable-div {
    background-color: lightblue;
    width: 50%; /* This div will be 50% of its parent's width (50% of 80% of body) */
    height: 70%; /* This div will be 70% of its parent's height (70% of 50% of body) */
    margin: 10px;
    padding: 10px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}


/* =======responsive text - start ======================  */


:root {
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
}

/* Mobile first */
body {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

h1 {
    font-size: var(--font-size-2xl);
}

h2 {
    font-size: var(--font-size-xl);
}

h3 {
    font-size: var(--font-size-lg);
}

}

/* Tablet */
@media (min-width: 768px) {
    :root {
        --font-size-base: 1.1rem;
        --font-size-lg: 1.25rem;
        --font-size-xl: 1.5rem;
        --font-size-2xl: 1.75rem;
        --font-size-3xl: 2.25rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --font-size-base: 1.2rem;
        --font-size-lg: 1.375rem;
        --font-size-xl: 1.75rem;
        --font-size-2xl: 2rem;
        --font-size-3xl: 2.5rem;
    }
}
 

/* Utility classes */
.text-responsive-sm {
    font-size: var(--font-size-sm);
}

.text-responsive-base {
    font-size: var(--font-size-base);
}

.text-responsive-lg {
    font-size: var(--font-size-lg);
}


/* =======responsive text - end  =======================  */

.custom-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding-left: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 140px;
    height: 150px;
}

/* ================================================= */

/* Use CSS Grid for Consistent Layout */
.payment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.invoice-section, .payment-section {
    min-width: 0; /* Prevents overflow issues */
}

/*  Fix Table Layout with Proper Column Widths */

.file-table {
    width: 100%;
    table-layout: fixed; /* Critical for consistent columns */
    border-collapse: collapse;
}

.file-table th,
.file-table td {
    padding: 0.5rem;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Add Responsive Breakpoints */

/* For desktop screens 
@media (min-width: 1024px) {
    .payment-container {
        grid-template-columns: 1fr 1fr;
    }
}

*/

/* For tablet screens 
@media (max-width: 1023px) and (min-width: 768px) {
    .payment-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
*/
/* For mobile screens 
@media (max-width: 767px) {
    .payment-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .file-table {
        display: block;
        overflow-x: auto;
    }
}
*/
/* Improve Button Container Layout */

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap; /* Allows buttons to wrap on small screens */
}

.button-group button {
    min-width: 100px; /* Consistent button sizes */
    white-space: nowrap;
}

/* Add Container Constraints */

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.step-content {
    width: 100%;
    overflow: hidden; /* Prevents content overflow */
}

/* Specific Fix for the Misaligned Column */

/* Ensure the status column content stays properly aligned */
.status-column {
    text-align: center;
    vertical-align: middle;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tight-list p {
    margin-top: 0;
    margin-bottom: 0;
}

/* ================================================= */


/* slide show - start */
/* Hide the images by default */
.mySlides {
    display: none;
}

/* Slideshow container */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.8);
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

    /* On hover, add a black background color with a little bit see-through */
    .prev:hover, .next:hover {
        background-color: #f1f1f1;
        color: black;
    }

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

    .active, .dot:hover {
        background-color: #717171;
    }

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}
/* Slide show - end   */
/* JSON Style - start */
.json-viewer, .text-viewer {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px;
    font-family: Consolas, monospace;
    font-size: 12px;
    height: 650px;
    overflow: auto;
    white-space: pre-wrap;
}
/* JSON style - end */