/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.light-style .menu .app-brand.demo {
    height: 64px;
}

.dark-style .menu .app-brand.demo {
    height: 64px;
}

.btn-green {
    background-color: #17715d;
    border-color: #7af1cf;
    color: #fff;
}

.layout-wrapper .layout-page:before {
    content: '';
    width: 100%;
    height: 4.5rem;
    position: fixed;
    top: 0;
    z-index: 10;
    -webkit-backdrop-filter: saturate(200%) blur(10px) !important;
    backdrop-filter: saturate(200%) blur(10px) !important;
    background: linear-gradient(180deg, #25293cb3 44%, #25293c6e 73%, #25293c00) !important;
    -webkit-mask: linear-gradient(#25293c, #25293c 18%, transparent 100%) !important;
    mask: linear-gradient(#25293c, #25293c 18%, transparent 100%) !important;
}

.app-brand-logo.demo {
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    display: -ms-flexbox;
    display: flex;
    width: 34px;
    height: 24px;
}

.app-brand-logo.demo svg {
    width: 35px;
    height: 24px;
}

.app-brand-text.demo {
    font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
    padding-top: 78px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
    display: block !important;
}

.demo-inline-spacing > * {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.rtl-only {
    display: none !important;
    text-align: left !important;
    direction: ltr !important;
}

[dir='rtl'] .rtl-only {
    display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1rem;
}
.layout-demo-placeholder img {
    width: 900px;
}
.layout-demo-info {
    text-align: center;
    margin-top: 1rem;
}

/*
 select select2 style
*******************************************************************************/
.dark-style .select2-container--default .select2-selection {
    background-color: #22263c;
    border: 1px solid #545b7f !important;
}
.dark-style .form-select {
    border: 1px solid #545b7f !important;
}
.dark-style .form-control {
    border: 1px solid #545b7f !important;
}

/* Spinner */

.offcanvasSpinnerBg {
    opacity: 20%;
    filter: blur(3px);
}

.offcanvasSpinner {
    position: absolute;
    top: 50%;
    right: 50%;
    z-index: 1;
}
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    height: 30px;
    width: 30px;
    transform: translate(-50%, -50%);
}

[class^='ball-'] {
    position: absolute;
    display: block;
    left: 30px;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    transition: all 0.5s;
    animation: circleRotate 4s both infinite;
    transform-origin: 0 250% 0;
}
@keyframes circleRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(1440deg);
    }
}

.ball-1 {
    z-index: -1;
    background-color: #7367f0;
    animation-timing-function: cubic-bezier(0.5, 0.3, 0.9, 0.9);
}
.ball-2 {
    z-index: -2;
    background-color: #25293c;
    animation-timing-function: cubic-bezier(0.5, 0.6, 0.9, 0.9);
}
.ball-3 {
    z-index: -3;
    background-color: #404071;
    animation-timing-function: cubic-bezier(0.5, 0.9, 0.9, 0.9);
}
.ball-4 {
    z-index: -4;
    background-color: #7367f0;
    animation-timing-function: cubic-bezier(0.5, 1.2, 0.9, 0.9);
}
.ball-5 {
    z-index: -5;
    background-color: #7367f0;
    animation-timing-function: cubic-bezier(0.5, 1.5, 0.9, 0.9);
}
.ball-6 {
    z-index: -6;
    background-color: #404071;
    animation-timing-function: cubic-bezier(0.5, 1.8, 0.9, 0.9);
}
.ball-7 {
    z-index: -7;
    background-color: #25293c;
    animation-timing-function: cubic-bezier(0.5, 2.1, 0.9, 0.9);
}
.ball-8 {
    z-index: -8;
    background-color: #7367f0;
    animation-timing-function: cubic-bezier(0.5, 2.4, 0.9, 0.9);
}

.logo {
    position: absolute;
    top: 11px;
    left: 14px;
    color: #7367f0;
    background-color: #7367f0;
    width: 30px;
    height: 40px;
    clip-path: polygon(79% 0, 44% 39%, 93% 39%, 22% 98%, 57% 51%, 11% 51%);
    animation: zoomAnimation 1s infinite alternate;
}
@keyframes zoomAnimation {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
    110% {
        transform: scale(0);
    }
}

/* Dropzone */
.dropzone {
    border: 2px dashed #434968;
    border-radius: 0.5rem;
    padding: 1.5rem;
    position: relative;
    width: 100%;
}

#dropzone.is-dragover {
    background-color: #515253; /* Light grey background */
    border: 2px dashed #cf8a0a; /* Dashed border */
    /* Add other styling as desired */
}

.dark-style .dz-preview {
    display: inline-block;
    width: 11.25rem;
}
.dark-style .dz-preview {
    background: #2f3349;
    border: 0 solid #434968;
    border-radius: 0.375rem;
    box-shadow: 0 0.25rem 1.25rem rgba(15, 20, 34, 0.4);
}
.dz-preview {
    background: #fff;
    box-sizing: content-box;
    cursor: default;
    font-size: 0.8125rem;
    margin: 0.5rem;
    position: relative;
    vertical-align: top;
}

@media (min-width: 576px) {
    .dark-style .dz-thumbnail {
        width: 10rem;
    }
}

.dz-thumbnail > a > img {
    max-height: 100%;
    max-width: 100%;
    border-radius: calc(0.375rem - 1px);
}

.dark-style .dz-thumbnail {
    background: hsla(0, 0%, 100%, 0.015);
    border-bottom: 1px solid #434968;
    border-top-left-radius: calc(0.375rem - 1px);
    border-top-right-radius: calc(0.375rem - 1px);
}
.dz-thumbnail {
    box-sizing: content-box;
    height: 7.5rem;
    padding: 0.625rem;
    position: relative;
    text-align: center;
}
.dz-thumbnail:hover {
    cursor: pointer;
}

.dz-thumbnail .dz-nopreview,
.dz-thumbnail > img {
    display: block;
    margin: 0 auto;
    position: relative;
    top: 50%;
    border-radius: 0.375rem;
    -webkit-transform: translateY(-50%) scale(1);
    transform: translateY(-50%) scale(1);
}
.dark-style .dz-filename {
    background: #2f3349;
    border-bottom: 0 solid #434968;
    padding-bottom: 0.25rem;
    padding-top: 0.25rem;
}
.dz-filename {
    background: #fff;
    overflow: hidden;
    padding: 0.625rem 0.625rem 0;
    position: absolute;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}
.dark-style .dz-size {
    color: #7983bb;
}
.dark-style .dz-date {
    color: #7983bb;
}
.dz-size {
    font-size: 0.6875rem;
    font-style: italic;
    padding-top: 1.875rem;
    padding-left: 0.625rem;
    padding-bottom: 0.625rem;
}
.dz-date {
    font-size: 0.6875rem;
    font-style: italic;
    padding-top: 1.875rem;
    padding-right: 0.625rem;
    padding-bottom: 0.625rem;
}

.dz-remove {
    position: absolute !important;
    top: 0;
    right: 0;
}

#dropzone-text {
    transition: top 0.3s; /* Smooth transition for moving text */
    /* your existing styles */
}

#dropzone-text.has-files {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* Adjust styles if necessary */
}

/* Card Style */
.card.card-border-shadow-primary:after {
    border-bottom-color: #4a488c;
}

.card.card-border-shadow-primary:hover:after {
    border-bottom-color: #7367f0;
}
.card.card-border-shadow-secondary:after {
    border-bottom-color: #5f6371;
}

.card.card-border-shadow-secondary:hover:after {
    border-bottom-color: #a8aaae;
}

.card .card-hover-border-secondary:hover,
.card.card-hover-border-secondary:hover {
    border-color: #5d606f;
}

.card.card-border-shadow-success:after {
    border-bottom-color: #2c6e58;
}

.card.card-border-shadow-success:hover:after {
    border-bottom-color: #28c76f;
}

.card .card-hover-border-success:hover,
.card.card-hover-border-success:hover {
    border-color: #2c6b57;
}

.card.card-border-shadow-info:after {
    border-bottom-color: #1c7189;
}

.card.card-border-shadow-info:hover:after {
    border-bottom-color: #00cfe8;
}

.card .card-hover-border-info:hover,
.card.card-hover-border-info:hover {
    border-color: #1d6e85;
}

.card.card-border-shadow-warning:after {
    border-bottom-color: #825e47;
}

.card.card-border-shadow-warning:hover:after {
    border-bottom-color: #ff9f43;
}

.card .card-hover-border-warning:hover,
.card.card-hover-border-warning:hover {
    border-color: #7e5c47;
}

.card.card-border-shadow-danger:after {
    border-bottom-color: #7a404e;
}

.card.card-border-shadow-danger:hover:after {
    border-bottom-color: #ea5455;
}

.card .card-hover-border-danger:hover,
.card.card-hover-border-danger:hover {
    border-color: #76404e;
}

.card.card-border-shadow-light:after {
    border-bottom-color: #373b50;
}

.card.card-border-shadow-light:hover:after {
    border-bottom-color: #44475b;
}

.card .card-hover-border-light:hover,
.card.card-hover-border-light:hover {
    border-color: #373b50;
}

.card.card-border-shadow-dark:after {
    border-bottom-color: #727585;
}

.card.card-border-shadow-dark:hover:after {
    border-bottom-color: #d7d8de;
}

.card .card-hover-border-dark:hover,
.card.card-hover-border-dark:hover {
    border-color: #6f7282;
}

.card.card-border-shadow-gray:after {
    border-bottom-color: hsla(230, 8%, 47%, 0.92);
}

.card.card-border-shadow-gray:hover:after {
    border-bottom-color: hsla(0, 0%, 100%, 0.8);
}

.card .card-hover-border-gray:hover,
.card.card-hover-border-gray:hover {
    border-color: hsla(231, 8%, 46%, 0.924);
}

.card {
    background-clip: padding-box;
    box-shadow: 0 0.25rem 1.25rem rgba(15, 20, 34, 0.4);
}

.card .card-link {
    display: inline-block;
}

.card .card-body + .card-footer,
.card .card-header + .card-body,
.card .card-header + .card-content > .card-body:first-of-type {
    padding-top: 0;
}

.card[class*='card-border-shadow-'] {
    border-bottom: none;
    position: relative;
    transition: all 0.2s ease-in-out;
    z-index: 1;
}

.card[class*='card-border-shadow-']:after {
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-radius: 0.375rem;
    bottom: 0;
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    transition: all 0.2s ease-in-out;
    width: 100%;
    z-index: -1;
}

.card[class*='card-border-shadow-']:hover {
    box-shadow: 0 0.25rem 1rem rgba(15, 20, 34, 0.55);
}

.card[class*='card-border-shadow-']:hover:after {
    border-bottom-width: 3px;
}

.card[class*='card-hover-border-'] {
    border-width: 1px;
}

/* FlatPicker */

.dark-style .flatpickr-time input {
    background: #514e77 !important;
}
.dark-style .flatpickr-prev-month,
.dark-style .flatpickr-next-month {
    background-color: #514e77;
}

.flatpickr-calendar.hasWeeks,
.flatpickr-calendar.hasWeeks .flatpickr-days {
    width: auto !important;
}

.flatpickr-weekwrapper {
    background: #393d57;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}
.dark-style .flatpickr-weeks {
    background: #393d57 !important;
}
/* select2 */
.dark-style .select2-dropdown {
    background: #22263c !important;
}

.authentication-wrapper.authentication-cover .authentication-inner .auth-cover-bg .auth-illustration {
    border-radius: 17px;
    max-height: fit-content !important;
}

/* V.2 */

.scene-container {
    position: relative;

    width: min(100%, 1362px);

    aspect-ratio: 1362 / 1078;

    flex: 0 0 auto;
}

.auth-cover-bg {
    position: relative;
    overflow: hidden;
}

.scene-image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    margin: 0;

    z-index: 1;
}

.Building-nion {
    position: absolute;
    top: 35.1%;
    left: -1%;
    width: 34%;
    height: 13%;
    background: transparent;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}

.neon-border {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: visible;
}

/* الخط النيوني الأساسي */
.neon-line {
    fill: none;

    stroke: url(#neonGradient);
    stroke-width: 3;

    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 0.9;

    filter: drop-shadow(0 0 3px rgba(158, 248, 228, 1)) drop-shadow(0 0 8px rgba(126, 255, 226, 0.8)) drop-shadow(0 0 16px rgba(82, 232, 199, 0.5));
}

/* الجزء الأبيض المتحرك */
.neon-ray {
    fill: none;

    stroke: #ffffff;
    stroke-width: 6;

    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: 55 700;
    stroke-dashoffset: 60;

    opacity: 0;

    filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 8px #9ef8e4) drop-shadow(0 0 16px #58e8c8);

    animation: neon-ray-move 5s linear infinite;
}

@keyframes neon-ray-move {
    0% {
        stroke-dashoffset: 60;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    32% {
        stroke-dashoffset: -630;
        opacity: 1;
    }

    36%,
    100% {
        stroke-dashoffset: -630;
        opacity: 0;
    }
}

.hero-scene {
    position: relative;

    width: 100%;
    max-width: 750px;

    overflow: hidden;
}

.hero-image {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
}

.hazard-lights-layer {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 20;

    pointer-events: none;
}

.hazard-lights {
    position: absolute;
    inset: 0;

    z-index: 5;

    pointer-events: none;
}

.hazard-light {
    position: absolute;

    left: var(--x);
    top: var(--y);

    width: var(--w);
    height: var(--h);

    border-radius: 999px;

    transform: translate(-50%, -50%) rotate(var(--rotate));

    background: linear-gradient(90deg, rgba(255, 115, 0, 0.2) 0%, #ff8a00 25%, #fff1b8 50%, #ff9d00 75%, rgba(255, 115, 0, 0.2) 100%);

    opacity: 0;

    box-shadow: 0 0 2px #ffffff, 0 0 5px #ffd36a, 0 0 10px #ff9800, 0 0 18px rgba(255, 102, 0, 0.9), 0 0 30px rgba(255, 85, 0, 0.55);

    animation: hazard-blink 0.8s steps(1, end) infinite;
}

.hazard-light::before {
    content: '';

    position: absolute;

    left: 50%;
    top: 50%;

    width: 260%;
    height: 500%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: radial-gradient(
        ellipse at center,
        rgba(255, 190, 75, 0.75) 0%,
        rgba(255, 132, 0, 0.38) 25%,
        rgba(255, 91, 0, 0.16) 48%,
        transparent 72%
    );

    filter: blur(5px);

    opacity: 0;

    animation: hazard-glow 0.8s steps(1, end) infinite;
}

@keyframes hazard-blink {
    0%,
    45% {
        opacity: 1;
        filter: brightness(2.2);
    }

    50%,
    100% {
        opacity: 0;
        filter: brightness(1);
    }
}

@keyframes hazard-glow {
    0%,
    45% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    50%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/*LS Right Nion*/
/* ==================================================
   الحاوية الأساسية
================================================== */

.ems-scene1 {
    position: absolute;
    width: 442px;
    height: 455px;
    overflow: hidden;
    isolation: isolate;
    top: 564px;
    left: 526px;
}

/* ==================================================
   مكان إطار محطة الشحن
================================================== */

.charger-neon-overlay-1 {
    position: absolute;

    /*
       عدّل هذه القيم حتى يوضع الإطار فوق المحطة تمامًا
    */
    left: 36.4%;
    top: 54.5%;
    width: 6.1%;
    height: 21.1%;

    z-index: 20;

    pointer-events: none;
    overflow: visible;

    transform-origin: center;
}

.charger-neon-overlay-2 {
    position: absolute;

    /*
       عدّل هذه القيم حتى يوضع الإطار فوق المحطة تمامًا
    */
    left: 57.9%;
    top: 62.4%;
    width: 6.6%;
    height: 22.6%;

    z-index: 20;

    pointer-events: none;
    overflow: visible;

    transform-origin: center;
}

.charger-neon-svg {
    display: block;

    width: 100%;
    height: 100%;

    overflow: visible;
}

/* ==================================================
   التوهج الخلفي
================================================== */

.charger-glow {
    fill: none;

    stroke: #43e8bd;
    stroke-width: 11;

    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 0.17;

    filter: blur(5px) drop-shadow(0 0 8px rgba(67, 232, 189, 0.55)) drop-shadow(0 0 18px rgba(26, 203, 157, 0.28));

    animation: charger-glow-breathe 4.8s ease-in-out infinite;
}

/* ==================================================
   الخط الأساسي
================================================== */

.charger-neon-line {
    fill: none;

    stroke: url(#chargerNeonGradient);
    stroke-width: 3.2;

    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 0.92;

    filter: drop-shadow(0 0 2px rgba(223, 255, 248, 0.95)) drop-shadow(0 0 5px rgba(131, 255, 225, 0.7))
        drop-shadow(0 0 10px rgba(67, 232, 189, 0.38));

    animation: charger-line-breathe 4.8s ease-in-out infinite;
}

/* ==================================================
   اللمعة المتحركة البطيئة
================================================== */

.charger-moving-light {
    fill: none;

    stroke: #effffb;
    stroke-width: 4.5;

    stroke-linecap: round;
    stroke-linejoin: round;

    /*
       28 طول اللمعة
       700 المسافة الفارغة بعدها
    */
    stroke-dasharray: 28 700;
    stroke-dashoffset: 40;

    opacity: 0;

    filter: drop-shadow(0 0 2px #ffffff) drop-shadow(0 0 6px #83ffe1) drop-shadow(0 0 12px rgba(67, 232, 189, 0.65));

    animation: charger-light-travel 7s ease-in-out infinite;
}

.charger-moving-light-2 {
    animation-delay: 3.2s;
}

/* ==================================================
   حركات النيون
================================================== */

/*
   تنفس هادئ للتوهج الخارجي
*/
@keyframes charger-glow-breathe {
    0%,
    100% {
        opacity: 0.11;
        stroke-width: 9;
    }

    50% {
        opacity: 0.24;
        stroke-width: 12;
    }
}

/*
   نبض بسيط للخط الأساسي
*/
@keyframes charger-line-breathe {
    0%,
    100% {
        opacity: 0.78;
        filter: drop-shadow(0 0 2px rgba(223, 255, 248, 0.8)) drop-shadow(0 0 4px rgba(131, 255, 225, 0.55))
            drop-shadow(0 0 8px rgba(67, 232, 189, 0.28));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 7px rgba(131, 255, 225, 0.8))
            drop-shadow(0 0 14px rgba(67, 232, 189, 0.45));
    }
}

/*
   لمعة تمر ببطء على أجزاء الإطار
*/
@keyframes charger-light-travel {
    0% {
        stroke-dashoffset: 45;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    55% {
        opacity: 0.95;
    }

    80% {
        stroke-dashoffset: -560;
        opacity: 0.7;
    }

    90%,
    100% {
        stroke-dashoffset: -620;
        opacity: 0;
    }
}

/* ==================================================
   تقليل الحركة عند طلب المستخدم ذلك
================================================== */

@media (prefers-reduced-motion: reduce) {
    .charger-glow,
    .charger-neon-line,
    .charger-moving-light {
        animation: none;
    }

    .charger-moving-light {
        display: none;
    }
}
