/* ===================================================
   CenterPay Member Portal - Modern 2026 Dashboard Styles
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    background-color: #f1f5f9;
}

/* Modern Welcome Hero Card */
.cp-member-welcome {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #0284c7 100%);
    border-radius: 16px;
    padding: 24px;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.cp-member-welcome::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cp-welcome-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.cp-welcome-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 8px 0 4px;
    color: #ffffff;
}

.cp-quick-addmoney {
    background: #f59e0b;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.cp-quick-addmoney:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45);
    color: #ffffff !important;
}

/* Modern Dashboard Service Tile */
.cp-dash-tile {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cp-dash-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -8px rgba(37, 99, 235, 0.18);
    border-color: #93c5fd;
}

.cp-dash-tile .tile-img-box {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f8fafc;
    transition: all 0.25s ease;
}

.cp-dash-tile:hover .tile-img-box {
    transform: scale(1.1);
    background: #eff6ff;
}

.cp-dash-tile img {
    max-height: 46px;
    max-width: 46px;
    object-fit: contain;
}

.cp-dash-tile .tile-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 2px;
}

.cp-dash-tile .tile-sub {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 500;
}

.cp-dash-tile .tile-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: #dbeafe;
    color: #1d4ed8;
}

/* Modern Metric Stats Cards */
.cp-metric-card {
    border-radius: 14px;
    padding: 18px 20px;
    color: #ffffff;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.12);
    margin-bottom: 16px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.cp-metric-card:hover {
    transform: translateY(-3px);
}

.cp-metric-blue {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.cp-metric-green {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}

.cp-metric-purple {
    background: linear-gradient(135deg, #581c87 0%, #8b5cf6 100%);
}

.cp-metric-red {
    background: linear-gradient(135deg, #991b1b 0%, #ef4444 100%);
}

.cp-metric-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.88;
    margin-bottom: 6px;
}

.cp-metric-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

/* Elevated Tables */
.card.pmd-card {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%) !important;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 14px 20px;
}

/* Pulse indicator */
.pulse-green {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
