* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #1e1e2f 0%, #2a2a4a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}


/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1.5rem;
}

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


/* Left side: Logo + Text */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.logo {
    width: 30px;
    height: auto;
}

.brand-text {
    font-size: 1.4rem;
    color: #00d4ff;
    font-weight: 600;
}

/* Right side: Buttons + Wallet */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.btn-outline-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
    white-space: nowrap;
}

#walletAddress {
    font-size: 0.85rem;
    color: #d0d0d0;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 480px) {
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        width: 100%;
    }

    .navbar-left {
        width: 100%;
        justify-content: center;
    }

    .navbar-container {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}



/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem; 
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    width: 100%;
    max-width: 800px; 
    margin: 0 auto;   
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
}

/* Inputs and Buttons */
.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    align-items: center;
    justify-content: flex-start;
}

input[type="number"] {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    width: 100%;
    max-width: 200px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary, .btn-outline-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 25px;
    white-space: nowrap;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        margin: 1rem auto;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .card {
        padding: 2rem;
    }

    h1.text-primary {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    input[type="number"] {
        max-width: 100%;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary, .btn-outline-secondary {
        width: 100%;
        text-align: center;
    }
}

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

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

    .logo {
        width: 30px;
        margin-right: 8px;
    }

    .nav-actions {
        flex-direction: column; 
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
}


.btn-outline-secondary {
    border-color: #00d4ff;
    color: #00d4ff;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-left: 1rem; 
}

.btn-outline-secondary:hover {
    background: #ff007a;
    color: #ffffff;
    border-color: #ff007a;
}

/* Typography */
h1.text-primary {
    font-size: 3rem;
    background: linear-gradient(90deg, #00d4ff, #ff007a);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-muted {
    color: #d0d0d0 !important;
    font-size: 1.1rem;
}

.badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge:hover {
    background: rgba(0, 212, 255, 0.25) !important;
    transform: translateY(-2px);
}

/* Inputs and Buttons */
.input-group {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    align-items: center;
}

input[type="number"]:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #00a6ff);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ff007a, #ff4d8c);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 0, 122, 0.4);
}

.btn-outline-secondary {
    border-color: #00d4ff;
    color: #00d4ff;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-outline-secondary:hover {
    background: #00d4ff;
    color: #1e1e2f;
}

/* Info Items */
.info-item {
    margin: 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

/* Errors */
.error-message {
    color: #ff4d8c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.spinner.active {
    display: block;
}

/* Animations */
@keyframes slideInDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

a.btn-outline-secondary {
    text-decoration: none;
}
canvas {
    max-width: 100%;
    height: 300px;
  }
  
