:root {
    /* Dimensions */
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 70px;
    --topbar-height: 70px;
    /* Light Theme Defaults */
    --bg-body: #f3f3f9;
    --bg-panel: #ffffff;
    --text-primary: #212529;
    --border-color: #e3e6f0;
    --zs-bg: #F8FAFC;
    --zs-head-bg: #714fc8;
    --zs-sidebar-bg: #FFFFFF;
    --zs-text: #E5E7EB;
    --zs-menu-text: #0221bb;
    --zs-menu-text-active: #31b4d8;
    --zs-menu-border: #c6dac9;
    --skel-base: #d1fae5;
    --skel-shine: #f0fdf4;
    --skel-radius: 12px;
    --sk-speed: 1.4s;
}

[data-bs-theme="dark"] {
    /* Dark Theme Overrides */
    --zs-bg: #616161;
    --bg-panel: #212529;
    --text-primary: #f8f9fa;
    --border-color: #2c3035;
    --zs-sidebar-bg: #1e1e1e;
    --zs-text: #1F2937;
    --zs-menu-text: #5df6ff;
    --zs-menu-border: #213724;
}

body {
    background-color: var(--zs-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.3s;
}

.content-body {
    background-color: var(--zs-bg);
}

/* --- LAYOUT GRID --- */
.main-wrapper {
    display: flex;
    width: 100%;
}

/* Sidebar Styling */
.sidebar {
    background-color: var(--zs-sidebar-bg);
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    border-right: 1px solid var(--border-color);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

    .sidebar .sidebar-head {
        background-color: var(--zs-head-bg);
    }

    /*.sidebar .sidebar-body {
        background-color: var(--zs-sidebar-bg);
        height:calc(100vh-70px);
    }*/

    .sidebar.collapsed {
        width: var(--sidebar-width-collapsed);
    }

    .sidebar .nav-text {
        white-space: nowrap;
        opacity: 1;
        transition: opacity 0.2s;
    }

    .sidebar .brand-logo {
        display: none;
        opacity: 0;
    }

    .sidebar.collapsed .brand-logo {
        display: block;
        opacity: 100;
    }

    .sidebar.collapsed .nav-text,
    .sidebar.collapsed .brand-text {
        display: none;
        opacity: 0;
    }

/* Main Content Area */
.content-area {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: all 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    .content-area.expanded {
        margin-left: var(--sidebar-width-collapsed);
        width: calc(100% - var(--sidebar-width-collapsed));
    }

/* Sticky Topbar */
.topbar {
    height: var(--topbar-height);
    background: var(--zs-sidebar-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/*
    Website Settings
*/
/* Firefox (uncomment to work in Firefox) */
/* * {
  scrollbar-width: thin;
  scrollbar-color: #20C997 #DFE9EB;
} */

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
    height: 5px;
    width: 5px;
}

*::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #DFE9EB;
    border: 4px solid #FFFFFF;
}

    *::-webkit-scrollbar-track:hover {
        background-color: #B8C0C2;
    }

    *::-webkit-scrollbar-track:active {
        background-color: #B8C0C2;
    }

*::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background-color: #20C997;
    border: 1px inset #FFFFFF;
}

    *::-webkit-scrollbar-thumb:hover {
        background-color: #17A2B8;
    }

    *::-webkit-scrollbar-thumb:active {
        background-color: #63C97B;
    }

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}




/*Toast*/
/* =========================================
   Toast Component Styles
   ========================================= */

/* Container & Positioning */
.zs_toast-container {
    position: fixed;
    z-index: 9999;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 450px;
    pointer-events: none;
}

[data-position="tr"] {
    top: 0;
    right: 0;
    align-items: flex-end;
}

[data-position="tc"] {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

[data-position="tl"] {
    top: 0;
    left: 0;
    align-items: flex-start;
}

[data-position="br"] {
    bottom: 0;
    right: 0;
    align-items: flex-end;
    flex-direction: column-reverse;
}

[data-position="bc"] {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    flex-direction: column-reverse;
}

[data-position="bl"] {
    bottom: 0;
    left: 0;
    align-items: flex-start;
    flex-direction: column-reverse;
}

.zs_toast {
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 12px;
    min-width: 320px;
    padding: 16px;
    border-radius: 27px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    pointer-events: auto;
}

    .zs_toast.zs_toast-success {
        --toast-accent-color: #16a34a;
        background: #ffffff !important;
        color: #007a4e !important;
    }

    .zs_toast.zs_toast-error {
        --toast-accent-color: #dc2626;
        background: #ffffff !important;
        color: #612f00 !important;
    }

    .zs_toast.zs_toast-warning {
        --toast-accent-color: #f59e0b;
        background: #ffffff !important;
        color: #0091c2 !important;
    }

    .zs_toast.zs_toast-info {
        --toast-accent-color: #3b82f6;
        background: #ffffff !important;
        color: #20397c !important;
    }


.zs_toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /*color: var(--toast-accent-color);*/
}

.zs_style-accent .zs_toast-icon, .zs_style-bordered .zs_toast-icon, .zs_style-minimal .zs_toast-icon {
    color: var(--toast-accent-color);
}

.zs_toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.4rem;
    opacity: 0.4;
    line-height: 1;
    padding: 0;
    margin-left: auto;
    transition: opacity 0.2s;
    align-self: flex-start;
}

    .zs_toast-close:hover {
        opacity: 1;
    }

.zs_style-accent {
    border: 1px solid var(--toast-accent-color);
    border-left: 6px solid var(--toast-accent-color);
}

.zs_style-bordered {
    border: 2px solid var(--toast-accent-color);
}

.zs_toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: var(--toast-accent-color);
    opacity: 0.3;
    transform-origin: left;
    z-index: 10;
    transform: scaleX(1);
}

.zs_style-solid .zs_toast-progress {
    background: rgba(255,255,255,0.7);
    opacity: 1;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

.card-body-vh100 {
    height: calc(100vh - 240px) !important;
    overflow-x: auto;
}


.grid-r-item {
    opacity: 0;
    transform: translateY(20px);
    animation: rowEnter 0.6s ease-in-out forwards;
}

@keyframes rowEnter {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.material-symbols-outlined {
    vertical-align: middle;
    font-size: 1.25rem;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.card-row-item {
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card-row-item:hover {
        border-color: #04746d;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
    }

.progress {
    height: 8px;
}




/*loader*/
/*===================================
    zielenscript loader for loading 
===================================*/
.zs-loader-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(197, 203, 255, 0.35);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.zs-loader {
    --c: linear-gradient(#04746d 0 0);
    background: var(--c), var(--c), var(--c), var(--c), var(--c), var(--c), var(--c), var(--c), var(--c);
    background-size: 16px 16px;
    background-repeat: no-repeat;
    animation: sh2-1 2s infinite, sh2-2 2s infinite;
}

@keyframes sh2-1 {
    0%,100% {
        width: 45px;
        height: 45px
    }

    35%,65% {
        width: 65px;
        height: 65px
    }
}

@keyframes sh2-2 {
    0%,40% {
        background-position: 0 0,0 50%, 0 100%,50% 100%,100% 100%,100% 50%,100% 0,50% 0, 50% 50%
    }

    60%,100% {
        background-position: 0 50%, 0 100%,50% 100%,100% 100%,100% 50%,100% 0,50% 0,0 0, 50% 50%
    }
}

/*
    checkbox and radio button
*/
.zs-rc-wrapper *, .zs-rc-wrapper *::before, .zs-rc-wrapper *::after {
    box-sizing: content-box !important;
}

.zs-rc-wrapper input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.zs-rc-wrapper span {
    font-size: 15px;
}

.zs-rc-wrapper {
    display: table;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    margin-bottom: 10px;
}

    .zs-rc-wrapper input[type="checkbox"] ~ .zs-rc-input, .zs-rc-wrapper input[type="radio"] ~ .zs-rc-input {
        position: absolute;
        top: 50%;
        left: 0;
        width: 25px;
        height: 25px;
        background: #94A3B8;
        border: 1px solid #F1F5F9;
        transform: translateY(-50%);
        transition: background 250ms;
    }

    .zs-rc-wrapper input[type="checkbox"] ~ .zs-rc-input {
        border-radius: 3px;
    }

    .zs-rc-wrapper input[type="radio"] ~ .zs-rc-input {
        border-radius: 7px;
    }

    .zs-rc-wrapper input[type="checkbox"] ~ .zs-rc-input::after {
        content: "";
        position: absolute;
        display: none;
        top: 4px;
        left: 5px;
        width: 17px;
        height: 17px;
        background: #FFFFFF;
        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    }

    .zs-rc-wrapper input[type="radio"] ~ .zs-rc-input::after {
        content: "";
        position: absolute;
        display: none;
        top: 6px;
        left: 7px;
        width: 12px;
        height: 12px;
        border-radius: 8px;
        background: #FFFFFF;
    }

    .zs-rc-wrapper input:checked ~ .zs-rc-input::after {
        display: block;
    }

    .zs-rc-wrapper:hover input:not([disabled]) ~ .zs-rc-input, .zs-rc-wrapper input:focus ~ .zs-rc-input {
        background: #E2E8F0;
        border-color: #64748B;
    }

    .zs-rc-wrapper input:checked ~ .zs-rc-input {
        background: #40A9BF;
        border-color: #2F7D8E;
    }

    .zs-rc-wrapper:hover input:not([disabled]):checked ~ .zs-rc-input, .zs-rc-wrapper input:checked:focus ~ .zs-rc-input {
        background: #2F7D8E;
        border-color: #225D69;
    }

    .zs-rc-wrapper input:disabled ~ .zs-rc-input {
        opacity: 0.7;
        cursor: not-allowed;
    }

    .zs-rc-wrapper input:disabled ~ span {
        opacity: 0.7;
        cursor: not-allowed;
    }


/*Skeleton start*/
.sk-stage {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

/* Card sizes */
.sk-card.size-sm {
    width: 200px;
}

.sk-card.size-md {
    width: 280px;
}

.sk-card.size-lg {
    width: 360px;
}

.sk-card.size-full {
    width: 100%;
}

.sk-card {
    background: #ffffff;
    border-radius: var(--skel-radius);
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    overflow: hidden;
}

/* Base skeleton element */
.sk {
    background: var(--skel-base);
    border-radius: var(--skel-radius);
    position: relative;
    overflow: hidden;
}

    /* Shimmer animation */
    .sk.animate::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, transparent 0%, var(--skel-shine) 50%, transparent 100% );
        animation: shimmer var(--sk-speed) infinite;
    }

    /* Pulse animation */
    .sk.animate.pulse {
        animation: pulse var(--sk-speed) ease-in-out infinite;
    }

        .sk.animate.pulse::after {
            display: none;
        }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .45;
    }
}

/* Profile card */
.sk-card.type-profile .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sk-card.type-profile .sk-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--skel-radius);
}

.sk-card.type-profile .sk-line {
    height: 10px;
}

    .sk-card.type-profile .sk-line.w-80 {
        width: 80%;
    }

    .sk-card.type-profile .sk-line.w-70 {
        width: 70%;
    }

    .sk-card.type-profile .sk-line.w-60 {
        width: 60%;
    }

    .sk-card.type-profile .sk-line.w-40 {
        width: 40%;
    }

/* Article card */
.sk-card.type-article .sk-thumb {
    height: 160px;
    border-radius: 0;
}

.sk-card.type-article .card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sk-card.type-article .sk-line {
    height: 10px;
}

    .sk-card.type-article .sk-line.title {
        height: 14px;
        width: 90%;
    }

    .sk-card.type-article .sk-line.w-70 {
        width: 70%;
    }

    .sk-card.type-article .sk-line.w-50 {
        width: 50%;
    }

.sk-card.type-article .sk-avatar {
    width: 24px;
    height: 24px;
    border-radius: var(--skel-radius);
}

.sk-card.type-article .meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Product card */
.sk-card.type-product .sk-thumb {
    height: 200px;
    border-radius: 0;
}

.sk-card.type-product .card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sk-card.type-product .sk-line {
    height: 10px;
}

    .sk-card.type-product .sk-line.title {
        height: 14px;
        width: 80%;
    }

    .sk-card.type-product .sk-line.price {
        height: 18px;
        width: 35%;
    }

    .sk-card.type-product .sk-line.w-60 {
        width: 60%;
    }

.sk-card.type-product .sk-btn {
    height: 36px;
    border-radius: var(--skel-radius);
    width: 100%;
    margin-top: 4px;
}

/* List card */
.sk-card.type-list .card-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sk-card.type-list .sk-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ededed;
}

    .sk-card.type-list .sk-row:last-child {
        border-bottom: none;
    }

.sk-card.type-list .sk-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--skel-radius);
    flex-shrink: 0;
}

.sk-card.type-list .sk-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sk-card.type-list .sk-line {
    height: 9px;
}

    .sk-card.type-list .sk-line.w-70 {
        width: 70%;
    }

    .sk-card.type-list .sk-line.w-45 {
        width: 45%;
    }
/*Skeleton end*/


/*Syncfusion grid start*/
/* 🔹 GRID CONTAINER */
.zs-grid-wrapper .e-grid {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: none;
    background: #ffffff;
}

/* 🔹 HEADER STYLE */
.zs-grid-wrapper .e-gridheader {
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: white;
    font-weight: 600;
    border-bottom: none;
}

/* Header cells */
.zs-grid-wrapper .e-headercell {
    background: #d8bfff !important;
    color: #258527 !important;
    border: none !important;
}

/* 🔹 ROW STYLE */
.zs-grid-wrapper .e-row {
    transition: all 0.2s ease-in-out;
}

    /* Hover effect */
    .zs-grid-wrapper .e-row:hover {
        background-color: #f1f5ff !important;
        transform: scale(1.01);
    }

/* 🔹 GRID CELLS */
.zs-grid-wrapper .e-rowcell {
    border-bottom: 1px solid #f0f0f0;
}

/* 🔹 REMOVE DEFAULT BORDERS */
.zs-grid-wrapper .e-grid,
.zs-grid-wrapper .e-gridheader,
.zs-grid-wrapper .e-gridcontent {
    border: none !important;
}

/* 🔹 PAGING */
.zs-grid-wrapper .e-pager {
    border-top: none;
    padding: 10px;
    background: #d8bfff !important;
}

/* 🔹 BUTTONS */
.zs-grid-wrapper .btn {
    border-radius: 8px;
}
/*Syncfusion grid end*/

/*error box start*/
.validation-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
}

.animated-error-box {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
    background-color: #f8d7da;
    color: #842029;
    border-radius: 0 0 0.375rem 0.375rem;
    font-size: 0.875em;
    padding: 0 0.75rem;
    margin-top: -2px; /* Tucks seamlessly under the textbox */
    border: 1px solid transparent;
    border-top: none;
}

    .animated-error-box.show-error {
        max-height: 80px; /* Expands to fit text */
        opacity: 1;
        padding: 0.5rem 0.75rem;
        border-color: #f5c2c7;
    }
/*error box end*/

/*Header text start*/
.zs-headertext {
    background: #074C34;
    background: -webkit-repeating-radial-gradient(circle farthest-side at bottom center, #074C34 0%, #00BE82 23%, #17D1C8 50%, #00DC00 20%, #2B85D9 37%, #16C5FF 62%, #178785 92%);
    background: -moz-repeating-radial-gradient(circle farthest-side at bottom center, #074C34 0%, #00BE82 23%, #17D1C8 50%, #00DC00 20%, #2B85D9 37%, #16C5FF 62%, #178785 92%);
    background: repeating-radial-gradient(circle farthest-side at bottom center, #074C34 0%, #00BE82 23%, #17D1C8 50%, #00DC00 20%, #2B85D9 37%, #16C5FF 62%, #178785 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/*Header text end*/
