/* geometri/kitchen_calculator/css/kitchen_calculator_styles.css */
@font-face {
    font-family: 'TGSquare';
    src: url('../../main/fonts/TGSquare.woff') format('woff');
	     url('../../main/fonts/TGSquare.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Basic styling for the progress steps container */
.progress-bar-container {
    width: 100%;
    margin-top: 0;
    position: fixed;
    /* top will be set dynamically by JavaScript (adjustLayout function) */
    top: 0; /* Default position, will be overridden by JS */
    left: 0;
    z-index: 999; /* IMPORTANT: z-index adjusted so it's below #calculator (1000) but above normal content */
    background-color: #f8f8f8;
    border-top: 2px solid #1a1a1a;
    overflow: hidden;
    height: 34px; /* Fixed height for progress bar on desktop */
    box-shadow: 0 2px 2px rgba(0,0,0,0.2);
	
}

/* Rest of the styles remain unchanged */
.progress-bar {
	background: linear-gradient(to right, orange, rgba(248, 248, 248, 0.2));
    height: 100%;
    width: 0%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: width 0.4s ease-in-out;
}

.progress-steps {
    font-family: 'TGSquare', sans-serif;
	position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 2;
    padding: 0 10px;
}

.progress-steps .step {
    font-family: 'TGSquare', sans-serif;
	font-size: 0.7em;
    white-space: nowrap;
    padding: 5px;
    font-weight: normal;
    background: linear-gradient(to right, #b0b0b0, #d0d0d0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease-in-out;
    position: relative;
	vertical-align: middle;
}


.progress-steps .step.completed {
    font-family: 'TGSquare', sans-serif;
    font-size: 0.7em;
	font-weight: bold;
    color: #000; /* ტექსტის ფერი შეიცვალა მწვანეზე */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.progress-steps .step.completed[data-completed-with-data="true"]::before {
    content: '✔ ';
	font-weight: bold;
    font-size: 0.9em;
    margin-right: 3px;
    color: #28a745;
    /* ეს ახალი ხაზი ასწორებს ვერტიკალურ გასწორებას */
    vertical-align: middle;
}

.progress-steps .step.active {
   
	font-family: 'TGSquare', sans-serif;
    background: linear-gradient(to right, rgba(0, 80, 0, 0.9), rgba(255, 255, 255, 0));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
    content: '';
}

.progress-steps .step:not(.completed)::before {
    content: '';
}

.main-progress-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
    background-color: #f0f0f0;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    box-shadow: none;
}

/* Responsive adjustment for progress bar */
@media (max-width: 768px) {
    .progress-bar-container {
        /* top will be set by JavaScript dynamically */
        top: 0; /* Default position, will be overridden by JS */
        height: auto; /* Allow height to adjust if steps stack vertically */
        overflow: visible; /* Allow steps to be fully visible */
        padding-bottom: 5px; /* Spacing between steps */
		display: none; /* Hide progress bar on mobile */
    }
    .progress-steps {
        flex-direction: column; /* Steps will stack vertically on mobile */
        gap: 5px; /* Spacing between steps */
        position: static; /* Remove absolute positioning to allow vertical stacking */
        transform: none; /* Remove transform */
        padding: 5px 10px;
        align-items: flex-start; /* Align left */
    }
    .progress-steps .step {
        width: 100%; /* Full width */
        text-align: left; /* Text aligns left */
        font-size: 0.7em;
        white-space: normal; /* Allow text to wrap to a new line */
    }
}