/* 
   DASHBOARD.CSS
   Styles for Dashboard Stat Cards, Charts, and Performance Tables
*/

/* ========== STAT CARDS (Common) ========== */
.stat-card {
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02) !important;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.stat-card .card-body {
    padding: 2rem 1.5rem !important;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(-5deg);
}

.stat-card .stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* Stat Glow Effect */
.stat-card .stat-glow {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(45px);
    z-index: 0;
    transition: all 0.5s ease;
}

.stat-card:hover .stat-glow {
    opacity: 0.15;
    transform: scale(1.3) translate(-20px, -20px);
}

/* User Dashboard Tinted Cards - Refined for High Contrast Values */
.stat-card.tint-indigo { 
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.8), #ffffff) !important;
    border-color: rgba(99, 102, 241, 0.2) !important; 
}
.stat-card.tint-emerald { 
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.8), #ffffff) !important;
    border-color: rgba(16, 185, 129, 0.2) !important; 
}
.stat-card.tint-rose { 
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.8), #ffffff) !important;
    border-color: rgba(244, 63, 94, 0.2) !important; 
}
.stat-card.tint-amber { 
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.8), #ffffff) !important;
    border-color: rgba(245, 158, 11, 0.2) !important; 
}

/* ========== CHART CONTAINERS ========== */
.chart-container {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.chart-container:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* ========== PERFORMANCE TABLES ========== */
.top-offers-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.top-offers-table td {
    padding: 1rem 0;
    border-bottom: 1px solid #f8fafc;
}

.revenue-badge {
    background: #ecfdf5;
    color: #059669;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
}

/* Leaderboard Specifics */
.medal-1 { color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
.medal-2 { color: #C0C0C0; }
.medal-3 { color: #CD7F32; }

.rank-badge {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* Headline Typography for Dashboards */
.dash-header-title {
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.dash-header-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

/* User Leaderboard & Rank Styles */
.leaderboard-row {
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    cursor: default;
}

.leaderboard-row:hover {
    background: rgba(67, 56, 202, 0.05) !important;
    transform: scale(1.01) translateX(4px);
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: white; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); color: white; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #B8860B); color: white; }
.rank-default { background: rgba(79, 70, 229, 0.1); color: var(--primary-light); }

.progress-thin {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.progress-thin .progress-bar {
    border-radius: 3px;
}

.card-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

/* Conversion Item Transitions */
.conversion-item {
    transition: all 0.2s ease;
}

.conversion-item:hover {
    padding-left: 8px;
}

/* Pill Badges */
.pill-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}

.pill-success { background: #ecfdf5; color: #059669; }
.pill-info { background: #eff6ff; color: #2563eb; }

/* View Details & Misc Dashboard Buttons */
.btn-view-details {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-view-details:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.container-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Pulse removed */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
