/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.stat-box {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Tool Cards */
.tool-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f4f6f9;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background: white;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

.user-message {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.chat-input {
    padding: 10px;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.chat-input button {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.chat-input button:hover {
    background: #0b5ed7;
}

.chat-toggle {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .chat-widget {
        width: 100%;
        right: 0;
        bottom: 0;
        border-radius: 10px 10px 0 0;
    }
    
    .chat-body {
        height: 300px;
    }
}

/* Currency Selector */
#currencySelector .dropdown-item {
    cursor: pointer;
}

#currencySelector .dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Image Upload Areas */
.upload-area {
    border: 2px dashed #ddd;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 10px;
    background: white;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: #e7f1ff;
}

/* Results Display */
.result-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* Before/After Image Comparison */
.comparison-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.comparison-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Blog */
.blog-card {
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-content {
    line-height: 1.8;
}

.blog-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-content p {
    margin-bottom: 15px;
}

/* Map */
#map {
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Affiliate Links */
.affiliate-link {
    display: inline-block;
    padding: 8px 15px;
    background: #ff9900;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
}

.affiliate-link:hover {
    background: #e68a00;
    color: white;
}