:root {
    --primary-color: #8B4513;
    --secondary-color: #DAA520;
    --accent-color: #CD853F;
    --success-color: #228B22;
    --warning-color: #FF8C00;
    --info-color: #4169E1;
    --dark-color: #2F1B14;
    --light-color: #FFF8DC;
    --gradient-primary: linear-gradient(135deg, #8B4513 0%, #DAA520 100%);
    --gradient-secondary: linear-gradient(135deg, #DAA520 0%, #CD853F 100%);
    --shadow-soft: 0 2px 20px rgba(139, 69, 19, 0.1);
    --shadow-medium: 0 4px 25px rgba(139, 69, 19, 0.15);
    --shadow-strong: 0 8px 30px rgba(139, 69, 19, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* Custom Bootstrap Theme */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #A0522D 0%, #F0E68C 100%);
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-success {
    border-color: var(--success-color);
    color: var(--success-color);
}

.btn-outline-success:hover {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

/* Google AdSense Style Ads */
.adsense-container {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.adsense-container::before {
    content: "Ads by Google";
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    color: #9e9e9e;
    font-family: Arial, sans-serif;
    z-index: 10;
}

.adsense-banner {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    padding: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: Arial, sans-serif;
}

.adsense-banner:hover {
    border-color: #4285f4;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

/* Leaderboard Banner (728x90) */
.adsense-leaderboard {
    width: 728px;
    height: 90px;
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(45deg, #1976d2, #42a5f5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

/* Medium Rectangle (300x250) */
.adsense-rectangle {
    width: 300px;
    height: 250px;
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(45deg, #4caf50, #81c784);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-align: center;
}

/* Wide Skyscraper (160x600) */
.adsense-skyscraper {
    width: 160px;
    height: 600px;
    background: linear-gradient(45deg, #ff9800, #ffb74d);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
    margin: 0 auto;
}

/* Mobile Banner (320x50) */
.adsense-mobile {
    width: 320px;
    height: 50px;
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(45deg, #9c27b0, #ba68c8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Large Rectangle (336x280) */
.adsense-large-rectangle {
    width: 336px;
    height: 280px;
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(45deg, #f44336, #ef5350);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-align: center;
}

/* Square (250x250) */
.adsense-square {
    width: 250px;
    height: 250px;
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(45deg, #607d8b, #90a4ae);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-align: center;
}

/* Banner (468x60) */
.adsense-banner-small {
    width: 468px;
    height: 60px;
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(45deg, #795548, #a1887f);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .adsense-leaderboard {
        width: 320px;
        height: 50px;
        font-size: 12px;
    }
    
    .adsense-rectangle {
        width: 300px;
        height: 250px;
    }
    
    .adsense-skyscraper {
        width: 300px;
        height: 250px;
    }
}

.ad-label {
    font-size: 10px;
    color: #666;
    margin-bottom: 5px;
    font-family: Arial, sans-serif;
}

.sidebar-ads {
    position: sticky;
    top: 20px;
}

.btn-outline-warning {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.btn-outline-warning:hover {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-outline-info {
    border-color: var(--info-color);
    color: var(--info-color);
}

.btn-outline-info:hover {
    background-color: var(--info-color);
    border-color: var(--info-color);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

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

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FFF8DC 0%, #F5F5DC 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: #666;
    font-size: 1.2rem;
}

.inspiration-quote {
    background: white;
    border-radius: 15px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-soft);
    font-style: italic;
    color: #555;
}

.business-icons {
    padding: 2rem;
}

.icon-box {
    background: white;
    padding: 2rem 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    height: 100%;
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.icon-box i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.icon-box h6 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0;
}

/* Quick Actions */
.quick-actions {
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.quick-btn {
    padding: 1.5rem 1rem;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 100%;
}

.quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.quick-btn i {
    font-size: 1.5rem;
}

/* Chat Interface */
.chat-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease;
}

.message-content {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    position: relative;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background: #f8f9fa;
    color: #333;
    border-bottom-left-radius: 5px;
    border: 1px solid #e9ecef;
}

.bot-message .message-content ul {
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.bot-message .message-content li {
    margin-bottom: 0.3rem;
}

/* Upgrade Prompt Styles */
.upgrade-prompt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 10px 0;
    text-align: center;
}

.upgrade-prompt h5 {
    color: white;
    margin-bottom: 15px;
}

.upgrade-prompt .btn {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #333;
    font-weight: 600;
}

.upgrade-prompt .btn:hover {
    background-color: #ffed4e;
    border-color: #ffed4e;
    color: #333;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #999;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.chat-input .form-control {
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.chat-input .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

.chat-input .form-select {
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.chat-input .btn {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Expertise Section */
.expertise-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.expertise-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    text-align: center;
}

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

.expertise-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.expertise-card h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.expertise-card p {
    color: #666;
    margin-bottom: 0;
}

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

footer a:hover {
    color: var(--secondary-color) !important;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .chat-container {
        height: 500px;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .expertise-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .chat-container {
        height: 450px;
        border-radius: 15px;
    }
    
    .quick-btn {
        font-size: 0.9rem;
    }
}

/* Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(139, 69, 19, 0.25);
}

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

/* Success states */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
