/* PC Builder Styles */
.pc-builder-page {
    font-family: 'Roboto:300,400,500,700', sans-serif;
}

/* Summary Box */
.pc-summary-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pc-summary-box h3 {
    color: #333333;
    font-weight: 600;
    margin-bottom: 10px;
}

.summary-info .total-items {
    color: #6c757d;
    font-size: 14px;
}

.total-price-box {
    text-align: right;
}

.total-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.total-price {
    font-size: 28px;
    font-weight: bold;
    color: #ec1e3c;
    line-height: 1;
}

.btn-save-config {
    margin-top: 10px;
    background-color: #ec1e3c;
    border-color: #ec1e3c;
    color: white;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-save-config:hover {
    background-color: #ce0303;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(101, 209, 230, 0.3);
}

/* Component Rows */
.pc-components-list {
    margin-bottom: 30px;
}

.component-row {
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.component-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #ec1e3c;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.component-row:hover::before {
    transform: scaleY(1);
}

.component-row:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.component-label h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.component-label small {
    color: #6c757d;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Selected Component Display */
.selected-component {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.no-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.no-selection span {
    font-style: italic;
}

.select-component {
    background-color: transparent;
    border: 1px solid #ec1e3c;
    color: #ec1e3c;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.select-component:hover {
    background-color: #ec1e3c;
    color: white;
    transform: scale(1.02);
}

.component-info {
    display: flex;
    align-items: center;
    width: 100%;
}

.component-info img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.component-details .component-title {
    font-size: 15px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 3px;
    line-height: 1.3;
}

.component-price {
    font-size: 20px;
    font-weight: bold;
    color: #ec1e3c;
}

.remove-component {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-component:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

/* Sidebar */
.pc-builder-sidebar .sidebar-box {
    background: white;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-box h4 {
    color: #333333;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

.stat-value {
    font-weight: 600;
    color: #000000;
}

/* Modal Styles */
.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
}

.modal-title {
    font-weight: 600;
    color: #333333;
}

.component-filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.components-grid {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.components-grid::-webkit-scrollbar {
    width: 6px;
}

.components-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.components-grid::-webkit-scrollbar-thumb {
    background: #ec1e3c;
    border-radius: 10px;
}

/* Component Item in Modal */
.component-item {
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.component-item:hover {
    border-color: #ec1e3c;
    box-shadow: 0 4px 15px rgba(101, 209, 230, 0.2);
    transform: translateY(-2px);
}

.component-item.selected {
    border-color: #28a745;
    background: #f8fff9;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.component-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #000000;
    line-height: 1.3;
}

.component-meta {
    margin-bottom: 10px;
}

.component-brand {
    color: #6c757d;
    font-size: 14px;
    margin-right: 15px;
    font-weight: 500;
}

.component-variants {
    color: #ec1e3c;
    font-size: 13px;
    background: rgba(101, 209, 230, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.component-status {
    font-size: 13px;
    font-weight: 500;
}

.component-pricing {
    text-align: right;
}

.current-price {
    font-size: 20px;
    font-weight: bold;
    color: #ec1e3c;
}

.original-price {
    margin-top: 5px;
}

.price-del {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.sale-badge {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
}

.select-this-component {
    margin-top: 10px;
    width: 100%;
    background-color: #ec1e3c;
    border-color: #ec1e3c;
    color: white;
    font-weight: 500;
    border-radius: 6px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.select-this-component:hover {
    background-color: #ce0303;
    transform: scale(1.02);
}

/* Action Buttons */
.pc-actions {
    margin-top: 30px;
    padding: 20px 0;
    text-align: center;
}

.pc-actions .btn {
    margin: 0 10px;
    padding: 12px 25px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-reset-all {
    border: 1px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.btn-reset-all:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.btn-add-all-to-cart {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-add-all-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .pc-summary-box {
        padding: 20px 15px;
    }
    
    .total-price {
        font-size: 24px;
    }
    
    .component-row {
        padding: 15px;
    }
    
    .component-label h4 {
        font-size: 16px;
    }
    
    .component-price {
        font-size: 18px;
    }
    
    .pc-actions .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .modal-dialog {
        margin: 10px;
        max-width: none;
    }
    
    .components-grid {
        max-height: 400px;
    }
    
    .component-item .row > div {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .component-info {
        flex-direction: column;
        text-align: center;
    }
    
    .component-info img {
        margin: 0 0 10px 0;
    }
    
    .no-selection {
        flex-direction: column;
        text-align: center;
    }
    
    .no-selection .btn {
        margin-top: 10px;
    }
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.component-row {
    animation: slideInUp 0.5s ease;
}

/* Loading States */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
    border-color: #ec1e3c;
    border-right-color: transparent;
}