@font-face {
    font-family: 'DIN';
    src: url('../fonts/DINW05-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN';
    src: url('../fonts/DINW05-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'DIN', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.font-bold {
    font-weight: 700;
}

.text-menu {
    font-size: 18px;
}

.text-hero {
    font-size: 18px;
}

.h2 {
    font-size: 24px;
}

.nav-tabs-container .nav-link {
    transition: border-color 0.3s ease;
    position: relative;
}

.nav-tabs-container .nav-link:hover {
    text-decoration: none;
}

.spin-animation {
    animation: spin 1s linear infinite;
    transform-origin: center;
}

.form-check-input {
    cursor: pointer;
}

.vr {
    opacity: 0.25;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .row > .col-md-auto {
        display: none !important;
    }

    .col-md-5, .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

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


.container {
    max-width: 60%;
}

.navbar-brand-image {
    height: 3rem !important;
}

.language-switch {
    opacity: 0.35;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}
.language-switch:hover {
    opacity: 0.8;
}
.language-switch.active {
    opacity: 1;
}

.text-blue {
    --tblr-blue-rgb: 0, 81, 158;
}

.bg-svg {
    width: 100%;
    background-size: cover;
    fill: grey;
    color: darkgray;
    height: 0;
    padding: 0; /* reset */
    position: relative;
    transition: all 0.3s ease;

}

.file-border {
    transition: all 0.3s ease;
    border: 2px dashed lightgray;
    border-radius: 8px;
    padding: 10px;
}

.file-border:hover {
    border-color: #206bc4;
}

.file-border.uploading {
    opacity: 1;
    cursor: wait;
}

.file-border:hover {
    border-color: #206bc4;
    cursor: pointer;
}

.bg-svg {
    transition: transform 0.3s ease;
    transition: background-color 0.3s ease;
}

.file-border:hover .bg-svg {
    transform: scale(1.1);
}

/* Loading animation styles */
.bg-svg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: #206bc4;
    transition: height 0.3s ease;
}

.uploading .bg-svg::after {
    height: 100%;
    animation: fillUp 27s linear forwards;
}

@keyframes fillUp {
    from {
        height: 0%;
    }
    to {
        height: 100%;
    }
}

/* Add loading text */
.loading-text {
    display: none;
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: -30px;
    color: #206bc4;
    font-size: 14px;
    animation: pulse 1.5s infinite;
}

.uploading .loading-text {
    display: block;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

#file-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



/* Applies to modern webkit-based browsers (e.g., Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 12px; /* Set the width of the scrollbar */
    height: 12px; /* For horizontal scrollbars */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Background color of the scrollbar track */
    border-radius: 6px; /* Add rounded corners to the track */
}

::-webkit-scrollbar-thumb {
    background-color: #206bc4; /* Color of the scrollbar handle */
    border-radius: 6px; /* Add rounded corners to the handle */
    border: 3px solid #f1f1f1; /* Adds padding around the handle for better contrast */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #0b5ed7; /* Darker color on hover */
}

/* For Firefox */
* {
    scrollbar-width: thin; /* Makes the scrollbar thinner */
    scrollbar-color: #004f9f #f1f1f1; /* Handle color and track color */
}

/* Applies to the Tabler content area specifically */
.tabler-scrollable-content {
    overflow-y: auto; /* Ensure the scrollable area works */
    scrollbar-width: auto; /* Use default width or customized value */
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}
.modal-header-logo {
    display: flex;
    align-items: center;
}
.modal-header-logo img {
    height: 80px;
    margin-right: 10px;
}

.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}
.card-header svg {
    transition: transform 0.3s ease;
}

/* Shepherd JS Tour Customization */
.shepherd-button {
    background: #004F9F !important;
}



/* ****  */
/* progrss_steps.twig Custom CSS  */
/* ***  */




.progress-steps {
    position: relative;
    max-width: 600px;
    min-width: 250px;
    margin: 2rem auto;
    padding: 0 1rem;
    height: 600px; /* Increased height to match design */
}

.progress-svg {
    position: absolute;
    left: 8.25rem;  /* Matches your original positioning */
    top: -35px;     /* Matches your original top offset */
    width: 150px;   /* Wider to accommodate the curve */
    height: calc(100% + 35px); /* Matches your original height calculation plus the top offset */
    z-index: 0;
    overflow: visible;
}

.progress-line-active {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 1.4s ease;
}

.steps-container {
    position: relative;
    z-index: 3;
    height: 100%;
}

.step-item {
    position: absolute;
    display: flex;
    align-items: flex-start;
    width: 100%;
}

/* Circle 1 - content on left */
.step-item:nth-child(1) {
    top: 20px;
    left: -22px;
    flex-direction: row-reverse; /* Moves content to left */
}

/* Circle 2 - content on left */
.step-item:nth-child(2) {
    top: 45%;
    left: -22px;
    transform: translateY(-50%);
    flex-direction: row-reverse; /* Moves content to left */
}

/* Circle 3 - content below */
.step-item:nth-child(3) {
    bottom: 35px;
    left: 330px;
    flex-direction: column; /* Stacks content below circle */
    align-items: center; /* Centers content below circle */
}

/* Adjust content margin for left-side items */
.step-item:nth-child(1) .step-content,
.step-item:nth-child(2) .step-content {
    margin-right: 2rem; /* Replace left margin with right */
    margin-left: 0;
    text-align: right; /* Align text to right */
}

/* Adjust content margin for bottom item */
.step-item:nth-child(3) .step-content {
    margin-left: 0;
    margin-top: 1rem; /* Add top margin instead */
    text-align: center; /* Center text */
}

.step-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e6e7e9;
    font-weight: 600;
    color: #626976;
    transition: all 1.2s ease;
    flex-shrink: 0;
}

.step-circle.active {
    background: #206bc4;
    border-color: #206bc4;
    color: white;
}

.step-circle.completed {
    background: #206bc4;
    border-color: #206bc4;
    color: white;
}

.step-content {
    margin-left: 1rem;
    padding-top: 0.5rem;
}

.step-title {
    font-weight: 600;
    color: #626976;
    margin: 0;
    font-size: 1rem;
    transition: color 0.9s ease;
}

.step-title.active {
    color: #206bc4;
}

.step-description {
    color: #626976;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
    max-width: 180px; /* Added max-width for description text */
    line-height: 1.4;
}

/* Optional animation for number to check mark transition */
@keyframes checkmark {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.step-circle.completed .number {
    display: none;
}

.step-circle.completed:after {
    content: '✓';
    animation: checkmark 0.9s ease-in-out;
}

/* Add this to your CSS file */
.processing-spinner {
    margin: 20px 0;
    padding: 15px;
}

.processing-spinner .spinner-border {
    width: 2rem;
    height: 2rem;
}

.processing-text {
    font-size: 0.95rem;
}

/* Add these styles to your CSS file or include them in a style tag */

.validation-error-box {
    border-left: 4px solid #dc3545;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    background-color: #fff;
    border-radius: 0.25rem;
    overflow: hidden;
}

.validation-error-header {
    background-color: rgba(220, 53, 69, 0.1);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.validation-error-title {
    margin: 0;
    color: #dc3545;
    font-size: 1.1rem;
    font-weight: 600;
}

.validation-error-body {
    padding: 1rem;
}

.validation-sheet-error {
    margin-bottom: 1rem;
}

.validation-sheet-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.validation-errors-list {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #dee2e6;
}

.validation-error-item {
    margin-bottom: 0.5rem;
}

.validation-error-cell {
    font-weight: 500;
    color: #dc3545;
}

.validation-error-value {
    font-family: monospace;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 0.2rem;
}

.validation-error-footer {
    background-color: rgba(220, 53, 69, 0.05);
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(220, 53, 69, 0.2);
}