.upload-area {
    border: 2px dashed var(--border-light);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--bg-glass);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary);
    background: var(--bg-card);
}

.upload-area .icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.upload-area:hover .icon {
    color: var(--primary);
}

.preview-image {
    max-height: 300px;
    border-radius: 0.5rem;
    margin: 1rem auto;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.preview-list {
    display: none;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.preview-list.active {
    display: flex;
}

.preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.preview-thumb {
    width: 96px;
    height: 96px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}

.preview-label {
    font-size: 0.75rem;
    opacity: 0.75;
}

.remove-single-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ff4d4d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    border: 2px solid var(--bg-card);
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.remove-single-btn:hover {
    background: #ff3333;
    transform: scale(1.1);
}

.image-controls {
    display: none;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}


.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
}

.item-input-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    padding: 1.25rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-input-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.item-input-card .remove-item-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    background: hsla(0, 0%, 50%, 0.1);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.item-input-card .remove-item-btn:hover {
    background: #ff4d4d;
    color: white;
}

.input-section-header {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin-bottom: 0.25rem;
}

.equipment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fade-in-up 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.benefit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.info-box {
    padding: 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid;
}

.info-box.benefit {
    background: hsla(150, 60%, 50%, 0.1);
    border-color: hsla(150, 60%, 40%, 0.8);
    color: var(--text-main);
}

.info-box.risk {
    background: hsla(0, 70%, 60%, 0.1);
    border-color: hsla(0, 70%, 60%, 0.8);
    color: var(--text-main);
}

.media-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
}

.media-link:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    transform: translateY(-2px);
}

#followup-answer {
    white-space: pre-wrap;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}