/* Staking-specific styles */
:root {
    --bg-color: #0f172a;
    --card-color: #1e293b;
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    --primary-orange: #d97706;
    --text-color: #fff;
    --subtle-text: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
}

/* Page Header Box */
.page-header-box {
    background-color: var(--card-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.3s ease;
    margin: 2rem auto 3rem auto;
    max-width: 600px;
}

.page-header-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
    border-color: #3b82f6;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    text-align: center;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--subtle-text) !important;
    margin: 0;
    text-align: center !important;
}

.staking-content {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0 auto;
}

.left-panel {
    flex: 2;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.right-panel {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.staking-section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.staking-card {
    background-color: var(--card-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.staking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-blue);
}

.staking-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.staking-card h3 img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.live-indicator {
    color: var(--success-color);
    font-size: 0.8rem;
    animation: pulse 2s infinite;
    margin-left: auto;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.staking-details {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.staking-details p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.75rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.staking-details span.value {
    font-weight: bold;
    color: var(--primary-blue);
}

.apr-value {
    color: var(--success-color) !important;
    font-size: 1.1rem;
}

.claim-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.claim-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

.claim-btn:hover:not(:disabled) {
    background: #0d9488;
    transform: translateY(-1px);
}

.staking-input-group {
    margin-top: 1.5rem;
}

.staking-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.staking-input-group input {
    width: 100%;
    padding: 12px 60px 12px 16px;
    border: 1px solid var(--border-color);
    background-color: #0f172a;
    color: var(--text-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.staking-input-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.max-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.max-btn:hover {
    background: var(--primary-purple);
}

.input-validation {
    font-size: 0.8rem;
    min-height: 1.2rem;
    margin-top: 0.25rem;
}

.input-validation.error {
    color: var(--error-color);
}

.input-validation.success {
    color: var(--success-color);
}

.staking-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cta-btn {
    flex: 1;
    padding: 15px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cta-btn .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.cta-btn.loading .spinner {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-btn.stake {
    background: linear-gradient(135deg, #4f46e5, #9333ea, #f59e0b);
}

.cta-btn.unstake {
    background: linear-gradient(135deg, #0ea5e9, #6366f1, #eab308);
}

/* Token List Card */
.token-list-card {
    background-color: var(--card-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.token-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.token-list-card table {
    width: 100%;
    border-collapse: collapse;
}

.token-list-card th, 
.token-list-card td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.token-list-card th {
    color: var(--subtle-text);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.token-list-card th:nth-child(1),
.token-list-card td:nth-child(1) {
    text-align: left;
    width: 40%;
}

.token-list-card th:nth-child(2),
.token-list-card td:nth-child(2) {
    text-align: center;
    width: 30%;
}

.token-list-card th:nth-child(3),
.token-list-card td:nth-child(3) {
    text-align: right;
    width: 30%;
}

.token-info {
    display: table-cell;
    vertical-align: middle;
}

.token-info img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}

.token-name {
    font-weight: 600;
    vertical-align: middle;
}

.token-change.positive {
    color: var(--success-color);
}

.token-change.negative {
    color: var(--error-color);
}

.token-change.neutral {
    color: var(--subtle-text);
}

.last-updated {
    text-align: center;
    font-size: 0.8rem;
    color: var(--subtle-text);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Chart and Transaction Cards */
.chart-card, .transaction-history-card {
    background-color: var(--card-color);
    padding: 2rem;
    padding-bottom: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-card:hover, .transaction-history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 0.9rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.stat-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-blue);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--subtle-text);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-blue);
}


.transaction-list {
    max-height: 200px;
    overflow-y: auto;
}

.no-transactions {
    text-align: center;
    color: var(--subtle-text);
    padding: 2rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .staking-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .staking-actions {
        flex-direction: column;
    }
}


