/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    --background-color: #ffffff;
    --surface-color: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    font-size: 16px;
}

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

/* Navigation Styles */
.navbar {
    background: var(--background-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-color);
    box-shadow: var(--shadow-xl);
    border-radius: 12px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-width: 800px;
    margin-left: -200px;
}

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

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.dropdown-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-column a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 0.4rem 0;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
}

.dropdown-column a:hover {
    color: var(--primary-color);
    background: var(--surface-color);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-search {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
}

.hero-search input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

.hero-search button {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search button:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.color-palette {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: rotate(-15deg);
}

.color-strip {
    width: 300px;
    height: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.color-strip:nth-child(2) {
    animation-delay: -2s;
    width: 280px;
}

.color-strip:nth-child(3) {
    animation-delay: -4s;
    width: 320px;
}

@keyframes float {
    0%, 100% { transform: translateY(10px); }
    50% { transform: translateY(-20px); }
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Section */
.featured-section {
    padding: 4rem 0;
}

.manufacturer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.manufacturer-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.manufacturer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.manufacturer-card:hover::before {
    transform: scaleX(1);
}

.manufacturer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.manufacturer-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.manufacturer-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-stats {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Brand-specific colors */
.manufacturer-card.mazda::before { background: linear-gradient(135deg, #CC2229, #A11E24); }
.manufacturer-card.toyota::before { background: linear-gradient(135deg, #EB0A1E, #C8102E); }
.manufacturer-card.honda::before { background: linear-gradient(135deg, #CC0000, #B71C1C); }
.manufacturer-card.ford::before { background: linear-gradient(135deg, #003478, #1E3A8A); }
.manufacturer-card.chevrolet::before { background: linear-gradient(135deg, #FFC325, #F59E0B); }
.manufacturer-card.bmw::before { background: linear-gradient(135deg, #1C69D4, #1E40AF); }

/* Features Section */
.features-section {
    background: var(--surface-color);
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sample Section */
.sample-section {
    padding: 4rem 0;
}

.table-container {
    width: 75%;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.paint-code-table tbody tr:last-child td {
    border-bottom: none;
}

.color-sample {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* /css/footer.css - Carbon Fiber Footer Styles */

/* Carbon Fiber Footer */
.footer {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    color: white;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Carbon Fiber Background Effect */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Carbon fiber weave pattern */
        radial-gradient(circle at 25% 25%, #333 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, #333 2px, transparent 2px),
        linear-gradient(45deg, 
            #1a1a1a 0%, 
            #2d2d2d 25%, 
            #1a1a1a 50%, 
            #2d2d2d 75%, 
            #1a1a1a 100%
        ),
        /* Diagonal weave lines */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.03) 2px,
            rgba(255,255,255,0.03) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,0.02) 2px,
            rgba(255,255,255,0.02) 4px
        );
    background-size: 20px 20px, 20px 20px, 40px 40px, 8px 8px, 8px 8px;
    opacity: 0.8;
    z-index: 0;
}

/* Glossy carbon fiber overlay */
.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.1) 0%,
        transparent 25%,
        rgba(255,255,255,0.05) 50%,
        transparent 75%,
        rgba(255,255,255,0.08) 100%
    );
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Quote Section */
.footer-quote {
    background: rgba(255,255,255,0.05);
    border-left: 4px solid #2563eb;
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.footer-quote h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.footer-quote p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* Navigation Links */
.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #f1f5f9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: inline-block;
    position: relative;
}

.footer-section ul li a:hover {
    color: #60a5fa;
    transform: translateX(5px);
}

.footer-section ul li a:hover::before {
    content: '→';
    position: absolute;
    left: -20px;
    color: #60a5fa;
    font-weight: bold;
}

/* Special styling for external link */
.external-link {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #94a3b8;
}

.external-link:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: #60a5fa;
}

/* Bottom Section */
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
    font-size: 0.9rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #f1f5f9;
}

.footer-logo .logo-icon {
    font-size: 1.5rem;
    animation: footerPulse 2s infinite;
}

@keyframes footerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-quote {
        padding: 1rem;
    }
    
    .footer-quote h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-quote p {
        font-size: 0.9rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dropdown-menu {
        min-width: 600px;
        margin-left: -150px;
    }
    
    .dropdown-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .manufacturer-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--background-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 1rem 0;
        margin: 0;
        min-width: auto;
        background: var(--surface-color);
        border-radius: 8px;
        margin-top: 1rem;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-search {
        flex-direction: column;
        max-width: none;
    }
    
    .color-palette {
        transform: none;
        margin-top: 2rem;
    }
    
    .manufacturer-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        width: 95%;
    }
    
    .paint-code-table {
        font-size: 0.9rem;
    }
    
    .paint-code-table th,
    .paint-code-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .paint-code-table {
        font-size: 0.8rem;
    }
    
    .paint-code-table th,
    .paint-code-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .color-sample {
        width: 30px;
        height: 30px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

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

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .features-section,
    .footer,
    .back-to-top {
        display: none;
    }
    
    .table-container {
        width: 100%;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .paint-code-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}table {
    width: 100%;
    border-collapse: collapse;
    background: var(--background-color);
}

.paint-code-table th {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.paint-code-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    vertical-align: middle;
}

.paint-code-table tr:hover {
    background: var(--surface-color);
}

.paint-code-table tbody tr:last-child td {
    border-bottom: none;
}

.color-sample {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Table Search Styles */
.table-search {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.table-search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    width: 250px;
    outline: none;
    transition: border-color 0.3s ease;
}

.table-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.table-search-clear {
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.table-search-clear:hover {
    background: #475569;
}

/* Notification Styles */
.notification {
    box-shadow: var(--shadow-lg);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.notification-success {
    background: var(--success-color) !important;
}

.notification-error {
    background: var(--error-color) !important;
}

.notification-warning {
    background: var(--accent-color) !important;
}

.notification-info {
    background: var(--primary-color) !important;
}

/* Enhanced Table Styles for Paint Codes */
.paint-code-table th {
    position: relative;
    user-select: none;
}

.paint-code-table th:hover {
    background: linear-gradient(135deg, #5b7eeb 0%, #8a7cc2 100%);
}

.paint-code-table th.sortable {
    cursor: pointer;
}

.paint-code-table th.sortable::after {
    content: '⇅';
    position: absolute;
    right: 8px;
    opacity: 0.5;
    font-size: 0.8rem;
}

.paint-code-table th.sorted-asc::after {
    content: '↑';
    opacity: 1;
    color: #fff;
}

.paint-code-table th.sorted-desc::after {
    content: '↓';
    opacity: 1;
    color: #fff;
}

.paint-code-table td {
    transition: all 0.2s ease;
}

.paint-code-table tr:hover td {
    transform: translateX(2px);
}

/* Manufacturer-specific table styling */
.mazda-table th {
    background: linear-gradient(145deg, #CC2229, #A11E24) !important;
}

.toyota-table th {
    background: linear-gradient(145deg, #EB0A1E, #C8102E) !important;
}

.honda-table th {
    background: linear-gradient(145deg, #CC0000, #B71C1C) !important;
}

.ford-table th {
    background: linear-gradient(145deg, #003478, #1E3A8A) !important;
}

.bmw-table th {
    background: linear-gradient(145deg, #1C69D4, #1E40AF) !important;
}

/* Loading Animation for Tables */
.table-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Color Sample Enhancements */
.color-sample {
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-sample:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-md);
}

.color-sample::after {
    content: attr(data-color-name);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.color-sample:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Favorites System Styles */
.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    padding: 0.25rem;
    border-radius: 50%;
}

.favorite-btn:hover {
    color: var(--accent-color);
    background: rgba(245, 158, 11, 0.1);
}

.favorite-btn.active {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dropdown-menu {
        min-width: 600px;
        margin-left: -150px;
    }
    
    .dropdown-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .manufacturer-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .table-search {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .table-search-input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--background-color);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 1rem 0;
        margin: 0;
        min-width: auto;
        background: var(--surface-color);
        border-radius: 8px;
        margin-top: 1rem;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero {
        padding: 4rem 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-search {
        flex-direction: column;
        max-width: none;
    }
    
    .color-palette {
        transform: none;
        margin-top: 2rem;
    }
    
    .manufacturer-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        width: 95%;
    }
    
    .paint-code-table {
        font-size: 0.9rem;
    }
    
    .paint-code-table th,
    .paint-code-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .table-search {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-search-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .paint-code-table {
        font-size: 0.8rem;
    }
    
    .paint-code-table th,
    .paint-code-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .color-sample {
        width: 30px;
        height: 30px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

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

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Dark Theme Support */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #94a3b8;
    --background-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--surface-color);
}

[data-theme="dark"] .manufacturer-card {
    background: var(--surface-color);
}

[data-theme="dark"] .feature-card {
    background: var(--surface-color);
}

[data-theme="dark"] .paint-code-table {
    background: var(--surface-color);
}

[data-theme="dark"] .paint-code-table td {
    border-bottom-color: var(--border-color);
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .features-section,
    .footer,
    .back-to-top,
    .table-search {
        display: none;
    }
    
    .table-container {
        width: 100%;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .paint-code-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .color-sample {
        border: 1px solid #000;
    }
    
    body {
        font-size: 12px;
    }
    
    .paint-code-table {
        font-size: 10px;
    }
}
.centered-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}
.solidblack {

    position: relative;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    background: linear-gradient(145deg, #000000, #1a1a1a, #000000);
}

.solidblack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 70%,
        transparent 100%
    );
    animation: sunReflection 4s ease-in-out infinite;
}

.solidblack::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(
            ellipse at 60% 30%,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.02) 40%,
            transparent 70%
        ),
        linear-gradient(
            45deg,
            transparent 0%,
            transparent 20%,
            rgba(135, 206, 235, 0.05) 30%,
            rgba(255, 255, 255, 0.15) 40%,
            rgba(135, 206, 235, 0.05) 50%,
            transparent 60%,
            transparent 100%
        );
    animation: secondaryReflection 6s ease-in-out infinite reverse;
}

@keyframes sunReflection {
    0% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) skewX(-15deg);
        opacity: 0;
    }
}

@keyframes secondaryReflection {
    0% {
        transform: translateX(100%) translateY(-50%) skewX(20deg);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100%) translateY(50%) skewX(20deg);
        opacity: 0;
    }
}
.pearlwhite {
  /* Tweakables */
  --sun-size: 38%;
  --sun-speed: 12s;
  --flake-size: 4px;
  --flake-density: 2.5px;

  /* Enhanced pearl color palette with more #fff */
  --pearl-base: #fff;
  --pearl-light: #fff;
  --pearl-mid: #fdfcfb;
  --pearl-shadow: #f5f3f0;
  --pearl-deep: #ebe8e3;
  
  /* Iridescent hints (lighter for more white) */
  --hint-blue: rgba(225, 235, 255, 0.3);
  --hint-pink: rgba(255, 235, 250, 0.25);
  --hint-yellow: rgba(255, 252, 230, 0.3);
  --hint-green: rgba(235, 255, 240, 0.2);
  
  --sun: rgba(255, 255, 250, 0.9);

  position: relative;
  color: #333;
  overflow: hidden;

  /* Multi-layered background for depth */
  background:
    /* Primary sun highlight */
    radial-gradient(circle at center,
      var(--sun) 0%,
      rgba(255, 255, 250, 0.6) 15%,
      rgba(255, 255, 245, 0.3) 25%,
      rgba(255, 255, 245, 0) 45%
    ),
    /* Secondary shimmer spot - pure white */
    radial-gradient(circle at 30% 30%,
      #fff 0%,
      rgba(255, 255, 255, 0.8) 10%,
      rgba(255, 255, 255, 0) 25%
    ),
    /* Blue iridescent layer */
    radial-gradient(ellipse at 20% 80%,
      var(--hint-blue) 0%,
      transparent 40%
    ),
    /* Pink iridescent layer */
    radial-gradient(ellipse at 80% 20%,
      var(--hint-pink) 0%,
      transparent 35%
    ),
    /* Yellow shimmer */
    radial-gradient(ellipse at 60% 60%,
      var(--hint-yellow) 0%,
      transparent 30%
    ),
    /* Specular highlight curve - more white */
    linear-gradient(125deg,
      #fff 5%,
      rgba(255,255,255,0.85) 12%,
      rgba(255,255,255,0) 25% 75%,
      rgba(0,0,0,0.04) 94%
    ),
    /* Rim lighting - pure white */
    radial-gradient(150% 150% at -5% -5%,
      #fff,
      rgba(255,255,255,0.7) 20%,
      rgba(255,255,255,0) 40%
    ),
    /* Bottom shadow (very subtle) */
    radial-gradient(180% 180% at 105% 105%,
      rgba(0,0,0,0.08),
      rgba(0,0,0,0) 55%
    ),
    /* Base pearl gradient with more white */
    linear-gradient(115deg,
      #fff 0%,
      #fff 20%,
      var(--pearl-mid) 35%,
      var(--pearl-shadow) 60%,
      var(--pearl-deep) 75%,
      var(--pearl-shadow) 85%,
      #fff 100%
    );

  background-size:
    var(--sun-size) var(--sun-size), /* sun */
    25% 25%,                         /* secondary shimmer */
    60% 60%,                         /* blue */
    50% 50%,                         /* pink */
    45% 45%,                         /* yellow */
    150% 150%,                       /* specular */
    100% 100%,                       /* rim light */
    100% 100%,                       /* shadow */
    100% 100%;                       /* base */

  background-repeat: no-repeat;
  background-position:
    10% 10%,         /* sun (animated) */
    30% 30%,         /* shimmer */
    20% 80%,         /* blue */
    80% 20%,         /* pink */
    60% 60%,         /* yellow */
    50% 25%,         /* specular */
    0 0,             /* rim */
    0 0,             /* shadow */
    0 0;             /* base */

  border: 1px solid rgba(230, 228, 225, 0.3);
  box-shadow:
    /* Inner highlights - more white */
    inset 0 1px 2px #fff,
    inset 0 -15px 25px rgba(0,0,0,0.02),
    inset 15px 0 20px rgba(255,255,255,0.1),
    inset -15px 0 20px rgba(0,0,0,0.02);

  animation:
    pearlwhite-sun var(--sun-speed) ease-in-out infinite,
    pearlwhite-shimmer calc(var(--sun-speed) * 0.7) ease-in-out infinite;
}

/* Enhanced iridescent layer with better flakes */
.pearlwhite::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;

  background:
    /* Smooth iridescent gradient (lighter) */
    conic-gradient(from 45deg at 50% 50%,
      rgba(255, 252, 230, 0.12) 0deg,
      rgba(235, 242, 255, 0.15) 60deg,
      rgba(255, 235, 250, 0.12) 120deg,
      rgba(235, 255, 240, 0.08) 180deg,
      rgba(255, 248, 235, 0.12) 240deg,
      rgba(240, 240, 255, 0.15) 300deg,
      rgba(255, 252, 230, 0.12) 360deg
    ),
    /* Larger metallic flakes - pure white */
    radial-gradient(circle, 
      #fff 0 0.8px, 
      rgba(230,240,255,0.6) 0.9px 1px,
      transparent 1.1px
    ) 0 0 / var(--flake-density) var(--flake-density),
    /* Medium flakes with subtle color */
    radial-gradient(circle, 
      rgba(255,252,240,0.8) 0 0.6px,
      transparent 0.7px
    ) calc(var(--flake-density)/2) calc(var(--flake-density)/2) / var(--flake-density) var(--flake-density),
    /* Tiny sparkle flakes - pure white */
    radial-gradient(circle, 
      #fff 0 0.3px,
      transparent 0.4px
    ) calc(var(--flake-density)/3) calc(var(--flake-density)/3) / calc(var(--flake-density)/2) calc(var(--flake-density)/2);

  mix-blend-mode: screen;
  opacity: 0.5;
  transform-origin: 50% 50%;
  animation: pearlwhite-tint-rotate 30s linear infinite;
}

/* Enhanced gloss layer */
.pearlwhite::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0.8) 15%,
      rgba(255,255,255,0.5) 20%,
      rgba(255,255,255,0) 35% 65%,
      rgba(0,0,0,0.02) 90%,
      rgba(0,0,0,0.05) 98%
    );
  background-size: 200% 200%;
  opacity: 0.6;
  animation: pearlwhite-gloss calc(var(--sun-speed) * 0.8) ease-in-out infinite;
}

/* Sun movement with more organic path */
@keyframes pearlwhite-sun {
  0%   { background-position: 10% 10%, 30% 30%, 20% 80%, 80% 20%, 60% 60%, 50% 25%, 0 0, 0 0, 0 0; }
  25%  { background-position: 70% 15%, 35% 25%, 25% 75%, 75% 25%, 65% 55%, 55% 30%, 0 0, 0 0, 0 0; }
  50%  { background-position: 85% 70%, 40% 35%, 30% 70%, 70% 30%, 55% 65%, 60% 35%, 0 0, 0 0, 0 0; }
  75%  { background-position: 20% 80%, 35% 40%, 25% 75%, 75% 25%, 60% 60%, 55% 30%, 0 0, 0 0, 0 0; }
  100% { background-position: 10% 10%, 30% 30%, 20% 80%, 80% 20%, 60% 60%, 50% 25%, 0 0, 0 0, 0 0; }
}

/* Shimmer pulse */
@keyframes pearlwhite-shimmer {
  0%, 100% { 
    filter: brightness(1) contrast(1); 
  }
  50% { 
    filter: brightness(1.05) contrast(1.02); 
  }
}

/* Gloss sweep */
@keyframes pearlwhite-gloss {
  0%   { background-position: -50% -30%; }
  50%  { background-position: 150% 130%; }
  100% { background-position: -50% -30%; }
}

/* Iridescent rotation */
@keyframes pearlwhite-tint-rotate {
  from { transform: rotate(0deg) scale(1.1); }
  to   { transform: rotate(360deg) scale(1.1); }
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  .pearlwhite,
  .pearlwhite::after,
  .pearlwhite::before { 
    animation: none; 
  }
}
.page-container {
  width: 80%;
  margin: 0 auto;          /* centers horizontally */
  box-sizing: border-box;  /* optional: keeps padding inside the 80% */
}
/* Back to top button */
#myBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #1B365D;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#myBtn:hover {
    background-color: #2C4866;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
