/* General Body Styling */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9fafb;
    color: #333;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Hero Section Styling */
.hero-section {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    padding: 60px 0; 
    color: white;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.hero-title {
    font-size: 3rem;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.hero-start-button {
    background: #ffffff1a;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 30px;
    padding: 15px 30px;
    transition: all 0.3s ease;
}

.hero-start-button:hover {
    background: #ffffff33;
    transform: translateY(-3px);
}

/* Navigation Tabs Styling */
.tab-navigation {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
}

.tab-button {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 15px 25px;
    border: none;
}

.buy-tab {
    background-color: #28a745 !important; /* Green for Buy */
}

.sell-tab {
    background-color: #dc3545 !important; /* Red for Sell */
}

.tab-button.active {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.tab-button:hover {
    opacity: 0.9;
}

/* Responsive Layout for Buy and Sell Buttons */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: row;
    }

    .tab-button {
        font-size: 1rem;
        padding: 10px;
    }
}

/* Balances Container Styling */
.balances-container {
    background: #e6e6e6;
    border-radius: 15px;
}

.balances-text {
    font-weight: 600;
    color: #333;
}

/* Content Section and Step Card Styling */
.content-section {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-card {
    border: 1px solid #e6e6e6;
    margin-bottom: 30px;
    border-radius: 20px;
    background: #f9f9f9;
    transition: transform 0.3s ease-in-out;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.step-header {
    background: #0056b3;
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-number {
    background: #007bff;
    color: #fff;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    flex-shrink: 0; /* Prevent shrinking of the step number */
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Step Body */
.step-body {
    padding: 30px;
}

.step-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Button Styling */
button {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    padding: 15px;
    border-radius: 10px;
}

.connect-button, .add-bag-button {
    font-size: 1.1rem;
    font-weight: 600;
}

.copy-address-button {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s;
}

button:hover {
    background: #0056b3;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Disabled State for Connect Button */
.connect-button.disabled {
    background: #6c757d;
    color: #fff;
    pointer-events: none; /* Disables the click event */
}

/* Badge Styling */
.eth-badge {
    background: #28a745;
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 15px;
}

.wallet-badge {
    background: #6c757d;
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 15px;
}

/* Wallet Info */
.wallet-info-bg {
    background: #eaf7ff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Iframe Styling */
.iframe-container {
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    padding: 20px;
}

/* Link Styling Improvements */
.link-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-link {
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
}

.btn-outline-info {
    border-color: #007bff;
    color: #007bff;
    font-weight: 500;
}

.btn-outline-info:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-outline-primary {
    border-color: #0056b3;
    color: #0056b3;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Footer Styling */
.footer-section {
    background: linear-gradient(90deg, #007bff, #00c6ff);
    padding: 30px;
    color: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
}

.footer-text {
    margin: 0;
    font-weight: 600;
}

.footer-icon {
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
}

.footer-icon:hover {
    color: #00c6ff;
    transform: scale(1.1);
}

/* Responsive Styling */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .tab-navigation {
        flex-direction: row;
        gap: 5px;
    }

    .tab-button {
        font-size: 1rem;
        padding: 10px;
    }

    .step-header, .step-body {
        padding: 15px;
    }

    .hero-content {
        padding: 30px;
    }

    .connect-button, .add-bag-button {
        font-size: 1rem;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .step-number {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        line-height: 35px;
    }
}
