/* Custom CSS to override Bootstrap's color */
:root {
    --bs-primary: #b2560d;
    /* Custom Primary Color */
    --bs-secondary: #e6dcce;
    /*#8b1a1a*/
    --bs-break: #d6b599;
    --bs-alternative: #ece3dc;
    --bs-light: #f8f9fa;
    --bs-light-accent: #ffffff;
    --bs-light-darker: #d6d6d6;
    /* --bs-light-darker: #424242; */
    --bs-dark: #1e1e1e;
    --bs-dark-foreground: #000000;
    --bs-dark-accent: #2c2c2c;
    /* --bs-dark-accent: #242424; */
    --bs-dark-lighter: #696969;
    --bs-highlight-light: #0969da;
    --bs-highlight-dark: #58a6ff;
    --bs-background: var(--bs-light);
    --bs-background-accent: var(--bs-light-accent);
    --bs-background-light: var(--bs-light-darker);
    --bs-foreground: var(--bs-dark-foreground);
    --bs-foreground-accent: var(--bs-dark-accent);
    --bs-highlight: var(--bs-highlight-light);
    --bs-table-hover-color: var(--bs-background-accent);
    --bs-box-shadow-light: rgba(0, 0, 0, 0.14);
    /* --bs-box-shadow-dark: rgba(255, 255, 255, 0.05); */
    --bs-box-shadow-dark: none;
    /* works best, in dark mode you see a small border.  */
    /* box-shadow: */

    --bs-box-shadow: var(--bs-box-shadow-light);


    --radius-sm: 2px;
    /* Sharper edges */
    --radius-md: 4px;
    --transition-fast: all 0.15s ease-in-out;
    --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: light) {
    :root {
        --bs-background: var(--bs-light);
        --bs-background-accent: var(--bs-light-accent);
        --bs-background-light: var(--bs-light-darker);
        --bs-foreground-accent: var(--bs-dark-accent);
        --bs-foreground: var(--bs-dark);
        --bs-highlight: var(--bs-highlight-light);
        --bs-box-shadow: var(--bs-box-shadow-light);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bs-background: var(--bs-dark);
        --bs-background-accent: var(--bs-dark-accent);
        --bs-background-light: var(--bs-dark-lighter);
        --bs-foreground-accent: var(--bs-light-accent);
        --bs-foreground: var(--bs-light);
        --bs-highlight: var(--bs-highlight-dark);
        --bs-box-shadow: var(--bs-box-shadow-dark);
    }
}


/* Desktop default */
.mobile-only {
    display: none;
}

/* Mobile behavior */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }
}

/***************************************[ GENERAL STYLING ]************************************************/
.text-accent {
    color: var(--bs-foreground-accent);
}

.text-primary {
    color: var(--bs-primary) !important;
}


/***********************************************************************************************************/


/***************************************[ BODY / NAVBAR ]************************************************/
body {
    background-color: var(--bs-background);
    color: var(--bs-foreground);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.navbar {
    background-color: var(--bs-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    color: var(--bs-light);
    font-weight: bold;
}

.navbar-brand:hover {
    color: var(--bs-light);
    font-weight: bold;
}

.nav-link {
    color: var(--bs-alternative) !important;
    margin: 0 0.5rem;
    transition: color 0.2s, transform 0.2s;
}

.nav-link:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.navbar-toggler-icon {
    color: #fff;
}

.flux-icon {
    fill: var(--bs-light);
}

.navbar-profile {
    color: var(--bs-light);
    font-size: 18px;
}

.toast {
    position: fixed;

    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 100;
    display: none;
}

.toast-close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

/* Hero White Box */
.hero {
    background: var(--bs-background-accent);
    padding: 3rem 2rem;
    text-align: center;
    /* border-top: 4px solid var(--bs-primary); */
    border-bottom: 4px solid var(--bs-primary);
    margin-top: 1.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--bs-foreground-light);
    margin-bottom: 0;
}

.justified {
    text-align: justify;
    text-justify: inter-word;
    /* Makes spacing smoother */
}

.card {
    background-color: var(--bs-background);
}

/****************************************************************************************************************/

.inverted-letter {
    display: inline-block;
    background-color: white;
    /* uses the current text color */
    color: #b2560d;
    /* or set to your background color */
    padding: 0 0.2em;
    border-radius: 0.2em;
}

.inverted-letter2 {
    display: inline-block;
    background-color: #b2560d;
    /* uses the current text color */
    color: white;
    /* or set to your background color */
    padding: 0.2em 0.2em;
    padding-right: 0.2em;
    border-radius: 0.2em;
}

#leniflux-delete-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.lf-toast-content {
    background: #1e1e1e;
    color: #e6e6e6;
    padding: 16px;
    width: 320px;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a2a2a;
}

.lf-toast-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.lf-toast-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 14px;
    color: #cfcfcf;
}

.lf-toast-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.lf-btn {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.lf-cancel {
    background: #2e2e2e;
    color: #ddd;
}

.lf-cancel:hover {
    background: #3a3a3a;
}

.lf-delete {
    background: #d13c3c;
    color: #fff;
}

.lf-delete:hover {
    background: #e14b4b;
}


/***************************************[ FLUX PRIMARY BUTTON ]************************************************/
.flux-primary-btn {
    background: var(--bs-primary);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    color: var(--bs-light);
    padding: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.flux-primary-btn:hover {
    filter: brightness(0.95);
    color: var(--bs-light);
    background: var(--bs-primary);
    background-color: var(--bs-primary);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.flux-primary-btn:active {
    color: var(--bs-light);
    filter: brightness(0.85);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flux-primary-btn:focus {
    outline: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.flux-primary-btn:disabled {
    color: var(--bs-light);
    filter: brightness(0.25);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-check-input {
    padding: 0px;
    margin: 0px;
}

.form-check-input:checked {
    background-color: var(--bs-highlight);
}

.form-check-input:focus {
    background-color: var(--bs-highlight);
}

/****************************************************************************************************************/

.upload-popup-content {
    background-color: var(--bs-background-accent);
    color: var(--bs-foreground);
    margin: 20% auto;
    padding: 20px;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.upload-close {
    float: right;
    cursor: pointer;
    font-size: 24px;
}

.upload-popup {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.hold-circle {
    /* position: absolute; */
    display: none;
    inset: 0;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    pointer-events: none;

}

.circle-bg {
    fill: none;
    /* stroke: rgba(255,255,255,0.2); */
    stroke: var(--bs-primary);
    stroke-width: 1;
}

.circle-progress {
    fill: none;
    /* stroke: white; */
    stroke: var(--bs-secondary);
    stroke-width: 1;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1s linear;
}

.icon-wrapper {
    display: flex;
    align-items: right;
    justify-content: right;
}

.navbar-profile .dropdown-menu {
    background-color: var(--bs-background-accent);
    color: var(--bs-foreground);
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
}

.navbar-profile .dropdown-menu.show {
    color: var(--bs-foreground);
    display: block;
}

.cursor-pointer {
    cursor: pointer;
}

.dropdown-item:focus,
.dropdown-item:hover,
.dropdown-item {
    background-color: var(--bs-background-accent);
    color: var(--bs-foreground);
}


/***************************************[ FLUX secondary BUTTON ]************************************************/
.flux-secondary-btn {
    background: var(--bs-primary);
    border: none;
    border-radius: 2px;
    color: var(--bs-light);
    padding: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* 
.flux-secondary-btn:hover {
    filter: brightness(0.95);
    color: var(--bs-light);
    background: var(--bs-secondary);
    background-color: var(--bs-secondary);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}*/

.flux-secondary-btn:active {
    color: var(--bs-light);
    filter: brightness(0.85);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flux-secondary-btn:focus {
    outline: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

/****************************************************************************************************************/

.invisible-item {
    width: 1px;
    height: 1px;
    /* This makes the page scrollable to the right */
    height: 1px;
    /* Make it small in height to keep it hidden */
    visibility: hidden;
    /* Invisible but takes up space */
}

/***************************************[ FLUX third BUTTON ]************************************************/
/* .flux-third-btn {
    background: var(--bs-alternative);
    border: none;
    border-radius: 2px;
    color: var(--bs-dark);
    padding: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.flux-third-btn:hover {
    filter: brightness(0.95);
    color: var(--bs-light);
    background: var(--bs-primary);
    background-color: var(--bs-primary);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
} */

.flux-third-btn:active {
    color: var(--bs-light);
    filter: brightness(0.85);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flux-third-btn:focus {
    outline: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.flux-third-btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1.05rem;

    /* color: #fff; */
    color: var(--bs-light);
    text-decoration: none;
    text-align: center;
    border-radius: 40px;

    background: linear-gradient(135deg, var(--bs-dark), var(--bs-primary));

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25),
        0 0 15px var(--bs-alternative);

    transition: all 0.25s ease;
}

.flux-third-btn:hover {
    transform: translateY(-2px);
    color: var(--bs-light);
    /* box-shadow:
    0 12px 30px rgba(0,0,0,0.35), */
    /* 0 0 20px rgba(0,212,255,0.55); */
}

/****************************************************************************************************************/

.flux-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.flux-switch input {
    display: none;
}

.flux-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 2px;
    /* Matching your button radius */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flux-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bs-light);
    transition: .4s;
    border-radius: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.flux-slider {
    background-color: var(--bs-primary);
}

input:checked+.flux-slider:before {
    transform: translateX(24px);
}

/* Custom Tooltip Styling */
.flux-tooltip {
    position: absolute;
    background: #333; /* Darker neutral for contrast */
    color: var(--bs-light);
    padding: 6px 10px;
    border-radius: 2px;
    font-size: 12px;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.2s;
    white-space: pre-wrap; /* Prevents text wrapping in small spaces */
    z-index: 101;      /* Ensure it's above everything else */
}

.flux-tooltip.visible {
    opacity: 1;
}

/* Styles for the loading animation */
.loading-container {
    display: none;
    /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 101;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}