/* Dashboard-Specific Input Colors */
.personal-details input,
.admin-input,
#searchBox {
    color: white !important;
}

/* Scoped Placeholders for Dashboard */
.personal-details input::placeholder,
.admin-input::placeholder,
#searchBox::placeholder {
    color: white !important;
    opacity: 1;
}

.personal-details input::-webkit-input-placeholder,
.admin-input::-webkit-input-placeholder,
#searchBox::-webkit-input-placeholder {
    color: white !important;
}

:root {
    --primary-color: #e66f19;
    --bg-color: #0d0d0d;
    --light-accent: #fdf2e9;
    --ui-glass-bg: rgba(255, 255, 255, 0.04);
    --ui-glass-border: rgba(255, 255, 255, 0.22);
    --ui-glass-blur: blur(35px);
    --ui-glass-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    --glow-primary: 0 0 25px rgba(255, 123, 0, 0.4), 0 0 50px rgba(255, 123, 0, 0.2);
    --glow-white: 0 0 15px rgba(255, 255, 255, 0.2);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    padding-top: 50px; /* 50px navbar + 20px top padding */
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), #1a2a6c, #b21f1f, #fdbb2d, #0d0d0d);
    background-size: 200% 200%;
    background-attachment: fixed;
    transition: background-position 0.1s ease-out;
}
.body-zoomed {
    zoom: 0.8;
}

body.leads-page-body {
    background: #282c34; /* A modern, dark grey background */
}

/* --- Navbar Styles --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--ui-glass-bg);
    backdrop-filter: var(--ui-glass-blur);
    -webkit-backdrop-filter: var(--ui-glass-blur);
    border-bottom: 1px solid var(--ui-glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between; /* Positions items at ends */
    padding: 0 20px;
    z-index: 1001;
    box-sizing: border-box;
    color: white;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
}

.navbar-title {
    margin-left: 20px;
    font-size: 18px;
    font-weight: 500;
    font-family: "Outfit", sans-serif;
}

.navbar-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.navbar-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 111, 25, 0.3);
    color: white;
}

.notification-badge {
    background-color: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-left: 8px;
    vertical-align: middle;
    min-width: 16px;
    height: 16px;
}

/* Spinner for background lead sync */
.lead-sync-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin-ui 1s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes blink-animation {
    0%,
    100% {
        opacity: 0.8;
        transform: scale(0.9);
    }
    50% {
        opacity: 2.5;
        transform: scale(1.3);
    }
}
.blinking-badge {
    animation: blink-animation 1.5s infinite ease-in-out;
    background-color: #ff4757; /* Brighter red for attention */
}

.menu-group-header {
    padding: 12px 15px 12px 25px;
    font-size: 13px;
    color: #ccc;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    user-select: none;
}

.menu-group-header:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
}

.menu-group-content {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.menu-group-content a {
    padding-left: 40px !important;
    font-size: 14px !important;
    border-bottom: none !important;
}

.menu-group-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.menu-group-header.active .menu-group-icon {
    transform: rotate(180deg);
}

.menu-group-header.active {
    color: var(--primary-color);
    background: rgba(230, 111, 25, 0.05);
}

#user-info-display {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
}

/* --- Side Menu Styles --- */
.side-menu {
    height: 100%;
    width: 0; /* Initially hidden */
    position: fixed;
    z-index: 1002;
    top: 0;
    left: 0;
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 60px;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    border-right: 1px solid var(--ui-glass-border);
    pointer-events: none;
}

.side-menu[style*="width: 250px"] {
    pointer-events: auto;
}

.side-menu a {
    padding: 10px 15px 10px 25px;
    text-decoration: none;
    font-size: 16px;
    color: #ccc;
    display: block;
    transition: 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.side-menu a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.side-menu .close-btn-menu {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    border-bottom: none;
    padding: 0;
}

.side-menu .close-btn-menu:hover {
    background: none;
}

#admin-menu-items a {
    background-color: rgba(230, 111, 25, 0.08);
    border-left: 3px solid var(--primary-color);
}

#menu-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    cursor: pointer;
    transition: background-color 0.4s;
}

.side-menu a[href="index.html"] {
    background-color: rgba(46, 204, 113, 0.1);
}

@keyframes spin-ui {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.main-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.main-setup-container {
    display: flex;
    padding-top: 30px;
    flex: 1;
    min-width: 500px;
}

#download-pdf {
    background: #27ae60;
    color: white;
    padding: 8px 12px;
    width: 100%;
    margin-bottom: 5px;

    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.setup-box {
    background: var(--ui-glass-bg);
    backdrop-filter: var(--ui-glass-blur);
    -webkit-backdrop-filter: var(--ui-glass-blur);
    border: 1px solid var(--ui-glass-border);
    padding: 20px;
    border-radius: 20px;
    flex: 1;
    margin: 0;
    box-shadow:
        var(--ui-glass-shadow),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.setup-box * {
    color: inherit;
}

.setup-box h3 {
    color: var(--primary-color) !important;
    font-family: "Outfit", sans-serif !important;
    font-weight: 600 !important;
    font-size: 22px !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.6);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.personal-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ui-glass-border);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow:
        var(--ui-glass-shadow),
        inset 0 0 15px rgba(255, 255, 255, 0.03);
}

.personal-details input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--ui-glass-border);
    border-radius: 8px;
    padding: 12px;
    color: white !important;
    font-size: 14px;
    width: 100%;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.personal-details input:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.3);
    outline: none;
    box-shadow: var(--glow-primary);
}

.setup-box2 {
    display: none;
    font-size: 14px;
    background: var(--ui-glass-bg);
    backdrop-filter: var(--ui-glass-blur);
    -webkit-backdrop-filter: var(--ui-glass-blur);
    border: 1px solid var(--ui-glass-border);
    padding: 25px;
    border-radius: 18px;
    min-width: 60%;
    max-width: 60%;
    margin: 0 0 30px 0;
    box-shadow: var(--ui-glass-shadow);
    color: white;
}

select {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    box-sizing: border-box;
    margin-bottom: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

button {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
    color: white;
    margin-bottom: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    margin-top: 5px;
    box-sizing: border-box;
}

label {
    width: 120px;
    font-weight: bold;
}

#waterAutomation {
    font-size: 12px;
    margin: 5px auto;
    display: none;
}

#waterAutomation input {
    width: 10px;
    height: 10px;
}

#waterBpmContainerformannual {
    font-size: 12px;
    margin: 5px auto;
    display: none;
}

#waterBpmContainerformannual input {
    width: 10px;
    height: 10px;
}

#waterBpmContainerforsemiauto {
    font-size: 12px;
    margin: 5px auto;
    display: none;
}

#waterBpmContainerforsemiauto input {
    width: 10px;
    height: 10px;
}

#waterBpmContainerforauto {
    font-size: 12px;
    margin: 5px auto;
    display: none;
}

#waterBpmContainerforauto input {
    width: 10px;
    height: 10px;
}

#ro-cap-container {
    font-size: 12px;
    margin: 5px auto;
    display: none;
}

#ro-cap-container input {
    width: 10px;
    height: 10px;
}

#ro-material-container {
    font-size: 12px;
    margin: 5px auto;
    display: none;
}

#ro-material-container input {
    width: 10px;
    height: 10px;
}

.check-label {
    /* margin: 5px;
			white-space: nowrap; */
    min-width: 50%;
    margin: 8px 0;
    white-space: nowrap;
    background-color: orange;
    padding: 5px 15px 5px 3px;
}

button {
    width: 100%;
    padding: 8px 12px;
    margin-top: 6px;
    box-sizing: border-box;
    color: white;
    margin-bottom: 4px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: var(--ui-glass-shadow);
}

button:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        var(--glow-primary),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

button:active {
    transform: translateY(0);
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100000;
    color: white;
    display: none;
    /* Controlled by JS */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    zoom: 1.25 !important; /* Counteract body zoom 0.8 */
}

#loading-overlay[style*="display: flex"] {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* New Spinner Styles (Blue/Red Double Ring) */
.new-spinner-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.new-spinner-outer {
    width: 5rem;
    height: 5rem;
    border: 4px solid transparent;
    border-top-color: #60a5fa; /* blue-400 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin-ui 1s linear infinite;
}

.new-spinner-inner {
    width: 4rem;
    height: 4rem;
    border: 4px solid transparent;
    border-top-color: #f87171; /* red-400 */
    border-radius: 50%;
    animation: spin-ui 1s linear infinite;
}

@keyframes spin-ui {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 28px;
    font-family: "Outfit", sans-serif;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin: 0;
}

.loading-subtext {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 15px;
    letter-spacing: 1px;
}

#printable-area-wrapper {
    width: 794px;
    flex-shrink: 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - -50px); /* 70px top offset + 20px bottom body padding */
    overflow-y: auto;
    margin-top: 30px; /* To align with setup-box */
    box-sizing: border-box;

    /* Styles from .setup-box */
    background: var(--ui-glass-bg);
    backdrop-filter: var(--ui-glass-blur);
    -webkit-backdrop-filter: var(--ui-glass-blur);
    border: 1px solid var(--ui-glass-border);
    border-radius: 20px;
    box-shadow:
        var(--ui-glass-shadow),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* PDF Zoom Controls */
.pdf-zoom-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 50px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-zoom-btn {
    width: 30px !important;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#printable-area {
    display: block;
    width: 794px;
    /* height: 1123px; */
    margin: 0 auto;
}

/* OUTER BORDER BOX */

.pdf-page {
    background: white;
    border: 2px solid var(--primary-color);
    padding: 1px;
    box-sizing: border-box;
    width: 711px;
    height: 1040px;
    /* margin-top: 41.5px; */
    margin: 41.5px auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    page-break-after: always;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url("vpacklogo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.pdf-page[style*="display: block"] {
    display: block !important;
    page-break-after: always !important;
}

/* Only prevent breaking on standard fixed-height pages */
.pdf-page:not(.custom-page)[style*="display: block"] {
    page-break-inside: avoid !important;
}

.pdf-page[style*="display: none"] {
    display: none !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
}

/* .pdf-page {

			background: white;

			border: 2px solid #e66f19;

			padding: 3px;

			box-sizing: border-box;

			width: 720px;

			height: 1040px;

			position: relative;

			margin: 0 auto 10px auto;

			page-break-after: always;

			overflow: hidden;

		} */

/* INNER BORDER BOX */

.inner-border {
    border: 2px solid var(--primary-color);
    height: 100%;
    width: 100%;
    padding-top: 0.1in;
    padding-bottom: 0.1in;
    padding-left: 0.2in;
    padding-right: 0.2in;
    box-sizing: border-box;
    position: relative;
}

/* .pdf-page:last-child {
    page-break-after: auto;
} */

h1 {
    color: #007bff;
    text-align: center;
    margin-top: 0;
}

p {
    font-size: 14px;
    line-height: 1.2;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
}

#pdfLogo {
    /* CHANGE THESE VALUES TO YOUR LIKING */
    width: 80px;
    /* Makes the image wider */
    height: auto;
    /* Keeps the image from looking stretched */
    display: block;
    /* Centers the image */
    margin: 0 auto;
    /* Centers the image */
    margin-bottom: 10px;
    /* Space below the logo */
}

.socialSize {
    /* CHANGE THESE VALUES TO YOUR LIKING */
    width: 20px;
    /* Makes the image wider */
    height: auto;
    /* Keeps the image from looking stretched */
    display: block;
    /* Centers the image */
    margin: 5px 15px;
    /* Space below the logo */
}

.company-header {
    display: flex;
    justify-content: space-between;
    /* Pushes one left, one right */
    align-items: center;
    /* Aligns them vertically center */
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
    top: 0.2in;
}

.company-logo {
    padding-right: 0px;
    margin-right: 0px;
}

.company-data {
    height: 725px;
}

.bottomDetails {
    margin: 15px auto 0px auto;
    padding-top: 10px;
    font-size: 15px;
    position: absolute;
    bottom: 0.2in;
    left: 0;
    right: 0;
    text-align: center;
    /* white-space: pre; */
    /* height: 130px; */
    margin-bottom: 0;
    overflow: hidden;
    width: 656px;
    border-top: 2px solid var(--primary-color);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    background-color: transparent;
    /* Watermark piche dikhne dene ke liye */
}

.spec-table th,
.spec-table td {
    border: 1px solid #000000;
    /* Dark Black Border jaisa image mein hai */
    padding: 1px 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.priceList {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    background-color: transparent;
    /* Watermark piche dikhne dene ke liye */
}

.priceList th,
.priceList td {
    border: 1px solid #000000;
    /* Dark Black Border jaisa image mein hai */
    padding: 1px 10px;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
}

.priceList th {
    font-weight: bold;
    font-size: 14px;
    background-color: var(--primary-color);
}

.priceList td {
    background-color: #ffffff;
}

.spec-table th {
    font-weight: bold;
    font-size: 14px;
    background-color: #ffffff;
    /* Header background white */
}

/* Row height thoda badhane ke liye */

.spec-table tr {
    height: 5px;
    /* line-height: 2.5; This creates a tall row without using padding */
}

ol {
    /* margin-bottom: 150px;  */
    padding-left: 25px;
}

.water-plant {
    display: none;
}

.wrap-image {
    float: right;
    /* Image ko left mein rakhega aur text right mein */
    /* width: 350px; REMOVED */
    /* Image ka size */
    /* margin-left: 5px; Text aur image ke beech gap */
    /* margin-bottom: 10px; Niche wale text se gap */
    margin: 10px 0px 10px 10px;
    display: block;
    border: 1px solid #ddd;
    /* Optional: border */
}

/* Clearfix: Taaki agla content image ke upar na chadh jaye */

.content-box::after {
    content: "";
    display: table;
    clear: both;
}

.ro-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

.ro-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.ro-table td {
    padding: 1px;
    border: 1px solid #ddd;
}

/* .ro-table tr:nth-child(even) {
    background-color: #f2f2f2;
}
.ro-table tr:hover {
    background-color: #ffe0cc;
} */

/* --- NEW CLASSES FOR PDF PAGES TO REMOVE REDUNDANCY --- */

.machine-title {
    color: var(--primary-color);
    font-size: 25px;
    font-weight: bold;
    margin: 10px 0 25px 0;
    padding-top: 10px;
    text-align: center;
}

.orange-bold {
    color: var(--primary-color);
    font-weight: bold;
}

.spec-box {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 0;
}

.desc-text {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 10px;
    white-space: normal;
    line-height: 1.4;
}

/* Admin / Custom Data Styles */
.admin-section {
    min-height: 500px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ui-glass-border);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 10px;
    color: white;
    box-shadow:
        var(--ui-glass-shadow),
        inset 0 0 15px rgba(255, 255, 255, 0.03);
}

#waterAutomation,
#waterBpmContainerformannual,
#waterBpmContainerforsemiauto,
#waterBpmContainerforauto {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 10px !important;
}

#searchBox::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.admin-section h4 {
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.5);
}

.admin-input,
#admin-section-containers select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ui-glass-border);
    border-radius: 8px;
    padding: 10px;
    color: white !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

#searchBox {
    color: white !important;
}

/* Cleaned up redundant focus rules */

#admin-section-containers label {
    color: #dfdfdf;
    font-weight: 400;
}

.admin-textarea {
    height: 300px;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    background: rgba(30, 30, 30, 0.7);
    color: #d4d4d4;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    resize: vertical;
    white-space: pre;
    overflow: auto;
    tab-size: 4;
}

.admin-textarea:focus {
    outline: 1px solid var(--primary-color);
}

.btn-insert {
    background: var(--primary-color);
    color: white;
    padding: 8px;
    width: 100%;
    margin-bottom: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-add-custom {
    background: #555;
    color: white;
    padding: 8px;
    width: 100%;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.tag {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 12px;
    margin: 4px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    cursor: grab;
    position: relative; /* For drop indicators */
}

.tag:active {
    cursor: grabbing;
}

.tag.drag-over-left::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-color);
    animation: fadeIn 0.2s ease-out;
}

.tag.drag-over-right::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 2px;
    bottom: 2px;
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-color);
    animation: fadeIn 0.2s ease-out;
}

.tag:hover {
    background: rgba(230, 111, 25, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 111, 25, 0.2);
}

.tag b {
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    margin-left: 10px;
    font-size: 18px;
    line-height: 1;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
    font-weight: normal;
}

.tag b:hover {
    color: #ff4b2b;
    transform: scale(1.2);
}

/* Visual placeholder for Drag & Drop in Preview */
.pdf-drop-indicator {
    height: 12px;
    background: var(--primary-color);
    margin: 10px auto;
    width: 711px; /* Matches pdf-page width */
    border-radius: 6px;
    opacity: 0.7;
    animation: pulse-drop 1s infinite;
    box-shadow: 0 0 10px rgba(230, 111, 25, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.pdf-drop-indicator::after {
    content: "PLACE HERE";
}
@keyframes pulse-drop {
    0% { opacity: 0.5; transform: scale(0.98); }
    50% { opacity: 0.9; transform: scale(1.0); }
    100% { opacity: 0.5; transform: scale(0.98); }
}

/* NEW STYLES FOR QUOTE OPTIONS */
.quote-options-container {
    max-height: 43px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* margin-top: 15px; */
    /* padding: 10px 0; */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-option {
    margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-option span {
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

#discount-input-container {
    transition: all 0.35s ease-in-out;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}
#discount-input-container.visible {
    max-height: 60px; /* Adjust if input is larger */
    opacity: 1;
    margin-top: 15px;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.4s;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* --- FIX FOR CUSTOM PAGE OVERFLOW --- */
/* Allows custom pages to expand and push footer down instead of overlapping */
.pdf-page.custom-page {
    height: 1040px !important;
    min-height: 1040px;
    overflow: hidden !important;
    page-break-inside: avoid !important;
    /* background-repeat: repeat-y !important;
    background-size: 500px auto !important;
    background-position: center top !important; */
    margin-top: 41.5px;
    margin-left: 41.5px;
}

.pdf-page.custom-page .company-data {
    /*height: auto !important;*/
    max-height: 725px;
    display: block;
}

.pdf-page.custom-page .bottomDetails {
    /* position: relative !important;
    bottom: auto !important;
    margin-top: 30px; */
    margin: 15px auto 0px auto;
    padding-top: 10px;
    font-size: 15px;
    position: absolute;
    bottom: 0.2in;
    left: 0;
    right: 0;
    text-align: center;
    /* white-space: pre; */
    /* height: 130px; */
    margin-bottom: 0;
    overflow: hidden;
    width: 656px;
    border-top: 2px solid var(--primary-color);
}

/* Prevent breaking inside elements that should stay together */
tr,
img,
.machine-title,
.spec-box {
    page-break-inside: avoid;
}

.custom-item-wrapper {
    margin-bottom: 20px;
}

/* Custom Prompt Modal */
#custom-prompt-overlay,
#custom-alert-overlay,
#add-machine-overlay,
#quote-settings-overlay,
#header-footer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

/* Fix: Prompts and Alerts must be on top of Add Machine modal and Fullscreen Editor */
#custom-prompt-overlay,
#custom-alert-overlay {
    z-index: 200000 !important;
}

.custom-prompt-box {
    background: var(--ui-glass-bg);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    padding: 35px;
    border-radius: 24px;
    width: 380px;
    box-shadow: var(--ui-glass-shadow);
    border: 1px solid var(--ui-glass-border);
    text-align: center;
    color: white;
}

.custom-prompt-box h4 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 600;
}

.custom-prompt-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.prompt-btn-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.prompt-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.prompt-btn-cancel {
    background: #ccc;
    color: #333;
}

.prompt-btn-submit {
    background: var(--primary-color);
    color: white;
}

.prompt-btn-submit:hover {
    background: #d35400;
}

/* Handled by global overlay rule above */

.add-machine-box {
    background: var(--ui-glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 35px;
    border-radius: 24px;
    width: 65%;
    max-width: 900px;
    box-shadow: var(--ui-glass-shadow);
    border: 1px solid var(--ui-glass-border);
    position: relative;
    color: white;
}

.add-machine-box .close-btn {
    position: absolute;
    top: -25px;
    right: -25px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    width: auto;
    padding: 0;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease;
}

.add-machine-box .close-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.add-lead-box {
    background: var(--ui-glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 35px;
    border-radius: 24px;
    width: 65%;
    max-width: 900px;
    box-shadow: var(--ui-glass-shadow);
    border: 1px solid var(--ui-glass-border);
    position: relative;
    color: white;
}

.add-lead-box .close-btn {
    position: absolute;
    top: -25px;
    right: -25px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    width: auto;
    padding: 0;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease;
}

.add-lead-box .close-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.add-lead-box .close-btn {
    top: 5px;
    right: 5px;
}

/* CodeMirror Editor Styling */
.CodeMirror {
    height: 300px;
    font-size: 13px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    margin-bottom: 5px;
    resize: both;
}

/* Fullscreen mode for CodeMirror */
.CodeMirror.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 100000 !important;
    /* Must be higher than the popup overlay (9999) */
    border: none;
    border-radius: 0;
    resize: none !important;
    background: #282a36;
    /* Ensure background is opaque (Dracula) */
    overflow: hidden !important;
    margin: 0 !important;
    zoom: 1.25 !important; /* Counteract body zoom 0.8 */
}

/* Fix: Jab editor fullscreen ho, to parent se containing block constraints hata do */
.add-machine-box:has(.CodeMirror.fullscreen) {
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    perspective: none !important;
}

/* Force the inner scroll area to fill the editor and be the single scrollable element */
.CodeMirror.fullscreen .CodeMirror-scroll {
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: scroll !important;
    overflow-x: auto !important;
}

#admin-section-containers {
    display: flex;
}

.add-lead-box {
    width: 93vw;
    height: 85vh;
    max-width: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- Responsive Styles --- */
@media (max-width: 1025px) {
    .main-content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    #printable-area-wrapper {
        position: relative;
        top: 0;
        height: auto;
        overflow-y: visible;
        width: 100%;
        padding-top: 0;
    }
    .main-setup-container {
        width: 90%;
    }

    .setup-box,
    .setup-box2 {
        flex: none !important;
        /* Remove flex sizing */
        width: 90%;
        /* Take up most of the width on tablets */
        max-width: 90%;
        min-width: initial;
        margin: 0 0 20px 0 !important;
        /* Adjust margin for vertical stacking */
    }

    #admin-section-containers {
        flex-direction: column;
    }

    .admin-section {
        max-width: 100% !important;
        margin-right: 0 !important;
    }

    /* Make preview area scrollable on tablets and smaller devices */
    #printable-area {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #dynamic-pages-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .pdf-page.custom-page {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .add-lead-box {
        width: 85vw;
        height: 90vh;
    }
    #quote-settings-overlay .add-machine-box > div {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    /* For mobile phones */
    body {
        margin: 10px;
    }

    .setup-box,
    .setup-box2 {
        width: 90%;
        /* Full width on mobile */
        max-width: 90%;
        padding: 15px;
    }

    .admin-section {
        min-width: 100% !important;
        height: auto !important;
        margin-bottom: 15px;
    }

    .add-machine-box,
    .custom-prompt-box,
    #header-footer-overlay .add-machine-box {
        width: 95%;
        max-width: 95%;
    }

    .add-machine-box .close-btn {
        top: 5px;
        right: 5px;
    }

    #tinymce-toolbar-container {
        width: 100%;
        left: 0;
        transform: none;
    }

    .CodeMirror {
        resize: vertical;
    }

    .add-lead-box {
        width: 85vw;
        height: 90vh;
    }
}

#tinymce-toolbar-container {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.tox .tox-dialog {
    top: 130px;
    max-height: 400% !important;
    overflow-y: auto !important;
}

.cke_notification_warning {
    display: none !important;
    background: #c83939;
    border: 1px solid #902b2b;
}

/* --- New Leads Page Styles --- */
.leads-page-container {
    padding: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px); /* Full height minus navbar */
    box-sizing: border-box;
}

.leads-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.leads-header-controls h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 22px;
}

.leads-header-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.leads-content-wrapper {
    display: flex;
    flex: 1;
    gap: 20px;
    min-height: 0; /* Important for flexbox scrolling */
}

.leads-admin-panel {
    flex: 0 0 260px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(255, 255, 255, 0.1);
}

.leads-admin-panel h4 {
    color: var(--primary-color);
}

.leads-admin-panel .admin-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgb(255 146 0 / 30%);
}

.leads-admin-panel select option {
    background: white;
    color: black;
}

.leads-columns-container {
    display: flex;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.lead-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(255, 255, 255, 0.1);
}

.lead-column-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative; /* For positioning the refresh button */
}
.manual-sync-btn {
    width: fit-content;
    box-shadow: none;
    position: absolute;
    top: 45%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #f1c40f; /* Match unassigned header color */
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}
.manual-sync-btn:hover {
    transform: translateY(-50%) rotate(90deg);
    box-shadow: none;
    border: none;
}

.manual-sync-btn:active {
    transform: translateY(-50%) rotate(90deg) scale(0.9);
}
.manual-sync-btn.syncing {
    pointer-events: none;
}
.manual-sync-btn.syncing .material-symbols-outlined {
    display: inline-block; /* Allow transform on span */
    animation: spin-ui 1s linear infinite;
}
.lead-column-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.lead-column-search {
    padding: 12px;
    background: rgba(0, 0, 0, 0.1);
}
.lead-column-search .admin-input {
    margin: 0;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgb(255 146 0 / 30%);
    padding: 10px;
    border-radius: 8px;
}
.admin-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(48%) sepia(13%) saturate(3207%) hue-rotate(130deg) brightness(95%) contrast(80%);
}
.date-filter-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}
.lead-column-search .admin-input[type="date"] {
    padding: 6px 8px;
    flex: 1;
    min-width: 0;
}

/* Override browser autofill styles for all inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    /* Force text color to be white */
    -webkit-text-fill-color: #ffffff !important;
    /* Use a long transition to trick the browser into not applying its own styles */
    transition: background-color 5000s ease-in-out 0s;
}

.admin-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 40px #797d87 inset !important;
}

.lead-stats-container {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.stat-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #ccc;
    font-weight: 500;
}
.color-circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lead-column-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* Leads Dashboard Styles */
.lead-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    color: #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: relative;
}

.lead-card:hover {
    transform: translateY(-3px);
    background: rgba(45, 45, 45, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.admin-assign-controls select option {
    background: #333;
    color: white;
}

.lead-aging-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 5px;
}

.lead-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.lead-customer-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.lead-phone-hidden {
    font-size: 13px;
    margin-bottom: 8px;
    color: #aaa;
    font-style: italic;
}

.lead-source-badge {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lead-timestamp {
    font-size: 11px;
    color: #999;
}

.lead-status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-New,
.status-Working {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}
.status-QuotationSent {
    background: rgba(155, 89, 182, 0.15);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.3);
}
.status-Closed {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.status-Dead {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}
.status-NotInterested {
    background: rgba(149, 165, 166, 0.15);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.3);
}
.status-InFollowUp {
    background: rgba(230, 126, 34, 0.15);
    color: #e67e22;
    border: 1px solid rgba(230, 126, 34, 0.3);
}

.lead-contact-info {
    display: flex;
    gap: 15px;
    font-size: 13px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.whatsapp-link {
    text-decoration: none;
    background: #25d366;
    color: white;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid #128c7e;
}

.lead-requirements {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

.lead-update-section {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
}
.lead-followup-date {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lead-followup-date label {
    font-size: 12px;
    color: #ccc;
}
.lead-followup-date input {
    padding: 5px;
    width: auto;
}
.lead-update-section .admin-input {
    margin: 0;
}
.lead-action-btn {
    width: 100%;
    margin: 0;
    padding: 8px;
}
.update-btn {
    background: #3498db;
}
.quote-btn {
    background: #e67e22;
}
.claim-btn {
    background: #f1c40f;
    color: #000;
    font-weight: bold;
}

.lead-logs {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 8px;
    font-family: "Consolas", monospace;
    font-size: 11px;
    color: #aaa;
    max-height: 80px;
    overflow-y: auto;
    margin: 10px 0;
    white-space: pre-wrap;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- STICKY SCROLL BUTTONS --- */
.sticky-button-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.sticky-button-container button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: var(--primary-color);
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.sticky-button-container button:hover {
    transform: scale(1.1) translateY(-3px);
    filter: brightness(1.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.sticky-button-container button#go-to-top-btn {
    display: none; /* Hidden by default, shown via JS */
    background-color: #34495e;
}

/* Responsive adjustments for new leads page */
@media (max-width: 1025px) {
    .leads-content-wrapper {
        flex-direction: column;
    }
    .leads-admin-panel {
        flex: 0 0 auto; /* Don't shrink, but don't grow either */
    }
    .leads-columns-container {
        flex-direction: column;
    }
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin: 20px;
}
::-webkit-scrollbar-thumb {
    background: rgba(36, 36, 36, 0.6);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.9);
    border: 2px solid transparent;
    background-clip: content-box;
}
