/* ===================================
   CitadelVest Pro - Component Styles
   File: public/css/components.css
   Components: Modals, Cards, Buttons, etc.
   =================================== */

/* === MODALS === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

/* === WALLET BOXES === */
.wallet-box {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.wallet-stats {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

/* === INVESTMENT CARD === */
#activeInvestmentCard {
    display: none;
    margin-top: 2rem;
}

/* === WITHDRAWAL STATUS SECTION === */
#withdrawalStatusSection {
    display: none;
    margin-top: 2rem;
}

/* === DEPOSIT CLAIMS SECTION === */
#depositClaimsSection {
    display: none;
    margin-top: 2rem;
}

/* === EMPTY STATES === */
#emptyUserWithdrawals,
#emptyUserDeposits,
#emptyDepositState {
    display: none;
    padding: 60px;
    text-align: center;
}

/* === PAGINATION === */
#userWithdrawalPagination,
#userDepositPagination {
    display: none;
    padding: 1rem 2rem;
    border-top: 1px solid #e0e0e0;
}

/* === ALERT BOX === */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.alert.show {
    display: block;
}

.alert.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert.error {
    background: #ffebee;
    color: #c62828;
}

/* === BUTTONS === */
button {
    font-family: 'Poppins', sans-serif;
}

/* === LOADING SPINNER === */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === STATUS BADGES === */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-badge.inactive {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

/* === CRYPTO NEWS === */
.crypto-news {
    margin-top: 2rem;
    background: var(--color-white);
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
}

.news-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-light);
}

.news-item:last-child {
    border-bottom: none;
}

/* === FORM ELEMENTS === */
input, select, textarea {
    font-family: 'Poppins', sans-serif;
}

/* === ANIMATIONS === */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === CARDS === */
.card {
    background: var(--color-white);
    border-radius: var(--card-border-radius);
    padding: var(--card-padding);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* === STAT CARDS === */
.stat-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-gray-dark);
}

/* === PROGRESS BARS === */
.progress-bar {
    background: rgba(255,255,255,0.2);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    background: #4CAF50;
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}