/* Component Table Specific Styles */

/* Navigation Bar Styles */
.main-navigation {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    position: relative;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
}

.nav-container {
    max-width: 100%;
    width: 100%;
    padding: 0 2rem;
    margin: 0;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    display: flex;
    align-items: start;
    vertical-align: middle;
    padding: 0rem 1rem 1rem;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #00BFFF;
}

.logo-placeholder i {
    font-size: 3.5rem;
    color: #00BFFF;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.nav-auth {
    display: flex;
    align-items: center;
}

.btn-auth {
    background: transparent;
    border: 1px solid rgba(0, 191, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.btn-auth:hover {
    background: rgba(0, 191, 255, 0.1);
    border-color: #00BFFF;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.2);
}

.nav-main {
    padding: 0.75rem 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link i {
    color: rgba(0, 191, 255, 0.7);
    font-size: 0.9rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00BFFF, #1E90FF);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-link:hover i {
    color: #00BFFF;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: white;
    font-weight: 600;
}

.nav-link.active i {
    color: #00BFFF;
}

.nav-link.active::after {
    width: 100%;
}

/* Performance Summary Panel Styles */
.performance-summary-panel {
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.performance-header {
    margin-left: 20px;
}

.performance-content {
    margin-left: 20px;
    margin-right: 20px;
    padding-bottom: 10px;
}

.performance-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-group-large {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label-large {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value-large {
    color: #00BFFF;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.performance-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.no-performance-message {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.performance-insights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.insight-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

    .insight-badge.low-fps {
        background: linear-gradient(135deg, #ff6b6b, #ee5a24);
        color: white;
    }

    .insight-badge.good-fps {
        background: linear-gradient(135deg, #00BFFF, #1E90FF);
        color: white;
    }

    .insight-badge.excellent-fps {
        background: linear-gradient(135deg, #00C851, #28a745);
        color: white;
    }

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .nav-top {
        padding: 0.75rem 0 0.5rem 0;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .btn-auth {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .nav-link i {
        font-size: 0.8rem;
    }

    .performance-content .row {
        flex-direction: column;
    }

    .performance-insights {
        margin-top: 1rem;
        text-align: center;
    }

    .performance-actions {
        justify-content: center;
    }

    .stat-value-large {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .nav-top {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1rem 0;
    }
    
    .nav-logo {
        justify-content: center;
    }
    
    .nav-auth {
        justify-content: center;
    }
    
    .btn-auth {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .nav-link {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
        font-size: 0.8rem;
    }
    
    .nav-link i {
        font-size: 1rem;
    }
}

.component-table-container {
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(0, 191, 255, 0.2);
}

.table-responsive {
    border-radius: 15px;
    overflow: hidden;
}

.component-build-table {
    width: 100%;
    margin: 0;
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table Header */
.component-build-table thead tr.table-header {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(30, 144, 255, 0.15));
    border-bottom: 2px solid rgba(0, 191, 255, 0.3);
}

.component-build-table thead th {
    padding: 1.25rem 1rem;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    vertical-align: middle;
}

.component-build-table thead th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-content i {
    color: #00BFFF;
    margin-right: 0.5rem;
}

/* Column Widths - These will now be enforced with table-layout: fixed */
.component-col {
    width: 20%;
    min-width: 200px;
}

.product-col {
    width: 12%;
    min-width: 100px;
    text-align: center;
}

.title-col {
    width: 38%;
    min-width: 250px;
}

.price-col {
    width: 12%;
    min-width: 120px;
    text-align: center;
}

.link-col {
    width: 12%;
    min-width: 120px;
    text-align: center;
}

.remove-col {
    width: 6%;
    min-width: 60px;
    text-align: center;
    vertical-align: middle;
}

/* Table Body Rows */
.component-build-table tbody tr.component-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.component-build-table tbody tr.component-row:hover {
    background: rgba(0, 191, 255, 0.05);
    border-bottom-color: rgba(0, 191, 255, 0.2);
}

.component-build-table tbody tr.component-row.has-selection {
    background: rgba(0, 191, 255, 0.03);
}

.component-build-table tbody tr.component-row.empty-selection {
    background: rgba(255, 255, 255, 0.01);
}

.component-build-table tbody td {
    padding: 1.5rem 1rem;
    border: none;
    vertical-align: middle;
    position: relative;
}

.component-build-table tbody td:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.05);
}

/* Component Type Column */
.component-type {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.component-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.component-icon.cpu-icon {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.component-icon.gpu-icon {
    background: linear-gradient(135deg, #1E90FF, #0080FF);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.component-icon.ram-icon {
    background: linear-gradient(135deg, #45b7d1, #4fc3f7);
    color: white;
    box-shadow: 0 4px 15px rgba(69, 183, 209, 0.3);
}

.component-icon.mb-icon {
    background: linear-gradient(135deg, #96ceb4, #81c784);
    color: white;
    box-shadow: 0 4px 15px rgba(150, 206, 180, 0.3);
}

.component-icon.storage-icon {
    background: linear-gradient(135deg, #ffd54f, #ffca28);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.3);
}

.component-icon.psu-icon {
    background: linear-gradient(135deg, #ff8a65, #ff7043);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 138, 101, 0.3);
}

.component-icon.case-icon {
    background: linear-gradient(135deg, #a1887f, #8d6e63);
    color: white;
    box-shadow: 0 4px 15px rgba(161, 136, 127, 0.3);
}

.component-icon.cooling-icon {
    background: linear-gradient(135deg, #64b5f6, #42a5f5);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

/* Display/Output Peripherals - Purple Family */
.component-icon.monitor-icon {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: white;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.component-icon.projector-icon {
    background: linear-gradient(135deg, #ba68c8, #9c27b0);
    color: white;
    box-shadow: 0 4px 15px rgba(186, 104, 200, 0.3);
}

/* Input Peripherals - Teal/Cyan Family */
.component-icon.keyboard-icon {
    background: linear-gradient(135deg, #26a69a, #00897b);
    color: white;
    box-shadow: 0 4px 15px rgba(38, 166, 154, 0.3);
}

.component-icon.mouse-icon {
    background: linear-gradient(135deg, #4dd0e1, #26c6da);
    color: white;
    box-shadow: 0 4px 15px rgba(77, 208, 225, 0.3);
}

/* Audio Peripherals - Pink/Magenta Family */
.component-icon.headphones-icon {
    background: linear-gradient(135deg, #f06292, #ec407a);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 98, 146, 0.3);
}

.component-icon.speakers-icon {
    background: linear-gradient(135deg, #ff7043, #ff5722);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.3);
}

.component-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.component-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.component-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Product Image Column */
.product-image {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.out-of-stock-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.out-of-stock-badge span {
    color: #ff4757;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.empty-product {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-product-placeholder {
    width: 60px;
    height: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.component-row:hover .empty-product-placeholder {
    border-color: rgba(0, 191, 255, 0.5);
    color: rgba(0, 191, 255, 0.7);
}

/* Product Title Column */
.product-title {
    text-align: left;
}

.product-name {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-specs {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.recommended-badge {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.sale-badge {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    color: white;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.empty-title {
    text-align: left;
}

.empty-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-style: italic;
}

.empty-description {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

/* Price Column */
.price-display {
    text-align: center;
}

.original-price {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.25rem;
}

.current-price {
    color: #00BFFF;
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.current-price.sale-price {
    color: #ff4757;
}

.savings {
    color: #4CAF50;
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.price-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    display: block;
}

.empty-price .empty-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Product Actions Column */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.product-actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    min-width: 80px;
    border-radius: 6px;
    font-weight: 500;
}

.btn-outline-primary {
    border-color: #00BFFF;
    color: #00BFFF;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #00BFFF;
    color: white;
    border-color: #00BFFF;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(135deg, #00BFFF, #1E90FF);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
    color: white;
    transform: translateY(-1px);
}

/* Remove Column */
.btn-outline-danger {
    border-color: #ff4757;
    color: #ff4757;
    background: transparent;
    padding: 0.4rem;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-danger:hover {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
    transform: scale(1.05);
}

/* Table Controls */
.table-controls {
    padding: 1.5rem;
    border-radius: 15px;
    position: relative;
    z-index: 100;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

/* Build Summary Footer */
.build-summary-footer {
    padding: 1.5rem;
    border-radius: 15px;
}

.summary-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

.total-price-display {
    text-align: right;
    margin-bottom: 0.5rem;
}

.total-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.total-amount {
    color: #00BFFF;
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.build-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Add More Components Section */
/* Compact Add Components Panel */
.add-components-panel {
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.add-components-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.add-components-info h6 {
    color: white;
    font-weight: 600;
    margin: 0;
}

.add-components-info small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.add-components-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.add-component-btn {
    background: transparent;
    border: 1px solid rgba(0, 191, 255, 0.5);
    color: #00BFFF;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: auto;
}

    .add-component-btn:hover {
        background: rgba(0, 191, 255, 0.1);
        border-color: #00BFFF;
        color: #00BFFF;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 191, 255, 0.2);
    }

    .add-component-btn:active {
        transform: translateY(0);
    }

    .add-component-btn i {
        font-size: 0.8rem;
    }

.add-components-section {
    padding: 2rem;
    border-radius: 15px;
}

.add-components-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .add-components-header h6 {
        color: white;
        font-weight: 600;
        margin: 0;
    }

    .add-components-header small {
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.85rem;
    }

.additional-components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.additional-component-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px;
}

    .additional-component-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(0, 191, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 191, 255, 0.15);
    }

.component-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00BFFF, #1E90FF);
}

.component-card-content {
    flex: 1;
    margin-bottom: 1rem;
}

.component-card-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.component-card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Additional component row styling */
.additional-component {
    background: rgba(0, 191, 255, 0.02);
    border-left: 3px solid rgba(0, 191, 255, 0.3);
}

.additional-badge {
    background: rgba(0, 191, 255, 0.2);
    color: #00BFFF;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Icon styling for additional component types */
.keyboard-icon {
    background: linear-gradient(135deg, #26a69a, #00897b);
    color: white;
    box-shadow: 0 4px 15px rgba(38, 166, 154, 0.3);
}

.mouse-icon {
    background: linear-gradient(135deg, #4dd0e1, #26c6da);
    color: white;
    box-shadow: 0 4px 15px rgba(77, 208, 225, 0.3);
}

.headphones-icon {
    background: linear-gradient(135deg, #f06292, #ec407a);
    color: white;
    box-shadow: 0 4px 15px rgba(240, 98, 146, 0.3);
}

.speakers-icon {
    background: linear-gradient(135deg, #ff7043, #ff5722);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.3);
}

.webcam-icon {
    background: linear-gradient(135deg, #ab47bc, #8e24aa);
    color: white;
    box-shadow: 0 4px 15px rgba(171, 71, 188, 0.3);
}

/* GPU Action Buttons */
.gpu-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

    .gpu-action-buttons .btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

/* Performance Disclaimer */
.performance-disclaimer {
    margin-bottom: 2rem;
}

.disclaimer-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

    .disclaimer-content i {
        color: #17a2b8;
        margin-top: 0.1rem;
        flex-shrink: 0;
    }

    .disclaimer-content small {
        color: #adb5bd;
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0;
    }

    .disclaimer-content strong {
        color: #fff;
        font-weight: 600;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .disclaimer-content {
        padding: 0.625rem 0.75rem;
        flex-direction: column;
        gap: 0.25rem;
    }

        .disclaimer-content i {
            align-self: flex-start;
            margin-top: 0;
        }

        .disclaimer-content small {
            font-size: 0.75rem;
        }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .component-col {
        min-width: 180px;
    }
    
    .title-col {
        min-width: 220px;
    }
    
    .price-col {
        min-width: 100px;
    }
    
    .link-col {
        min-width: 100px;
    }
}

@media (max-width: 992px) {
    .component-build-table {
        font-size: 0.9rem;
    }
    
    .component-build-table thead th,
    .component-build-table tbody td {
        padding: 1rem 0.75rem;
    }
    
    .component-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .product-image {
        width: 60px;
        height: 60px;
    }
    
    .empty-product-placeholder {
        width: 50px;
        height: 50px;
    }
    
    .summary-stats {
        gap: 1rem;
    }
    
    .build-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .total-price-display {
        text-align: left;
    }
}

@media (max-width: 768px) {

    .add-components-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .add-components-buttons {
        justify-content: center;
        gap: 0.5rem;
    }

    .add-component-btn {
        flex: 1;
        min-width: 120px;
    }

    .additional-components-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .additional-component-card {
        padding: 1rem;
        min-height: 160px;
    }

    .component-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }
    
    .component-build-table thead th,
    .component-build-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    .component-type {
        gap: 0.75rem;
    }
    
    .component-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .component-name {
        font-size: 0.9rem;
    }
    
    .component-description {
        font-size: 0.8rem;
    }
    
    .product-image {
        width: 50px;
        height: 50px;
    }
    
    .product-name {
        font-size: 0.95rem;
    }
    
    .product-specs {
        font-size: 0.8rem;
    }
    
    .current-price {
        font-size: 1rem;
    }
    
    .product-actions {
        gap: 0.25rem;
    }
    
    .product-actions .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        min-width: 70px;
    }
    
    .summary-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .total-amount {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .add-components-panel {
        padding: 1rem;
    }

    .add-components-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .add-component-btn {
        width: 100%;
    }

    .component-table-container {
        padding: 0;
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .table-responsive {
        border-radius: 0;
    }
    
    .component-build-table {
        font-size: 0.8rem;
    }
    
    .component-build-table thead th,
    .component-build-table tbody td {
        padding: 0.5rem 0.25rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .header-content i {
        margin: 0;
    }
    
    .component-type {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .component-details {
        text-align: center;
    }
    
    .product-title {
        text-align: center;
    }
    
    .empty-title {
        text-align: center;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .table-actions .btn {
        width: 100%;
    }
    
    .build-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .build-actions .btn {
        width: 100%;
    }
}

/* Dark theme scrollbar for table */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00BFFF, #1E90FF);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1E90FF, #00BFFF);
}

/* Loading and Animation States */
.component-row {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.component-row.loading {
    opacity: 0.6;
    transform: translateY(10px);
}

.product-image img {
    transition: transform 0.3s ease;
}

.component-row:hover .product-image img {
    transform: scale(1.05);
}

/* Focus states for accessibility */
.component-build-table .btn:focus {
    outline: 2px solid #00BFFF;
    outline-offset: 2px;
}

.component-build-table .btn:focus:not(:focus-visible) {
    outline: none;
}

/* Add the following responsive mobile card styles to your existing component-table.css file */

/* Mobile Component Cards - Hidden by default, shown on mobile */
.mobile-component-cards {
    display: none;
}

/* Mobile Card Layout */
.mobile-component-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.mobile-component-card:hover {
    background: rgba(0, 191, 255, 0.08);
    border-color: rgba(0, 191, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.15);
}

.mobile-component-card.has-selection {
    background: rgba(0, 191, 255, 0.05);
    border-color: rgba(0, 191, 255, 0.2);
}

.mobile-component-card.empty-selection {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Card Header */
.mobile-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-card-header .component-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.mobile-card-title {
    flex: 1;
}

.mobile-card-title h6 {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.mobile-card-title small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Mobile Card Content */
.mobile-card-content {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mobile-card-image {
    flex-shrink: 0;
}

.mobile-card-image .product-image {
    width: 80px;
    height: 80px;
}

.mobile-card-image .empty-product-placeholder {
    width: 80px;
    height: 80px;
}

.mobile-card-details {
    flex: 1;
    min-width: 0;
}

.mobile-card-product-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-card-specs {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

/* Mobile Card Footer */
.mobile-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-card-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-card-price .current-price {
    color: #00BFFF;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.mobile-card-price .price-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.mobile-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mobile-card-actions .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
}

/* Empty State for Mobile Cards */
.mobile-card-empty {
    text-align: center;
    padding: 2rem 1rem;
}

.mobile-card-empty .empty-text {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.mobile-card-empty .empty-description {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Stock Cooler Special Styling for Mobile */
.mobile-component-card.stock-cooler-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-left: 4px solid #22c55e;
}

.mobile-stock-cooler-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    /* Hide desktop table, show mobile cards */
    .component-table-container .table-responsive {
        display: none !important;
    }
    
    .mobile-component-cards {
        display: block !important;
        padding: 1rem;
        border-radius: 15px;
    }
    
    /* Responsive table controls */
    .table-controls {
        padding: 1rem;
    }
    
    .table-controls-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .table-title-section h3 {
        font-size: 1.2rem;
    }
    
    .table-center-actions,
    .table-build-section {
        justify-content: center;
    }
    
    /* Responsive build summary footer */
    .build-summary-footer {
        padding: 1rem;
    }
    
    .build-summary-footer .row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .build-summary-footer .col-md-8,
    .build-summary-footer .col-md-4 {
        text-align: center !important;
    }
    
    .summary-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-group {
        flex-direction: column;
        text-align: center;
        min-width: 120px;
    }
    
    .total-price-display {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    .build-actions {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .build-actions .btn {
        flex: 1;
        min-width: 120px;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .mobile-component-cards {
        padding: 0.5rem;
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .table-controls {
        padding: 0.75rem;
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .build-summary-footer {
        padding: 0.75rem;
        margin: 1rem -15px 0;
        border-radius: 0;
    }
    
    .stat-group {
        min-width: 100px;
    }
    
    .total-amount {
        font-size: 1.5rem;
    }
    
    .build-actions .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}