/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    min-height: 100vh;
}

/* Container Styles */
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2 {
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2em;
    margin-bottom: 30px;
}

h2 {
    font-size: 1.8em;
}

/* Wallet Section Styles */
.wallet-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #353535;
    border-radius: 8px;
}

.connect-button {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.connect-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.connect-button:active {
    transform: translateY(0);
}

.address-text {
    margin-top: 15px;
    color: #bbbbbb;
    font-family: monospace;
    font-size: 1.1em;
}

/* Warning Section */
.warning-section {
    background-color: #ff444422;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.wallet-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.wallet-button {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.wallet-button.metamask {
    background-color: #f6851b;
    color: white;
}

.wallet-button.trust {
    background-color: #3375bb;
    color: white;
}

/* Balance and Staking Sections */
.balance-container, .staked-container {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #353535;
    border-radius: 8px;
}

.staked-container {
    color: #4da6ff;
}

/* Pool Styles */
.pools-container {
    margin-top: 30px;
}

.pool {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #3a3a3a;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pool h3 {
    margin-bottom: 15px;
    color: #4da6ff;
    font-size: 1.3em;
}

.pool-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.pool-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pool input {
    padding: 12px;
    width: 100%;
    background-color: #4a4a4a;
    color: #ffffff;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 1em;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-button {
    flex: 1;
    padding: 10px;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.action-button.stake {
    background-color: #28a745;
}

.action-button.withdraw {
    background-color: #dc3545;
}

.action-button.claim {
    background-color: #007bff;
}

.action-button:hover {
    filter: brightness(110%);
    transform: translateY(-2px);
}

/* Loading Indicator */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Transaction Status */
.transaction-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.transaction-status.success {
    background-color: #28a745;
}

.transaction-status.error {
    background-color: #dc3545;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    .pool-info {
        flex-direction: column;
        text-align: center;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-button {
        width: 100%;
    }

    .wallet-options {
        flex-direction: column;
    }

    .wallet-button {
        width: 100%;
    }
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
    input::placeholder {
        color: #888;
    }

    input:focus {
        outline: none;
        border-color: #4da6ff;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .action-button:hover {
        transform: none;
    }

    .spinner {
        animation: none;
    }
}