@import url('../open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('/gotham-greek/gotham-greek.css');

/* For modern browsers (Webkit-based: Chrome, Edge, Safari) */
/*::-webkit-scrollbar {
    width: 12px;*/ /* Width of the scrollbar */
    /*height: 12px;*/ /* Height of the scrollbar */
/*}

::-webkit-scrollbar-thumb {
    background-color: #2C6FE2;*/ /* Scrollbar handle color */
    /*border-radius: 6px;*/ /* Rounded edges */
    /*border: 3px solid #212C3C;*/ /* Creates a gap around the thumb with off-black */
/*}

::-webkit-scrollbar-track {
    background-color: #212C3C;*/ /* Track background color */
/*}*/

/* For Firefox */
/** {
    scrollbar-width: thin;*/ /* Thin scrollbar */
    /*scrollbar-color: #2C6FE2 #212C3C;*/ /* Thumb color and track color */
/*}*/

:root {
    --dxbl-btn-bg: #0071c1;
}

html, body {
    font-family: "gotham-greek";
}

.float-end {
    float: right !important
}

.justify-self-center {
    justify-self: center;
    align-self: center;
}

.cursor-pointer {
    cursor: pointer;
}

.dxbl-wait-indicator.dxbl-wait-indicator-flip {
    -webkit-animation: var(--dxbl-wait-indicator-flip-animation-rotation-y) 3s infinite linear !important;
    -o-animation: var(--dxbl-wait-indicator-flip-animation-rotation-y) 3s infinite linear !important;
    animation: var(--dxbl-wait-indicator-flip-animation-rotation-y) 3s infinite linear !important;
}

.login-icon {
    --dxbl-wait-indicator-size: 4.5rem !important;
}
.login-loading-icon{
    --dxbl-wait-indicator-color: white !important;

}

.login-sending-icon {
    --dxbl-wait-indicator-color: #0071c1 !important;
    --dxbl-wait-indicator-size: 1.5rem !important;
}

.btn-outline-primary:hover .login-loading-icon {
    --dxbl-wait-indicator-color: white !important;
}

/*Clear button Color change*/
/*.dxbl-text-edit {
    --dxbl-text-edit-clear-btn-bg: #1F5088;
    --dxbl-text-edit-clear-btn-color: whitesmoke;
    --dxbl-text-edit-clear-btn-hover-bg: #0077ff82;
    --dxbl-text-edit-clear-btn-hover-color: whitesmoke;
    --dxbl-text-edit-btn-image-color: #1F5088;
}


.dxbl-pager > .dxbl-btn.dxbl-btn-outline-secondary {
    --dxbl-btn-disabled-border-color: #1F5088;
    --dxbl-btn-disabled-color: #1F5088;
    --dxbl-pager-btn-color: #1F5088;
    --dxbl-pager-btn-border-color: #1F5088;
}
.dxbl-pager .dxbl-pager-page-edit, .dxbl-text-edit {
    --dxbl-text-edit-border-color: #1F5088;
}
*/
.vertical .sidebar{
    height:100%;
}

.bg-logistic-i {
    background-color: rgb(33 44 60);
}

svg {
    display: inline !important;
}

.non-selectable {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.icon-container {
    height: 250px;
    border-radius: 12px;
}

    .icon-container:hover {
        border: 2px solid lightgrey;
        background-color: #f5f5f5;
    }

.border-0 {
    border-width: 0;
}

/*
[type=button], [type=reset], [type=submit], button {
    background-color: var(--dxbl-btn-bg)!important;
}*/

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
    text-decoration: none;
}

a:hover, .btn-link:hover {
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Disabled buttons should show not-allowed cursor */
button:disabled,
button[disabled],
.btn:disabled,
.btn[disabled],
.disabled,
[disabled] {
    cursor: not-allowed !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.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: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI26My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA9iMuNzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA6IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2Ni4wNTQ3IDI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.spinner {
    border: 16px solid silver;
    border-top: 16px solid #337AB7;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 40%;
    left: 55%;
    position: absolute;
}

.TextColor\.Light {
    color: whitesmoke !important;
}

.TextColor\.NavBlue {
    color: #008acf;
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.spinner {
    top: calc(50% - 68px);
    left: 50%;
    position: fixed;
    z-index: 100000;
}

/* Keyframes for tooltip attention */
@keyframes tip-pop {
    0% {
        transform: translateY(8px) scale(0.95);
        opacity: 0;
    }

    60% {
        transform: translateY(-2px) scale(1.02);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes tip-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.55);
    }

    60% {
        box-shadow: 0 0 0 14px rgba(13, 110, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

@keyframes tip-wiggle {
    0%, 100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(12deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(6deg);
    }
}

/* --- Responsive tweaks for the Sign-in page --- */

/* Use dynamic viewport height on mobile to avoid keyboard overlap */
.login-page {
    min-height: calc(100vh - 134px);
}
@supports (height: 100svh) {
    .login-page {
        min-height: calc(100svh - 134px);
    }
}

/* Inputs and buttons should fill width and be finger-friendly */
.form-input {
    width: 100%;
    min-height: 44px;
}
button.btn {
    min-height: 48px;
}

/* DevExpress loader sizing for smaller screens */
.login-loading-icon {
    --dxbl-wait-indicator-size: 1.25rem !important;
}

/* Small screens */
@media (max-width: 640px) {
    .loginform {
        padding: 1rem !important;
        border-radius: 0.75rem;
    }
    .login-icon {
        --dxbl-wait-indicator-size: 3.5rem !important;
    }
    .form-label {
        font-size: 0.95rem;
    }
    .btn.w-full {
        font-size: 1rem;
        padding-top: 0.875rem !important;
        padding-bottom: 0.875rem !important;
    }
}

/* Extra small devices */
@media (max-width: 380px) {
    .login-icon {
        --dxbl-wait-indicator-size: 3rem !important;
    }
    .btn.w-full {
        font-size: 0.95rem;
    }
}

/* --- Responsive 2FA page and OTP boxes --- */
.login-page {
    min-height: calc(100vh - 134px);
}
@supports (height: 100svh) {
    .login-page {
        min-height: calc(100svh - 134px);
    }
}

/* Scale spacing between boxes with viewport width */
.otp-group {
    gap: clamp(0.25rem, 3vw, 0.75rem) !important;
}

/* 2FA OTP boxes scale with the parent box width */
.otp-group {
    /* Responsive gap tied to container width */
    --otp-gap: clamp(0.25rem, 2.5vw, 0.75rem);
    /* Compute each box size: (container - total gaps) / 6, clamped between 2rem and 3.5rem */
    --otp-size: clamp(3rem, calc((100% - (5 * var(--otp-gap))) / 6), 3.5rem); /* min ~48px */
    gap: var(--otp-gap) !important; /* override Tailwind gap utilities */
}

.otp-group input[data-otp="true"] {
    flex: 0 0 var(--otp-size) !important; /* fix flex-basis */
    width: var(--otp-size) !important;     /* override .form-control width */
    height: clamp(2.75rem, 9vw, 3.25rem) !important; /* ~44�52px tall */
    font-size: clamp(1rem, calc(var(--otp-size) * 0.42), 1.25rem) !important;
    padding: 0 0.25rem !important;
    box-sizing: border-box;
}

/* Optional: extra-small devices can go a bit smaller */
@media (max-width: 450px) {
    .otp-group {
        --otp-gap: clamp(0.2rem, 3vw, 0.5rem);
        --otp-size: clamp(1.8rem, calc((100% - (5 * var(--otp-gap))) / 6), 3rem);
    }
}

/* ==================== SNOWFALL EFFECT ==================== */
.snowfall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    /* Light mode: γαλάζιο χρώμα με σκιά */
    color: #5ba3d9;
    font-size: 1em;
    text-shadow: 
        0 0 3px rgba(255, 255, 255, 0.9),
        0 0 6px rgba(91, 163, 217, 0.5);
    animation: snowfall linear infinite;
    /* Ξεκινά αόρατο - το animation θα το κάνει ορατό */
    opacity: 0;
}

/* Dark mode: λευκό χρώμα */
[data-mode=dark] .snowflake {
    color: #fff;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.8),
        0 0 10px rgba(173, 216, 230, 0.4);
    animation-name: snowfall-dark;
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; font-size: 1.2em; }
.snowflake:nth-child(2) { left: 10%; animation-duration: 12s; animation-delay: 1s; font-size: 0.8em; }
.snowflake:nth-child(3) { left: 15%; animation-duration: 8s; animation-delay: 0.5s; font-size: 1.5em; }
.snowflake:nth-child(4) { left: 20%; animation-duration: 14s; animation-delay: 2s; font-size: 0.6em; }
.snowflake:nth-child(5) { left: 25%; animation-duration: 9s; animation-delay: 0s; font-size: 1.1em; }
.snowflake:nth-child(6) { left: 30%; animation-duration: 11s; animation-delay: 1.5s; font-size: 0.9em; }
.snowflake:nth-child(7) { left: 35%; animation-duration: 13s; animation-delay: 3s; font-size: 1.3em; }
.snowflake:nth-child(8) { left: 40%; animation-duration: 7s; animation-delay: 0.8s; font-size: 0.7em; }
.snowflake:nth-child(9) { left: 45%; animation-duration: 10s; animation-delay: 2.5s; font-size: 1.4em; }
.snowflake:nth-child(10) { left: 50%; animation-duration: 15s; animation-delay: 0s; font-size: 0.85em; }
.snowflake:nth-child(11) { left: 55%; animation-duration: 8s; animation-delay: 1.2s; font-size: 1.0em; }
.snowflake:nth-child(12) { left: 60%; animation-duration: 12s; animation-delay: 3.5s; font-size: 1.6em; }
.snowflake:nth-child(13) { left: 65%; animation-duration: 9s; animation-delay: 0.3s; font-size: 0.75em; }
.snowflake:nth-child(14) { left: 70%; animation-duration: 11s; animation-delay: 2s; font-size: 1.25em; }
.snowflake:nth-child(15) { left: 75%; animation-duration: 14s; animation-delay: 1s; font-size: 0.95em; }
.snowflake:nth-child(16) { left: 80%; animation-duration: 10s; animation-delay: 4s; font-size: 1.1em; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 8s; animation-delay: 0.7s; font-size: 0.65em; }
.snowflake:nth-child(18) { left: 90%; animation-duration: 13s; animation-delay: 2.8s; font-size: 1.35em; }
.snowflake:nth-child(19) { left: 95%; animation-duration: 9s; animation-delay: 1.8s; font-size: 0.8em; }
.snowflake:nth-child(20) { left: 2%; animation-duration: 11s; animation-delay: 3.2s; font-size: 1.15em; }
.snowflake:nth-child(21) { left: 8%; animation-duration: 10s; animation-delay: 0.4s; font-size: 0.9em; }
.snowflake:nth-child(22) { left: 18%; animation-duration: 12s; animation-delay: 2.2s; font-size: 1.45em; }
.snowflake:nth-child(23) { left: 28%; animation-duration: 8s; animation-delay: 1.6s; font-size: 0.7em; }
.snowflake:nth-child(24) { left: 38%; animation-duration: 14s; animation-delay: 0.9s; font-size: 1.2em; }
.snowflake:nth-child(25) { left: 48%; animation-duration: 9s; animation-delay: 3.8s; font-size: 0.85em; }
.snowflake:nth-child(26) { left: 58%; animation-duration: 11s; animation-delay: 0.2s; font-size: 1.05em; }
.snowflake:nth-child(27) { left: 68%; animation-duration: 13s; animation-delay: 2.6s; font-size: 0.75em; }
.snowflake:nth-child(28) { left: 78%; animation-duration: 7s; animation-delay: 1.4s; font-size: 1.55em; }
.snowflake:nth-child(29) { left: 88%; animation-duration: 10s; animation-delay: 4.2s; font-size: 0.95em; }
.snowflake:nth-child(30) { left: 98%; animation-duration: 12s; animation-delay: 0.6s; font-size: 1.3em; }

@keyframes snowfall {
    0% {
        top: -10px;
        transform: translateX(0) rotate(0deg);
        opacity: 0.85;
    }
    5% {
        opacity: 0.85;
    }
    25% {
        transform: translateX(15px) rotate(90deg);
    }
    50% {
        transform: translateX(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateX(20px) rotate(270deg);
    }
    100% {
        top: 100vh;
        transform: translateX(-15px) rotate(360deg);
        opacity: 0.3;
    }
}

@keyframes snowfall-dark {
    0% {
        top: -10px;
        transform: translateX(0) rotate(0deg);
        opacity: 0.8;
    }
    5% {
        opacity: 0.8;
    }
    25% {
        transform: translateX(15px) rotate(90deg);
    }
    50% {
        transform: translateX(-10px) rotate(180deg);
        opacity: 0.7;
    }
    75% {
        transform: translateX(20px) rotate(270deg);
    }
    100% {
        top: 100vh;
        transform: translateX(-15px) rotate(360deg);
        opacity: 0.2;
    }
}
/* ==================== END SNOWFALL EFFECT ==================== */

/* ==================== CUSTOMER DETAILS COMPONENTS ==================== */

/* Detail Item Component */
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.875rem;
    color: #1f2937;
}

.detail-value-mono {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Info Card Component */
.info-card {
    border-radius: 0.5rem;
    padding: 1rem;
    border-left-width: 4px;
    border-left-style: solid;
}

.info-card-gray {
    background-color: #f9fafb;
    border-left-color: #9ca3af;
}

.info-card-yellow {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
}

.info-card-blue {
    background-color: #eff6ff;
    border-left-color: #3b82f6;
}

.info-card-green {
    background-color: #f0fdf4;
    border-left-color: #22c55e;
}

.info-card-red {
    background-color: #fef2f2;
    border-left-color: #ef4444;
}

.info-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Tab Navigation */
.tab-nav-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    background-color: transparent;
    color: #6b7280;
    cursor: pointer;
}

.tab-nav-button:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.tab-nav-button-active {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

/* Badge Count */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    background-color: #e5e7eb;
    color: #374151;
}

.tab-nav-button-active .badge-count {
    background-color: #dbeafe;
    color: #1d4ed8;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state-message {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* Customer Header */
.customer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.customer-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background-color: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.customer-code-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* Action Links */
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.action-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Grid Cell with Copy */
.grid-cell-with-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* VPN Badge */
.vpn-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
}

.vpn-badge-anydesk {
    background-color: #fee2e2;
    color: #991b1b;
}

.vpn-badge-teamviewer {
    background-color: #dbeafe;
    color: #1e40af;
}

.vpn-badge-other {
    background-color: #f3f4f6;
    color: #374151;
}

/* ==================== END CUSTOMER DETAILS COMPONENTS ==================== */