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

:root {
    /* Light Theme Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);
    --success-gradient: linear-gradient(135deg, #10b981, #059669);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --hover-bg: #f3f4f6;
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    /* Dark Theme Colors */
    --dark-bg: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    --dark-card-bg: rgba(30, 27, 75, 0.95);
    --dark-text-primary: #f9fafb;
    --dark-text-secondary: #d1d5db;
    --dark-border-color: #374151;
    --dark-hover-bg: #374151;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

body.dark-theme {
    background: var(--dark-bg);
    color: var(--dark-text-primary);
}

/* Floating Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle, .favorites-btn {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border: 2px solid rgba(79, 70, 229, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.theme-toggle:hover, .favorites-btn:hover {
    background: #4f46e5;
    color: white;
    transform: scale(1.1);
}

.chat-btn {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Market Overview */
.market-overview {
    margin-bottom: 3rem;
}

.market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-theme .stat-card {
    background: var(--dark-card-bg);
    border-color: var(--dark-border-color);
}

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

.stat-card i {
    font-size: 2rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dark-theme .stat-value {
    color: var(--dark-text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.dark-theme .stat-label {
    color: var(--dark-text-secondary);
}

/* Popular Conversions */
.popular-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dark-theme .section-header h2 {
    color: var(--dark-text-primary);
}

.section-header h2 i {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

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

.popular-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.dark-theme .popular-card {
    background: var(--dark-card-bg);
    border-color: var(--dark-border-color);
}

.popular-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.popular-card:hover::before {
    left: 100%;
}

.popular-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.popular-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.currency-pair {
    font-weight: 600;
    color: #4f46e5;
    font-size: 1.1rem;
}

.popular-rate {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

.popular-names {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Converter Section */
.converter-section {
    display: flex;
    justify-content: center;
}

.converter-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow-heavy);
    width: 100%;
    max-width: 650px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.dark-theme .converter-card {
    background: var(--dark-card-bg);
    border-color: var(--dark-border-color);
}

.converter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.converter-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dark-theme .converter-header h2 {
    color: var(--dark-text-primary);
}

.converter-header h2 i {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.converter-actions {
    display: flex;
    gap: 0.5rem;
}

.save-favorite, .history-btn {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.save-favorite:hover, .history-btn:hover {
    background: #4f46e5;
    color: white;
    transform: scale(1.1);
}

.save-favorite.active {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.save-favorite.active i {
    content: '\f004';
}

/* Input Groups */
.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dark-theme .input-group label {
    color: var(--dark-text-primary);
}

.amount-input-wrapper {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.dark-theme .input-group input {
    background: var(--dark-hover-bg);
    border-color: var(--dark-border-color);
    color: var(--dark-text-primary);
}

.input-group input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.quick-amounts {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quick-amount {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-amount:hover {
    background: #4f46e5;
    color: white;
    transform: scale(1.05);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

/* Currency Row */
.currency-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
}

.currency-group {
    display: flex;
    flex-direction: column;
}

.currency-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.select-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.currency-info {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    min-height: 1.25rem;
}

.swap-btn {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.swap-btn:hover {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
    transform: rotate(180deg);
}

/* Convert Button */
.convert-btn {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Result Section */
.result-section {
    display: none;
}

.result-section.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.result-card {
    background: var(--success-gradient);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 20px 20px;
    animation: shimmer 2s linear infinite;
}

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

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.result-amount {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.copy-result, .share-result {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.copy-result:hover, .share-result:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.result-details {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 500;
}

.exchange-rate {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.rate-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    margin-bottom: 1rem;
}

.rate-change.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.2);
}

.rate-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.conversion-chart {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    color: #6b7280;
    padding: 2rem;
}

.loading.show {
    display: block;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4f46e5;
}

/* Chat Modal */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.chat-modal.show {
    display: flex;
}

.chat-container {
    background: white;
    width: 90%;
    max-width: 500px;
    height: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

.message-content {
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.bot-message {
    align-self: flex-start;
}

.bot-message .message-content {
    background: #f3f4f6;
    color: #374151;
}

.user-message {
    align-self: flex-end;
}

.user-message .message-content {
    background: #4f46e5;
    color: white;
    flex-direction: row-reverse;
}

.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
}

.chat-input-container input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.chat-input-container input:focus {
    border-color: #4f46e5;
}

.chat-input-container button {
    background: #4f46e5;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-input-container button:hover {
    background: #3730a3;
    transform: scale(1.05);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    z-index: 999;
}

.overlay.show {
    display: block;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-title {
        font-size: 1.25rem;
    }

    .container {
        padding: 1rem;
    }

    .popular-section h2 {
        font-size: 1.5rem;
    }

    .popular-grid {
        grid-template-columns: 1fr;
    }

    .converter-card {
        padding: 1.5rem;
    }

    .currency-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .swap-btn {
        order: 3;
        justify-self: center;
        margin: 0;
    }

    .result-amount {
        font-size: 2rem;
    }

    .chat-container {
        width: 95%;
        height: 90vh;
    }
}

@media (max-width: 480px) {
    .converter-card {
        padding: 1rem;
    }

    .result-amount {
        font-size: 1.5rem;
    }
}/*
 Favorites Modal */
.favorites-modal, .history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.favorites-modal.show, .history-modal.show {
    display: flex;
}

.favorites-container, .history-container {
    background: var(--card-bg);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-theme .favorites-container,
.dark-theme .history-container {
    background: var(--dark-card-bg);
    border-color: var(--dark-border-color);
}

.favorites-header, .history-header {
    background: var(--secondary-gradient);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorites-header h3, .history-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.history-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clear-history {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.clear-history:hover {
    background: rgba(255, 255, 255, 0.3);
}

.favorites-content, .history-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.empty-favorites, .empty-history {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.dark-theme .empty-favorites,
.dark-theme .empty-history {
    color: var(--dark-text-secondary);
}

.empty-favorites i, .empty-history i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.favorite-item, .history-item {
    background: var(--hover-bg);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-theme .favorite-item,
.dark-theme .history-item {
    background: var(--dark-hover-bg);
}

.favorite-item:hover, .history-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.favorite-info, .history-info {
    flex: 1;
}

.favorite-pair, .history-pair {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.dark-theme .favorite-pair,
.dark-theme .history-pair {
    color: var(--dark-text-primary);
}

.favorite-rate, .history-rate {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dark-theme .favorite-rate,
.dark-theme .history-rate {
    color: var(--dark-text-secondary);
}

.favorite-actions, .history-actions {
    display: flex;
    gap: 0.5rem;
}

.remove-favorite, .use-conversion {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remove-favorite:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.use-conversion:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.dark-theme .toast {
    background: var(--dark-card-bg);
    border-color: var(--dark-border-color);
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    font-weight: 500;
    color: var(--text-primary);
}

.dark-theme .toast-message {
    color: var(--dark-text-primary);
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .chat-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .market-stats {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .converter-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .quick-amounts {
        justify-content: center;
    }

    .result-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .result-actions {
        justify-content: center;
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(100px);
    }

    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .converter-card {
        padding: 1.5rem;
    }

    .result-amount {
        font-size: 2rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card i {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }
}

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

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(79, 70, 229, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 70, 229, 0.7);
}