@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
}

/* FocusOnNavigate targets the first h1 on every route; hide the focus ring it leaves behind. */
h1:focus {
    outline: none;
}

/* Page title rendered inside the admin top bar (AdminLayout). */
.header-caption {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}


.content {
    padding-top: 4.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

/*.invalid {
    outline: 1px solid red;
}*/

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1200;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.bg-gradient-green {
    background-image: linear-gradient(195deg, #81E6D9 0%, #D81B60 100%);
}


/*Drag Drop Styles*/
/*add this to avoid flickering*/
.plk-dd-inprogess > * {
    pointer-events: none;
}

/*dropzone style style*/
.plk-dd-dropzone {
    min-height: 50px;
}

/*drag drop styles*/

.plk-dd-spacing {
    height: 10px;
}

.plk-dd-spacing-dragged-over {
    padding: 25px;
}

.plk-dd-dragged-over {
    background-color: lightgray;
    opacity: 0.6;
    animation: blinker 1s linear infinite;
}

    .plk-dd-dragged-over > div {
        background-color: lightgray;
        opacity: 0.6;
        animation: blinker 1s linear infinite;
    }

.plk-dd-dragged-over-denied {
    background-color: red;
    opacity: 0.6;
    animation: blinker 1s linear infinite;
}

.plk-dd-in-transit {
    opacity: 0;
}

    .plk-dd-in-transit > div {
        opacity: 0;
    }

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.blink_me {
    animation: blinker 1s linear infinite;
}

/*for flex demo*/

.plk-flex .plk-dd-spacing {
    width: 0px!important;
    height: auto;
    display:none;
}

.plk-flex .plk-dd-dragged-over {
    background-color: lightgray;
    opacity: 0.6;
    animation: blinker 1s linear infinite;
}

    .plk-flex .plk-dd-dragged-over > div {
        background-color: lightgray;
        opacity: 0.9;
        animation: blinker 1s linear infinite;
    }

.plk-flex .plk-dd-in-transit {
    background-color: orangered;
}

    .plk-flex .plk-dd-in-transit > div {
        background-color: orangered;
    }

.plk-dd-noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.flex-item {
    width: 100px;
    height: 100px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: orange;
    align-items: center;
    justify-content: center;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
}
    .flex-container > * {
        flex: 0 0 25%;
    }

.placing-panel {
    border: gray;
    border-style: dashed;
    background: #f1f1f1;
    border-width: 1px;
    min-height: 370px !important;
    max-height: 370px !important;
    /*min-width: 392px!important*/
}

.placing-panel-content {
/*    height: fit-content;
    width: fit-content;
    position: absolute;*/
}

.placing-panel-icon-1 {
    width: 0;
    height: 0;
    border-top: 120px solid black;
    border-right: 120px solid transparent;
    position: absolute;
    z-index: 99;
}

.placing-panel-number {
    color: white;
    position: absolute;
    left: 12px;
    bottom: 60px;
    font-size: 30px;
}

.items-container {
    min-height: 400px;
    border: 1px solid black;
    justify-content: center;
    align-items: center;
}

.placings-row {
    margin-block: 25px;
}

h4.p{
    font-size:20px;
}

#wrapper {
    overflow-x: hidden;
    display: flex;
}

/* ===== ADMIN SIDEBAR STYLES ===== */
#sidebar-wrapper {
    min-height: 100vh;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    background: linear-gradient(180deg, #1e2128 0%, #15171c 100%);
    transition: all 0.3s ease;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#sidebar-wrapper .sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.1);
}

#sidebar-wrapper .sidebar-header .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

#sidebar-wrapper .sidebar-header .logo-img {
    width: 50px;
    height: auto;
    max-height: 60px;
    border-radius: 8px;
    object-fit: contain;
}

#sidebar-wrapper .sidebar-header .logo-text {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

#sidebar-wrapper .sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0;
}

#sidebar-wrapper .sidebar-content::-webkit-scrollbar {
    width: 4px;
}

#sidebar-wrapper .sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

#sidebar-wrapper .nav.flex-column {
    padding: 0;
    margin: 0;
    list-style: none;
}

#sidebar-wrapper .nav-item {
    margin: 2px 10px;
    padding: 0;
}

#sidebar-wrapper .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #9ca3af !important;
    background: transparent;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

#sidebar-wrapper .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

#sidebar-wrapper .nav-link.active {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

#sidebar-wrapper .nav-link .oi {
    width: 20px;
    min-width: 20px;
    font-size: 1rem;
    margin-right: 12px;
    text-align: center;
    color: inherit;
}

#sidebar-wrapper .nav-link .nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

#sidebar-wrapper .sidebar-footer {
    padding: 0.75rem 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.1);
}

#sidebar-wrapper .sidebar-footer form {
    margin: 0;
}

#sidebar-wrapper .logout-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #ef4444 !important;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

#sidebar-wrapper .logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171 !important;
}

#sidebar-wrapper .logout-btn .oi {
    width: 20px;
    min-width: 20px;
    font-size: 1rem;
    margin-right: 12px;
    text-align: center;
}

#sidebar-wrapper .logout-btn .nav-text {
    white-space: nowrap;
}

/* Page content wrapper - accounts for fixed sidebar */
#page-content-wrapper {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Toggle button */
.toggle-btn {
    position: fixed;
    left: 260px;
    top: 10px;
    background: #1e2128;
    color: #ffffff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.toggle-btn:hover {
    background: #2d3139;
}

.toggle-btn.toggled {
    transform: rotate(180deg);
}

/* ===== COLLAPSED STATE ===== */
body.sb-sidenav-toggled #sidebar-wrapper {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

body.sb-sidenav-toggled #sidebar-wrapper .logo-text,
body.sb-sidenav-toggled #sidebar-wrapper .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

body.sb-sidenav-toggled #sidebar-wrapper .logo-container {
    justify-content: center;
}

body.sb-sidenav-toggled #sidebar-wrapper .nav-link {
    justify-content: center;
    padding: 12px 10px;
}

body.sb-sidenav-toggled #sidebar-wrapper .nav-link .oi {
    margin-right: 0;
    font-size: 1.2rem;
}

body.sb-sidenav-toggled #sidebar-wrapper .logout-btn {
    justify-content: center;
    padding: 12px 10px;
}

body.sb-sidenav-toggled #sidebar-wrapper .logout-btn .oi {
    margin-right: 0;
}

body.sb-sidenav-toggled #page-content-wrapper {
    margin-left: 70px;
    width: calc(100% - 70px);
}

body.sb-sidenav-toggled .toggle-btn {
    left: 70px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    #sidebar-wrapper {
        left: -260px;
    }

    #page-content-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .toggle-btn {
        left: 10px;
    }

    body.sb-sidenav-toggled #sidebar-wrapper {
        left: 0;
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }

    body.sb-sidenav-toggled #page-content-wrapper {
        margin-left: 0;
        width: 100%;
    }

    body.sb-sidenav-toggled .toggle-btn {
        left: 270px;
    }
}

/* Material Kit strips the border from .form-control and draws its own chrome from the
   .form-group / .input-group wrapper. The account forms are plain Bootstrap
   "form-floating" markup, so give those fields a visible box again. */
.form-floating > .form-control,
.form-floating > .form-select {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border: 1px solid #d2d6da;
    border-radius: 0.375rem;
}

/* Custom Dropzone Styles */
.custom-dropzone-item img {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-dropzone-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Image zoom modal styles */
.image-zoom-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000;
    cursor: pointer;
}

.zoomed-image {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    cursor: zoom-out;
}

.modal-fullscreen .modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Spinners */
.custom-spinner {
    display: inline-block;
}

.custom-spinner-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bounce-spinner {
    display: inline-block;
    position: relative;
}

.bounce-spinner .bounce1,
.bounce-spinner .bounce2,
.bounce-spinner .bounce3 {
    width: 18px;
    height: 18px;
    background-color: #007bff;
    border-radius: 100%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.bounce-spinner .bounce1 {
    animation-delay: -0.32s;
}

.bounce-spinner .bounce2 {
    animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Syncfusion grid: keep the filter button icon in the toolbar */
.e-click::before {
    content: '\e820';
}
