/* Build Selector Styles - Cleaned up for Account-style dropdown */

/* Main container */
.build-selector-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100;
}

.build-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Current build display */
.current-build-display {
    flex: 1;
}

.build-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.build-color-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.build-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .build-name:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

.build-name-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    padding: 4px 8px;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 200px;
}

    .build-name-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

.build-generation-status {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(111, 66, 193, 0.1));
    border: 1px solid rgba(13, 110, 253, 0.3);
}

/* Build Generation Status - Enhanced Glass Effect with Proper Width Constraint */
.build-generation-status {
    /* Match the glass effect pattern used throughout the app */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    /* Width constraint to match other components */
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 1.5rem;
    /* Enhanced visual effects */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    /* Position and layering */
    position: relative;
    z-index: 10;
    /* Subtle animated gradient for loading state */
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(111, 66, 193, 0.1));
    border-color: rgba(13, 110, 253, 0.3);
}

    /* Enhanced glass effect with subtle gradient overlay for status */
    .build-generation-status::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient( 135deg, rgba(13, 110, 253, 0.1) 0%, rgba(111, 66, 193, 0.05) 50%, rgba(13, 110, 253, 0.02) 100% );
        border-radius: 15px;
        pointer-events: none;
        z-index: 1;
    }

    .build-generation-status::after {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, transparent, rgba(13, 110, 253, 0.3), transparent, rgba(111, 66, 193, 0.3), transparent );
        border-radius: 17px;
        z-index: 0;
        animation: rotateGradient 4s linear infinite;
        opacity: 0.7;
    }

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

    /* Ensure content appears above the glass effect */
    .build-generation-status .text-center {
        position: relative;
        z-index: 2;
    }

    /* Enhanced spinner styling */
    .build-generation-status .spinner-border {
        width: 3rem;
        height: 3rem;
        border-width: 3px;
        filter: drop-shadow(0 0 10px rgba(13, 110, 253, 0.5));
    }

    /* Enhanced heading styling */
    .build-generation-status h5 {
        color: #007bff;
        text-shadow: 0 0 15px rgba(13, 110, 253, 0.5);
        font-weight: 600;
        margin-bottom: 1rem;
    }

    /* Enhanced description text */
    .build-generation-status .text-muted {
        color: rgba(255, 255, 255, 0.7) !important;
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Enhanced status text */
    .build-generation-status .text-info {
        color: #17a2b8 !important;
        font-weight: 500;
        text-shadow: 0 0 8px rgba(23, 162, 184, 0.4);
    }

/* Subtle pulsing animation for the entire status container */
.build-generation-status {
    animation: statusPulse 3s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 20px rgba(13, 110, 253, 0.2);
    }

    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 0 30px rgba(13, 110, 253, 0.4);
    }
}

/* Build Generation Result - Enhanced Glass Effect with Proper Width Constraint */
.build-generation-result {
    /* Match the glass effect pattern used throughout the app */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    /* Width constraint to match other components */
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    padding: 1.5rem;
    /* Enhanced visual effects */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    /* Animation enhancement */
    animation: slideInFromTop 0.5s ease-out;
    /* Position and layering */
    position: relative;
    z-index: 10;
}

    /* Enhanced glass effect with subtle gradient overlay */
    .build-generation-result::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient( 135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 100% );
        border-radius: 15px;
        pointer-events: none;
        z-index: 1;
    }

    /* Ensure content appears above the glass effect */
    .build-generation-result .alert {
        position: relative;
        z-index: 2;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
        margin: 0;
    }

    /* Success alert styling */
    .build-generation-result .alert-success {
        background: rgba(76, 175, 80, 0.15);
        border-color: rgba(76, 175, 80, 0.3);
        color: #e8f5e8;
    }

        .build-generation-result .alert-success .alert-heading {
            color: #4caf50;
            text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
        }

    /* Error alert styling */
    .build-generation-result .alert-danger {
        background: rgba(244, 67, 54, 0.15);
        border-color: rgba(244, 67, 54, 0.3);
        color: #ffebee;
    }

        .build-generation-result .alert-danger .alert-heading {
            color: #f44336;
            text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
        }

    /* Ensure proper spacing within the result container */
    .build-generation-result .alert p {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }

        .build-generation-result .alert p:last-child {
            margin-bottom: 0;
        }

    /* Enhanced icon styling */
    .build-generation-result .alert-heading i {
        margin-right: 0.5rem;
        filter: drop-shadow(0 0 5px currentColor);
    }

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

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

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.edit-icon {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.8rem;
    transition: color 0.2s;
}

    .edit-icon:hover {
        color: white;
    }

/* Stepped Budget Slider Styling */
.stepped-slider {
    width: 100%;
    background: transparent;
    cursor: pointer;
}

    .stepped-slider::-webkit-slider-track {
        background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.3) 0%, rgba(var(--bs-primary-rgb), 0.6) 50%, rgba(var(--bs-success-rgb), 0.8) 100%);
        height: 6px;
        border-radius: 3px;
    }

    .stepped-slider::-webkit-slider-thumb {
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: linear-gradient(45deg, var(--bs-primary), var(--bs-info));
        border: 2px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 0 15px rgba(var(--bs-primary-rgb), 0.6);
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .stepped-slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(var(--bs-primary-rgb), 0.8);
        }

/* Budget Range Labels */
.budget-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 2px;
}

.range-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    flex: 1;
    transition: all 0.2s ease;
}

    .range-label.active {
        color: var(--bs-primary);
        font-weight: 600;
        text-shadow: 0 0 8px rgba(var(--bs-primary-rgb), 0.6);
    }

/* Enhanced Budget Display */
.budget-display {
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 6px;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.3);
}

    .budget-display .budget-range {
        display: block;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--bs-primary);
        margin-bottom: 2px;
    }

    .budget-display .budget-tier {
        display: block;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.8);
    }

/* Simple Notch Dots */
.budget-range-notches {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 10px; /* Align with slider track */
    position: relative;
}

.notch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    position: relative;
}

    .notch.active {
        background: var(--bs-primary);
        border-color: var(--bs-primary);
        box-shadow: 0 0 8px rgba(var(--bs-primary-rgb), 0.6);
        transform: scale(1.2);
    }

    .notch:hover {
        background: rgba(var(--bs-primary-rgb), 0.7);
        transform: scale(1.1);
    }

.budget-range-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding: 0 10px;
    position: relative;
}

.tick {
    width: 2px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    position: relative;
}

    .tick.active {
        background: var(--bs-primary);
        height: 16px;
        box-shadow: 0 0 6px rgba(var(--bs-primary-rgb), 0.6);
    }

    .tick:hover {
        background: rgba(var(--bs-primary-rgb), 0.7);
        height: 14px;
    }

/* Firefox slider styling */
.stepped-slider::-moz-range-track {
    background: linear-gradient(90deg, rgba(var(--bs-primary-rgb), 0.3) 0%, rgba(var(--bs-primary-rgb), 0.6) 50%, rgba(var(--bs-success-rgb), 0.8) 100%);
    height: 6px;
    border-radius: 3px;
    border: none;
}

.stepped-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-info));
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(var(--bs-primary-rgb), 0.6);
    cursor: pointer;
}

.build-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Build actions */
.build-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Account-style dropdown */
.user-enhanced-dropdown {
    position: relative;
}

.build-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
    min-width: 200px;
}

    .build-dropdown-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
    }

    .build-dropdown-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.user-enhanced-text {
    /* This class is referenced in the component */
}

.user-dropdown-arrow {
    transition: transform 0.3s ease;
    margin-left: auto;
}

    .user-dropdown-arrow.rotated {
        transform: rotate(180deg);
    }

/* Dropdown menu with proper z-index and NO HORIZONTAL SCROLLBAR */
.user-enhanced-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 320px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.build-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 320px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

    .build-dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/* Menu header */
.user-menu-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.user-info {
    flex: 1;
}

.welcome-text {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.user-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.user-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Menu items */
.user-menu-items {
    padding: 0.5rem 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
}

    .user-menu-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        text-decoration: none;
    }

    .user-menu-item.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

        .user-menu-item.disabled:hover {
            background: transparent;
        }

/* Build-specific menu items with proper containment */
.build-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

    .build-menu-item.active {
        background: rgba(0, 123, 255, 0.2);
        border-left-color: #007bff;
        color: white;
    }

.build-item-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.build-item-actions {
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Show delete button on hover */
.build-menu-item:hover .build-item-actions {
    opacity: 1;
}

/* ENHANCED RED DELETE BUTTON */
.build-delete-btn {
    background: transparent;
    border: none;
    color: #ff4757;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
    font-weight: bold;
}

    .build-delete-btn:hover {
        background: rgba(255, 71, 87, 0.2);
        color: #ff3742;
        transform: scale(1.1);
    }

    .build-delete-btn:active {
        transform: scale(0.95);
        background: rgba(255, 71, 87, 0.3);
    }

/* Ensure proper spacing for build content with text overflow handling */
.build-menu-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.build-menu-name {
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.build-menu-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.build-action-item {
    color: #00d4aa;
    font-weight: 600;
}

    .build-action-item:hover {
        background: rgba(0, 212, 170, 0.1);
        color: #00d4aa;
    }

/* ==================================================================== */
/* TABLE CONTROLS STYLES WITH PROPER Z-INDEX HIERARCHY */
/* ==================================================================== */

/* Universal icon standardization for harmonic look */
.table-icon-standard {
    font-size: 1rem !important;
    width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Table Controls Layout with z-index base */
.table-controls {
    position: relative;
    z-index: 100;
}

.table-controls-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.table-title-section {
    flex: 0 0 auto;
}

.table-center-actions {
    flex: 0 0 auto;
}

.table-build-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 200;
}

/* Enhanced Build Name Styles with better mobile touch targets */
.build-name-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.build-name-display {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
    min-width: 120px;
    text-align: center;
}

    .build-name-display:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .build-name-display.loading {
        color: rgba(255, 255, 255, 0.7);
        cursor: default;
    }

        .build-name-display.loading:hover {
            background-color: transparent;
        }

.build-name-input-compact {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    padding: 6px 12px;
    font-size: 1rem;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

    .build-name-input-compact:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }

/* Enhanced edit icon for mobile - larger touch target */
.edit-icon-compact {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 4px;
    margin: -8px;
}

    .edit-icon-compact:hover {
        color: white;
        background-color: rgba(255, 255, 255, 0.1);
    }

/* Enhanced Build Dropdown with list icon */
.table-build-dropdown {
    position: relative;
    z-index: 300;
}

.build-dropdown-btn-compact {
    padding: 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    transition: all 0.3s ease;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

    .build-dropdown-btn-compact:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
    }

/* CRITICAL: Table Controls dropdown menu with ultimate z-index */
.table-build-dropdown .user-enhanced-menu,
.table-build-dropdown .build-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 320px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

    .table-build-dropdown .user-enhanced-menu.show,
    .table-build-dropdown .build-dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        z-index: 9999;
    }

/* CRITICAL: Override any potential z-index conflicts for table controls */
.table-build-dropdown.open {
    z-index: 9999;
}

    .table-build-dropdown.open .user-enhanced-menu,
    .table-build-dropdown.open .build-dropdown-menu {
        z-index: 9999;
    }

/* Additional enhancement for dropdown icons alignment */
.build-dropdown-btn-compact .table-icon-standard {
    flex-shrink: 0;
}

/* Ensure consistent spacing in dropdown items */
.user-menu-item .table-icon-standard {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.build-delete-btn .table-icon-standard {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .build-generation-status,
    .build-generation-result {
        max-width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
    }
}

/* Enhanced Mobile Responsive Design with better spacing */
@media (max-width: 768px) {
    .build-generation-status,
    .build-generation-result {
        max-width: 100%;
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 1rem;
        border-radius: 12px;
    }

        .build-generation-status::before,
        .build-generation-result::before {
            border-radius: 12px;
        }

        .build-generation-status .spinner-border {
            width: 2.5rem;
            height: 2.5rem;
        }

        .build-generation-status h5 {
            font-size: 1.1rem;
        }

    /* Increased spacing within build-info for mobile */
    .build-info {
        gap: 1.5rem;
    }

    /* Maximum spacing between build-info and dropdown for mobile */
    .table-build-section {
        gap: 2rem;
    }

    .table-controls-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .table-title-section,
    .table-center-actions,
    .table-build-section {
        flex: 1;
        text-align: center;
    }

    .table-build-section {
        justify-content: center;
    }

    .build-name-display,
    .build-name-input-compact {
        min-width: 180px;
        padding: 8px 16px;
    }

    .build-dropdown-btn-compact {
        min-width: 56px;
        height: 56px;
        padding: 1rem;
    }

    .edit-icon-compact {
        padding: 12px;
        margin: -12px;
    }

    .table-build-dropdown .user-enhanced-menu,
    .table-build-dropdown .build-dropdown-menu {
        left: 0;
        right: 0;
        min-width: auto;
        max-width: none;
        z-index: 9999;
        margin: 0.5rem;
    }

    .table-icon-standard {
        font-size: 1.1rem !important;
    }

    .build-selector-header {
        flex-direction: column;
        align-items: stretch;
    }

    .build-stats {
        justify-content: space-between;
    }

    .build-dropdown-menu {
        left: 0;
        right: 0;
        min-width: auto;
        max-width: none;
    }

    .build-dropdown-btn {
        min-width: auto;
        justify-content: center;
    }
}

@media (max-width: 576px) {

    .build-generation-status,
    .build-generation-result {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 0.75rem;
        border-radius: 10px;
    }

        .build-generation-status::before,
        .build-generation-result::before {
            border-radius: 10px;
        }

        .build-generation-status .spinner-border {
            width: 2rem;
            height: 2rem;
        }

        .build-generation-status h5 {
            font-size: 1rem;
        }

        .build-generation-result .alert {
            padding: 1rem 0.75rem;
        }

    /* Maximum spacing for smallest mobile screens */
    .build-info {
        gap: 2rem;
    }

    .table-build-section {
        gap: 2.5rem;
    }

    .table-controls-inner {
        gap: 2rem;
        padding: 1rem;
    }

    .table-title-section h3 {
        font-size: 1.1rem;
    }

    .build-name-display,
    .build-name-input-compact {
        min-width: 200px;
        font-size: 0.95rem;
        padding: 10px 16px;
    }

    .build-dropdown-btn-compact {
        min-width: 60px;
        height: 60px;
    }

    .edit-icon-compact {
        padding: 16px;
        margin: -16px;
    }

    .table-icon-standard {
        font-size: 1.2rem !important;
    }
}