﻿:root {
    --bs-primary: #405189; /* ახალი primary ფერი */
    --bs-primary-rgb: 64,81,137;
}

.loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.divloader {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.parent {
    position: relative; /* აუცილებელია */
}



.btn-bottom-border {
    border: none !important; /* ყველა border მოვაშოროთ */
    border-bottom: 2px solid #0d6efd !important; /* ქვედა border დავტოვოთ */
    border-radius: 0 !important; /* სურვილისამებრ — კუთხეები გასწორდეს */
}


/* პატარა ეკრანებზე padding სრულად ქრება */
@media (max-width: 768px) {
    [data-layout=vertical] .page-content {
        padding: calc(60px + 1.5rem) 0 0 0
    }

    .dt-buttons {
        display: none !important;
    }
}

.icon-setting .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-setting .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
}

.icon-setting .btn.clicked {
    transform: scale(0.9);
}



/* მენიუ დამალული */
.icon-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 0;
    height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
}

    /* გახსნილი */
    .icon-menu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.customizer-setting{
    bottom: 20px !important
}

/* საერთო სტილი */
.btn-circle {
    width: 50px;
    height: 50px;
    background: #d3daf3;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    position: absolute;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

/* გახსნისას გამოჩენა */
.icon-menu.open .btn-circle {
    opacity: 1;
}


/* 0) თავზე */
.btn-home {
    transform: translate(0 0);
}

.icon-menu.open .btn-home {
    transform: translate(-40px, 20px);
}

/* 1) მარცხნივ */
.btn-left {
    transform: translate(0 0);
}

.icon-menu.open .btn-left {
    transform: translate(-120px, 20px);
}

/* 2) ზემოთ */
.btn-up {
    transform: translate(0, 0);
}

.icon-menu.open .btn-up {
    transform: translate(-40px, -60px);
}

/* 3) დიაგონალზე (ზემოთ + მარცხნივ) */
.btn-diagonal {
    transform: translate(0, 0);
}

.icon-menu.open .btn-diagonal {
    transform: translate(-100px, -40px);
}

.mobile-frame {
    width: 400px;
    min-height: 700px;
    /*width: 375px;
                min-height: 700px;*/
    border: 2px solid #ccc;
    border-radius: 20px;
    background: var(--vz-topbar-user-bg);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* პატარა ეკრანებზე ჩარჩო ქრება */
@media (max-width: 767px) {
    .mobile-frame {
        border: none;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        min-height: auto;
        padding:0px !important;
    }
}

.custom-position-modal {
    pointer-events: none; /* modal backdrop won't block clicks */
    box-shadow: 0 0 6px rgba(0,0,0,0.45);
}

    .custom-position-modal .modal-dialog {
        pointer-events: auto; /* but dialog itself stays clickable */
    }

.anchored-modal {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.45);
}

.swal2-radio {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

    .swal2-radio label {
        margin: 6px 0 !important;
    }



.nav-separator-h {
    width: 80%;
    height: 1px;
    background-color: rgba(255,255,255,0.3);
    margin: 6px 0px 6px 25px;
}

.text-alpha {
    opacity: 0.5;
}

.highlight {
    background-color: #ffe08a; /* რბილი ყვითელი */
    padding: 0 2px;
    border-radius: 3px;
}

table.table.dataTable > tbody > tr.selected > *,
table.table.dataTable.table-hover > tbody > tr.selected:hover > * {
    box-shadow: none;
    background-color: #D8DEF0 !important;
    color: #405189;
}

table.dataTable tbody td {
    vertical-align: middle !important;
}

table.dataTable tbody tr {
    cursor: default;
}

.not-valid-value {
    border: solid 1px red !important;
}



/*.swal2-container {
    z-index: 999999 !important;
}*/


/**************************************************/
/**************************************************/
/**************************************************/
/*********                               **********/
/*********             LOADER            **********/
/*********                               **********/
/**************************************************/
/**************************************************/
/**************************************************/


/* ===========================
   MAIN TITLE & SUBTEXT
   =========================== */
.infinati-text {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #405189;
    animation: infinati-glow 1.8s infinite ease-in-out;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(64, 81, 137, 0.25);
}

@keyframes infinati-glow {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

.infinati-subtext {
    font-size: 14px;
    color: #6c7aa0;
    margin-top: 4px;
    opacity: 0;
    animation: fade-in 0.6s forwards 0.3s;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===========================
   SWEETALERT POPUP (SAFE)
   =========================== */
.swal-loading-popup {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px) saturate(160%);
    border: 1px solid rgba(64, 81, 137, 0.12);
    box-shadow: 0 6px 28px rgba(64, 81, 137, 0.18);
    border-radius: 14px;
    padding: 20px 10px;
}

/* SweetAlert close animation compatibility */
.swal2-show.swal-loading-popup {
    animation: popup-fade-in 0.25s ease-out;
}

.swal2-hide.swal-loading-popup {
    animation: popup-fade-out 0.2s ease-in !important;
}

@keyframes popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popup-fade-out {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* ===========================
   VARIANT 1 — ROTATING RING
   =========================== */
.infinati-ring {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(64, 81, 137, 0.25);
    border-top-color: #405189;
    border-radius: 50%;
    animation: ring-spin 0.9s linear infinite;
    margin: 0 auto 14px auto;
}

@keyframes ring-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   VARIANT 2 — BARS LOADER
   =========================== */
.infinati-bars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}

    .infinati-bars div {
        width: 6px;
        height: 22px;
        background: #405189;
        border-radius: 3px;
        animation: bars 1s infinite ease-in-out;
    }

        .infinati-bars div:nth-child(2) {
            animation-delay: 0.15s;
        }

        .infinati-bars div:nth-child(3) {
            animation-delay: 0.3s;
        }

        .infinati-bars div:nth-child(4) {
            animation-delay: 0.45s;
        }

@keyframes bars {
    0% {
        transform: scaleY(0.4);
        opacity: 0.6;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(0.4);
        opacity: 0.6;
    }
}

/* ===========================
   VARIANT 3 — PULSE LINE
   =========================== */
.infinati-pulse {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #405189, #8fa3d1, #405189);
    background-size: 200% 100%;
    animation: pulse-move 1.6s infinite ease-in-out;
    border-radius: 4px;
    margin: 0 auto 14px auto;
}

@keyframes pulse-move {
    0% {
        background-position: 200% 0;
        opacity: 0.6;
    }

    50% {
        background-position: 0 0;
        opacity: 1;
    }

    100% {
        background-position: 200% 0;
        opacity: 0.6;
    }
}

/* ===========================
   VARIANT 4 — DOT WAVE
   =========================== */
.infinati-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

    .infinati-dots div {
        width: 10px;
        height: 10px;
        background: #405189;
        border-radius: 50%;
        animation: dot-wave 1.2s infinite ease-in-out;
    }

        .infinati-dots div:nth-child(2) {
            animation-delay: 0.15s;
        }

        .infinati-dots div:nth-child(3) {
            animation-delay: 0.3s;
        }

        .infinati-dots div:nth-child(4) {
            animation-delay: 0.45s;
        }

@keyframes dot-wave {
    0% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0.6;
    }
}

/* ===========================
   VARIANT 5 — DUAL RING
   =========================== */
.infinati-dualring {
    width: 46px;
    height: 46px;
    position: relative;
    margin: 0 auto 14px auto;
}

    .infinati-dualring::before,
    .infinati-dualring::after {
        content: "";
        position: absolute;
        inset: 0;
        border: 4px solid transparent;
        border-radius: 50%;
        animation: dualring 1.2s linear infinite;
    }

    .infinati-dualring::before {
        border-top-color: #405189;
    }

    .infinati-dualring::after {
        border-bottom-color: #8fa3d1;
        animation-delay: -0.6s;
    }

@keyframes dualring {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   VARIANT 6 — LINE SWEEP
   =========================== */
.infinati-sweep {
    width: 80px;
    height: 6px;
    background: rgba(64, 81, 137, 0.25);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 14px auto;
    position: relative;
}

    .infinati-sweep::after {
        content: "";
        position: absolute;
        width: 40%;
        height: 100%;
        background: #405189;
        animation: sweep-move 1.4s infinite ease-in-out;
        border-radius: 4px;
    }

@keyframes sweep-move {
    0% {
        left: -40%;
    }

    50% {
        left: 60%;
    }

    100% {
        left: -40%;
    }
}

/* ===========================
   VARIANT 7 — PULSE DOTS
   =========================== */
.infinati-pulse-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

    .infinati-pulse-dots div {
        width: 12px;
        height: 12px;
        background: #405189;
        border-radius: 50%;
        animation: pulse-dot 1.3s infinite ease-in-out;
    }

        .infinati-pulse-dots div:nth-child(2) {
            animation-delay: 0.2s;
        }

        .infinati-pulse-dots div:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes pulse-dot {
    0% {
        transform: scale(0.6);
        opacity: 0.6;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.6);
        opacity: 0.6;
    }
}

/* ===========================
   VARIANT 8 — SEGMENT SPINNER
   =========================== */
.infinati-segment {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(64, 81, 137, 0.25);
    border-right-color: #405189;
    animation: segment-spin 0.8s linear infinite;
    margin: 0 auto 14px auto;
}

@keyframes segment-spin {
    to {
        transform: rotate(360deg);
    }
}
