/* Staking Header */
.staking-header {
    text-align: center;
    margin-bottom: 2rem;
}

.staking-header h1 {
    color: #F4EEFF;
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.staking-header p {
    color: #B8ADD2;
    font-size: 1rem;
    margin: 0;
}

/* Staking Cards */
.staking-cards {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Staking Card */
.staking-card {
    background: rgba(39, 38, 44, 0.7);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
}

.staking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.staking-type h3 {
    color: #F4EEFF;
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.badge {
    background: #353547;
    color: #31D0AA;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
}

.token-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

/* Staking Card Body */
.staking-card-body {
    padding: 1rem 0;
    border-top: 1px solid #383241;
    border-bottom: 1px solid #383241;
}

.staking-info {
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #B8ADD2;
    font-size: 0.875rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

/* Staking Balance */
.staking-balance {
    margin: 1.5rem 0;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #B8ADD2;
    font-size: 0.875rem;
}

.balance-row:last-child {
    margin-bottom: 0;
}

.staked-amount, .earned-amount {
    color: #F4EEFF;
    font-weight: 600;
}

/* Staking Actions */
.staking-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stake-button {
    grid-column: 1 / -1;
}

.stake-button, .unstake-button, .harvest-button {
    background: #1FC7D4;
    color: #191326;
    border: none;
    border-radius: 16px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.stake-button:hover, .unstake-button:hover, .harvest-button:hover {
    background: #33c9d0;
}

.unstake-button:disabled, .harvest-button:disabled {
    background: #383241;
    color: #666171;
    cursor: not-allowed;
}

/* Staking Card Footer */
.staking-card-footer {
    padding-top: 1rem;
}

.details-button {
    width: 100%;
    background: transparent;
    border: none;
    color: #1FC7D4;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.details-content {
    margin-top: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #B8ADD2;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.links a {
    color: #1FC7D4;
    text-decoration: none;
    font-size: 0.875rem;
}

.links a:hover {
    text-decoration: underline;
}

/* Staking Modal */
.stake-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.stake-modal-content {
    background: #1E1E1E;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stake-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stake-modal-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
}

.close-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

.stake-modal-body {
    color: #fff;
}

.input-group {
    display: flex;
    align-items: center;
    background: #2A2A2A;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.input-group input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 0;
    margin-right: 10px;
}

.input-group input:focus {
    outline: none;
}

.input-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-symbol {
    color: #888;
    font-size: 0.9rem;
}

.max-button {
    background: #4A90E2;
    border: none;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.max-button:hover {
    background: #357ABD;
}

.balance-info {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.stake-info {
    background: #2A2A2A;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.confirm-stake-button {
    width: 100%;
    background: #4A90E2;
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.confirm-stake-button:hover {
    background: #357ABD;
}

.confirm-stake-button:disabled {
    background: #666;
    cursor: not-allowed;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: #1E1E1E;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #2A2A2A;
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

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

/* Toast Messages */
.error-toast,
.success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
}

.error-content,
.success-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
}

.error-content {
    background: #DC3545;
}

.success-content {
    background: #28A745;
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .stake-modal-content {
        width: 95%;
        padding: 15px;
    }

    .input-group {
        padding: 8px;
    }

    .input-group input {
        font-size: 1rem;
    }

    .max-button {
        padding: 3px 6px;
        font-size: 0.7rem;
    }

    .confirm-stake-button {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .staking-cards {
        grid-template-columns: 1fr;
    }

    .stake-modal-content {
        margin: 1rem;
    }
} 