/* Scan Feature Styles */

.progress {
    width: 100%;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 10px 0;
    height: 20px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    height: 20px;
    background: #007cba;
    border-radius: 4px;
    text-align: center;
    color: white;
    line-height: 20px;
    font-weight: bold;
    font-size: 12px;
    transition: width 0.3s ease;
}

/* Ensure scan status and results are visible above sticky bar */
#scanStatus,
#progressContainer,
#scanResults {
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
    z-index: 50; /* Above content but below sticky bar */
}

/* Sticky action bar */
.selection-controls {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 100;
    border-top: 3px solid #007cba;
    border-bottom: 1px solid #ddd;
    margin: 0 -20px -20px -20px; /* Compensate for container padding */
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
    width: 100%;
}

.selection-controls button {
    margin: 0; /* Override default margin */
    white-space: nowrap; /* Prevent text wrapping */
    min-width: 110px; /* Minimum width for all buttons */
    height: 38px; /* Consistent height */
    padding: 0 16px; /* Horizontal padding only */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; /* Consistent font size */
    font-weight: 600; /* Slightly bolder */
    border-radius: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selection-controls button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.selection-controls button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.selection-controls button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#scanButton {
    width: auto !important; /* Auto width based on content */
    min-width: 130px !important; /* Min width for button text */
    height: 38px !important; /* Match other buttons */
    padding: 0 20px !important; /* Horizontal padding */
    flex-shrink: 0; /* Prevent shrinking */
    font-size: 14px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .selection-controls {
        padding: 10px 15px;
    }

    .selection-controls button {
        font-size: 0.9em;
        padding: 8px 15px;
    }

    #selectedCount {
        width: 100%;
        text-align: center;
        margin: 5px 0 !important;
    }
}
