.staking-container {
    background-color: #2a2a2a;
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Wallet Balance Display */
.wallet-balance-container {
    margin-top: 30px;
}

.wallet-balance-card {
    background-color: #333333;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 2px solid #444444;
    transition: border-color 0.3s ease;
}

.wallet-balance-card:hover {
    border-color: #ff6b6b;
}

.wallet-balance-card h3 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: bold;
}

.balance-info {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.balance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.balance-label {
    color: #cccccc;
    font-size: 0.9em;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    word-break: break-all;
}

.balance-loading {
    opacity: 0.6;
    position: relative;
}

.balance-loading::after {
    content: '...';
    animation: dots 1.5s linear infinite;
}

@keyframes dots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Transaction History */
.transaction-history-container {
    margin-top: 30px;
}

.transaction-history-card {
    background-color: #333333;
    border-radius: 10px;
    padding: 25px;
    border: 2px solid #444444;
    transition: border-color 0.3s ease;
}

.transaction-history-card:hover {
    border-color: #ff6b6b;
}

.transaction-history-card h3 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
}

.transaction-history-content {
    min-height: 200px;
    position: relative;
}

.loading-state, .empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    color: #cccccc;
    font-size: 1.1em;
}

.loading-text {
    opacity: 0.7;
}

.empty-text {
    opacity: 0.6;
    font-style: italic;
}

.table-container {
    overflow-x: auto;
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.tx-table th {
    background-color: #444444;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tx-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #444444;
    color: #cccccc;
    font-size: 0.95em;
}

.tx-table tbody tr:hover {
    background-color: #383838;
}

.tx-table tbody tr:last-child td {
    border-bottom: none;
}

.tx-type {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

.tx-type.stake {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.tx-type.unstake {
    background-color: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.tx-amount {
    font-weight: bold;
    color: #ffffff;
}

.tx-date {
    color: #999999;
    font-size: 0.9em;
}

.tx-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tx-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.tx-status-indicator.confirmed {
    background-color: #4CAF50;
}

.tx-status-indicator.pending {
    background-color: #ff9800;
    animation: pulse 2s infinite;
}

.tx-status-indicator.failed {
    background-color: #f44336;
}

.tx-link {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 0.8em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tx-link:hover {
    opacity: 1;
    text-decoration: underline;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.staking-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.stats-container {
    background-color: #333333;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-half {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.stats-divider {
    width: 2px;
    height: 100px;
    background-color: #444444;
    margin: 0 20px;
}

.staked-amount {
    background-color: #333333;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
}

.staked-amount h2 {
    color: #ff6b6b;
    margin-bottom: 20px;
}

.amount-value {
    font-size: 2.5em;
    color: #ffffff;
    font-weight: bold;
}

.stake-button, .unstake-button, .stake-amount {
    padding: 15px 40px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.stake-amount {
    background-color: #333333;
    color: white;
    border: 2px solid #ff6b6b;
    text-align: center;
    width: 200px;
    margin-bottom: 10px;
}

.stake-amount::placeholder {
    color: #888888;
}

.stake-amount:focus {
    outline: none;
    border-color: #ff6b6b;
}

.stake-button {
    background-color: #ff6b6b;
    color: white;
}

.unstake-button {
    background-color: #333333;
    color: #cccccc;
    border: 2px solid #ff6b6b;
}

.stake-button:hover, .unstake-button:hover {
    transform: translateY(-2px);
}

.stake-button:disabled, .unstake-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-loading {
    position: relative;
    color: transparent !important;
}

.button-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

.points-display {
    background-color: #333333;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.points-display h2 {
    color: #ff6b6b;
    margin-bottom: 20px;
}

.points-value {
    font-size: 2.5em;
    color: #ffffff;
    font-weight: bold;
}

.stats-half h2 {
    color: #ff6b6b;
    margin-bottom: 20px;
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.notification {
    background-color: #2a2a2a;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.notification.success {
    border-color: #4CAF50;
}

.notification.error {
    border-color: #f44336;
}

.notification.warning {
    border-color: #ff9800;
}

.notification.info {
    border-color: #2196F3;
}

.notification-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.notification-message {
    font-size: 0.9em;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.notification-close:hover {
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .staking-container {
        padding: 20px;
    }
    
    .wallet-balance-card {
        padding: 20px;
    }
    
    .wallet-balance-card h3 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    .balance-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .balance-value {
        font-size: 1.5em;
    }
    
    .staking-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .button-container {
        gap: 10px;
        width: 100%;
    }
    
    .stake-button, .unstake-button {
        width: 100%;
        max-width: 300px;
    }

    .stats-container {
        flex-direction: column;
    }

    .stats-divider {
        width: 80%;
        height: 2px;
        margin: 20px 0;
    }
    
    /* Mobile notification adjustments */
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        font-size: 14px;
    }
    
    .notification-title {
        font-size: 1em;
    }
    
    .notification-message {
        font-size: 0.85em;
    }
    
    /* Transaction History Mobile */
    .transaction-history-card {
        padding: 20px;
    }
    
    .transaction-history-card h3 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
    
    .transaction-history-content {
        min-height: 150px;
    }
    
    .tx-table th, .tx-table td {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .tx-table th {
        font-size: 0.8em;
    }
    
    .tx-type {
        font-size: 0.7em;
        padding: 2px 6px;
    }
    
    .tx-amount {
        font-size: 0.9em;
    }
    
    .tx-date {
        font-size: 0.8em;
    }
    
    .tx-link {
        font-size: 0.7em;
    }
}

/* Leaderboard */
.leaderboard-container {
    margin-top: 30px;
}

.leaderboard-card {
    background: #333333;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #ff6b6b;
    transition: transform 0.2s ease;
}

.leaderboard-card:hover {
    transform: translateY(-2px);
    border-color: #ff5555;
}

.leaderboard-card h3 {
    margin: 0 0 20px 0;
    color: #ff6b6b;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444444;
    transition: all 0.2s ease;
}

.leaderboard-entry:hover {
    background: #3a3a3a;
    border-color: #ff6b6b;
}

.leaderboard-entry.rank-1 {
    background: linear-gradient(135deg, #ff6b6b, #ff5555);
    border-color: #ff4444;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.leaderboard-entry.rank-2 {
    background: linear-gradient(135deg, #555555, #666666);
    border-color: #777777;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.leaderboard-entry.rank-3 {
    background: linear-gradient(135deg, #cc5500, #dd6611);
    border-color: #ee7722;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(221, 102, 17, 0.3);
}

.leaderboard-rank {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 120px;
}

.rank-number {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    color: #ffffff;
}

.rank-medal {
    font-size: 1.2rem;
}

.leaderboard-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #cccccc;
    flex: 1;
    text-align: center;
}

.leaderboard-entry.rank-1 .leaderboard-address,
.leaderboard-entry.rank-2 .leaderboard-address,
.leaderboard-entry.rank-3 .leaderboard-address {
    color: #ffffff;
}

/* Special styling for current user */
.leaderboard-entry.current-user {
    position: relative;
    background: #444444 !important;
    border: 2px solid #ff6b6b !important;
    animation: fadeInUp 0.3s ease-out, userPulse 2s infinite;
}

@keyframes userPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
    }
}

.leaderboard-entry.current-user .leaderboard-address {
    font-weight: bold;
    color: #ff6b6b !important;
    font-size: 1rem;
}



/* Animation for progressive loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leaderboard-entry {
    animation: fadeInUp 0.3s ease-out;
}

.leaderboard-amount {
    font-weight: 700;
    font-size: 1rem;
    color: #ff6b6b;
    min-width: 120px;
    text-align: right;
}

.leaderboard-entry.rank-1 .leaderboard-amount,
.leaderboard-entry.rank-2 .leaderboard-amount,
.leaderboard-entry.rank-3 .leaderboard-amount {
    color: #ffffff;
}

/* Loading and empty states for leaderboard */
.leaderboard-content .loading-state,
.leaderboard-content .empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    color: #cccccc;
    font-size: 1rem;
}

.leaderboard-content .loading-text,
.leaderboard-content .empty-text {
    color: #cccccc;
}

/* Leaderboard Mobile */
@media (max-width: 768px) {
    .leaderboard-card {
        padding: 20px;
        border-width: 2px;
    }
    
    .leaderboard-entry {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .leaderboard-rank {
        min-width: auto;
        justify-content: center;
    }
    
    .leaderboard-address {
        font-size: 0.8rem;
    }
    
    .leaderboard-amount {
        min-width: auto;
        text-align: center;
        font-size: 1.1rem;
    }
    
    .leaderboard-entry.rank-1,
    .leaderboard-entry.rank-2,
    .leaderboard-entry.rank-3 {
        box-shadow: 0 0 15px rgba(255, 107, 107, 0.2);
    }
} 