/* Custom styles for Boss Table frontend */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #ff6b35;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --top-bar-bg: #2c3e50;
}

body {
    padding-top: 120px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Top Info Bar */
.top-info-bar {
    background: var(--top-bar-bg);
    color: white;
    font-size: 0.85rem;
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

.top-info-bar .contact-info span {
    font-size: 0.8rem;
}

.top-info-bar .social-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-info-bar .social-links a:hover {
    color: var(--accent-color);
}

.top-info-bar .language-selector {
    color: white;
    font-size: 0.8rem;
}

/* Main Navigation */
.navbar {
    position: fixed;
    top: 34px;
    left: 0;
    right: 0;
    z-index: 1020;
    border-bottom: 1px solid #e9ecef;
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.5rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 400;
    line-height: 1;
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 5px;
}

.city-dropdown {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-header {
    background: var(--light-bg);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
}

.dropdown-item {
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: white;
}

.dropdown-item small {
    display: block;
    margin-top: 2px;
}

/* Navbar Actions */
.navbar-actions .btn {
    margin-left: 0.5rem;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
}

/* City Cards */
.city-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.city-card .city-icon {
    transition: transform 0.3s ease;
}

.city-card:hover .city-icon {
    transform: scale(1.1);
}

.city-card .card-title {
    color: var(--dark-bg);
    font-weight: 600;
}

.city-card:hover .card-title {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .btn {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image:hover .product-overlay {
    opacity: 1;
}

.price {
    font-weight: 600;
}

/* Category Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
}

/* Contact Section */
.contact-info i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-form .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, var(--primary-color));
    transform: translateY(-1px);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

/* Sections */
section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

/* Footer */
footer {
    background-color: var(--dark-bg) !important;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .product-image {
        height: 200px;
    }
}

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

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

/* Product Detail Styles */
.product-detail-image {
    max-height: 400px;
    object-fit: cover;
}

.product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-thumbnails img:hover,
.product-thumbnails img.active {
    border-color: var(--primary-color);
}

.price-tag {
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

/* Specifications Table */
.spec-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.spec-table th {
    background: var(--light-bg);
    color: var(--dark-bg);
    font-weight: 600;
    padding: 15px;
    border: none;
}

.spec-table td {
    padding: 12px 15px;
    border-color: #f0f0f0;
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}