/**
 * Solukon System Finder Frontend Styles
 */

/* Custom Dropdown for Model Selection */
.sf-custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 4px;
    z-index: 1000;
    max-height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sf-dropdown-list {
    max-height: 400px;
    overflow-y: auto;
}

.sf-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 0.5rem;
}

.sf-dropdown-item:last-child {
    margin-bottom: 0;
}

.sf-dropdown-item:hover {
    background-color: #f8f8f8;
}

.sf-dropdown-item-name {
    font-weight: 500;
    color: #333;
    font-size: 1rem;
    line-height: 1.2;
}

.sf-dropdown-item-dimensions {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    line-height: 1.2;
}

.sf-dropdown-empty {
    color: #999;
    text-align: center;
    cursor: default;
    padding: 16px;
}

.sf-dropdown-empty:hover {
    background-color: transparent;
}

.sf-tile-content {
    position: relative;
}

.sf-selected-dimensions {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.sf-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sf-input-wrapper .sf-input {
    flex: 1;
    padding-right: 40px;
}

.sf-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.sf-clear-btn:hover {
    color: #333;
}

.sf-clear-btn:focus {
    outline: none;
    color: #000;
}

/* Input Tiles */
.sf-input-tiles {
    display: flex;
    /* grid-template-columns: repeat(3, 1fr); */
    gap: 1.25rem;

}

.sf-tile {
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.5;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-basis: 33.3%;

}

.sf-tile-active {
    border-color: #0073aa;
    opacity: 1;
}

.sf-tile-header {
}

.sf-tile-title {
    margin: 0;
    font-size: 2.25rem;
    color: white;
    padding: 2rem;
    max-width: 55%;
    position: relative;
    text-transform: uppercase;

}

.sf-tile-title::after {
    content: "";
    width: 2rem;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 2rem;
    bottom: 0;
    display: block;
}

.sf-tile-active .sf-tile-title::after {
    background-color: #ffda00;
}

.sf-tile-notice {
    padding: 2rem;
    padding-top: 1rem;
}

.sf-notice-content {
    display: none;
}

.sf-tile-header, 
.sf-tile-notice {
    background-color: var(--solukon-metall-bereich);
    flex-basis: 25%;

}

.sf-tile-active .sf-notice-content {
    display: block;
}

.sf-notice-content {
    font-size: .75rem;
    color: #ffda00;
    line-height: 1.5;
}

.sf-tile-content {
    background-color: var(--solukon-lightgrau);
    padding: 2rem;
    flex-basis: 20%;

}

.sf-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
}

.sf-select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.sf-weight-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.sf-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.sf-weight-unit {
    font-size: 1rem;
    color: var(--solukon-grau);
    min-width: 30px;
}

/* Results Tiles */
.sf-results-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 5rem;

}

.sf-result-tile {
}

.sf-result-header {
    margin-bottom: 15px;
}

.sf-result-title {
    margin: 0;
    font-size: 2.25rem;
    color: var(--solukon-hellgrau);
    text-transform: uppercase;

}

.sf-result-content {
    margin-top: 15px;
}

.sf-system-name {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.sf-machine-image-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;

}
.hover-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #002f53df;
    color: white;
    text-align: center;
    opacity: 0;
    transition: all 200ms ease-in-out;

}
.hover-info h3 {
    font-size: 2rem;
}

.hover-info p {
    font-size:1.25rem;
}

.sf-machine-image-wrapper:hover .hover-info {
    opacity: 1;

}

.sf-next-level-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.sf-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    flex-basis: 80%;

}

.sf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
}

.sf-checkbox-label input[type="checkbox"] {
    width: 2rem;
    height: 2rem;
    cursor: pointer;

}

.sf-checkbox-label span {
    user-select: none;
    text-transform:uppercase;
    color:white;
}

.sf-arrow {
    display: flex;
    justify-content: flex-end;
    /* margin-top: 15px; */

}

.sf-arrow svg {
    width: 24px;
    height: 24px;
    color: #0073aa;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sf-arrow svg:hover {
    transform: translateX(5px);
}

.sf-arrow-wrapper {
    max-width: 2rem;
    margin: auto;

}
.sf-machine-svg-wrapper {
    max-width: 11rem;
    margin: 1.5rem auto;

}

.sf-result-content.sf-result-next-step {
    aspect-ratio: 1/1;
    background-color: var(--solukon-metall-bereich);
}

input.sf-input {
    height: 3rem;
    width: 100%;
    background-color: transparent;
    color: black !important;
}
.sf-next-step-form-actions {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

/* Responsive Design */
@media (max-width: 768px) {
    .sf-input-tiles,
    .sf-results-tiles {
        grid-template-columns: 1fr;
    }
}

