body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    line-height: 1.6;
}

header {
    background: #343a40;
    color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    margin: 10px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

nav a:hover {
    background: #007bff;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    overflow: hidden;
}

footer {
    background: #343a40;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    width: 100%;
}

/* Language Selector Styles */
.navbar .dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 200px;
}

.navbar .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 8px;
    display: flex;
    align-items: center;
}

.navbar .dropdown-item:hover {
    background-color: #007bff;
    color: white !important;
    transform: translateX(5px);
}

.navbar .dropdown-item.active {
    background-color: #28a745;
    color: white !important;
    font-weight: 600;
}

.navbar .dropdown-item.active::after {
    content: ' ✓';
    margin-left: auto;
    font-weight: bold;
}

.navbar .nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: '▼';
    font-size: 0.7em;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.navbar .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Language flag spacing */
.navbar .dropdown-item span:first-child {
    margin-right: 8px;
}

.product {
    border: 1px solid #dee2e6;
    margin: 10px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product img {
    max-width: 100%;
    border-radius: 4px;
}

.button {
    display: inline-block;
    font-size: 16px;
    color: #ffffff;
    background: #007bff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* PC Builder Styles */
.template-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.template-card.border-primary {
    border: 2px solid #007bff !important;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.component-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.component-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    height: 100%;
}

.component-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.component-card.selected {
    border-color: #28a745;
    background-color: #f8fff9;
}

.performance-bar {
    font-size: 0.85rem;
}

.performance-bar .progress {
    height: 8px;
    border-radius: 4px;
}

.selected-component {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.sticky-top {
    position: sticky;
    top: 20px;
    z-index: 1020;
}

/* Compatibility warnings */
.compatibility-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .template-card {
        margin-bottom: 20px;
    }
    
    .sticky-top {
        position: relative;
        top: auto;
    }
    
    .component-card {
        margin-bottom: 15px;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Price highlighting */
.price-highlight {
    font-size: 1.1rem;
    font-weight: bold;
    color: #28a745;
    text-shadow: 0 1px 2px rgba(40,167,69,0.2);
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
}

/* Card enhancements */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-radius: 12px;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.02);
    border-radius: 12px 12px 0 0 !important;
}