/* ========================================
   Trade Crypto - Dashboard Styles
   Modern Dark Theme
   ======================================== */

:root {
    --bg-primary: #0a0d1f;
    --bg-secondary: #141829;
    --bg-card: #1a1d2e;
    --bg-card-hover: #1f2237;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #b4b9c9;
    --text-muted: #6b7280;
    --accent-primary: #ef4444;
    --accent-secondary: #dc2626;
    --accent-tertiary: #b91c1c;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #3b82f6;
    --purple: #8b5cf6;
    --cyan: #06b6d4;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 24px rgba(239, 68, 68, 0.2);
}

/* Dashboard Page Background */
.page-content {
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Page Title */
.page-title-box h4 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.breadcrumb-item.active {
    color: var(--accent-primary);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--accent-primary);
}

/* News Alert */
.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: var(--success);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.alert-success marquee {
    font-weight: 500;
}

/* ========================================
   INVITATION CARD
   ======================================== */
/* ========================================
   MODERN INVITATION CARD - REDESIGNED
   ======================================== */

.invitation-card-modern {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.02) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.invitation-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.invitation-card-inner {
    position: relative;
    z-index: 1;
}

/* Header Section */
.invitation-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.invitation-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    min-width: 80px;
}

.invitation-badge i {
    font-size: 2rem;
    color: #ffffff;
}

.invitation-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.invitation-title-wrapper {
    flex: 1;
}

.invitation-title {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.invitation-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* Info Box */
.invitation-info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid var(--accent-primary);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.info-icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon-wrapper i {
    font-size: 1.25rem;
    color: var(--accent-primary);
}

.info-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.info-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Referral Links Grid */
.referral-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.referral-link-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.referral-link-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(40%, -40%);
    transition: all 0.3s ease;
}

.referral-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(239, 68, 68, 0.3);
}

.referral-link-card:hover::after {
    transform: translate(30%, -30%) scale(1.2);
}

.referral-card-header {
    margin-bottom: 1rem;
}

.placement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.placement-badge i {
    font-size: 1rem;
}

.left-badge {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    border-color: rgba(6, 182, 212, 0.2);
    color: var(--cyan);
}

.right-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--purple);
}

/* Referral Link Display */
.referral-link-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.link-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

.referral-url-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.813rem;
    font-family: 'Courier New', monospace;
    padding: 0;
    outline: none;
}

.referral-url-input:focus {
    color: var(--text-primary);
}

/* Copy Buttons */
.copy-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.copy-btn:hover::before {
    left: 100%;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn i {
    font-size: 1.125rem;
}

.left-btn {
    background: linear-gradient(135deg, var(--cyan), #0891b2);
}

.left-btn:hover {
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
}

.right-btn {
    background: linear-gradient(135deg, var(--purple), #7c3aed);
}

.right-btn:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 991px) {
    .referral-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .invitation-card-modern {
        padding: 1.5rem;
    }
    
    .invitation-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .invitation-badge {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .invitation-badge i {
        font-size: 1.5rem;
    }
    
    .invitation-title {
        font-size: 1.5rem;
    }
    
    .invitation-subtitle {
        font-size: 0.9375rem;
    }
    
    .referral-url-input {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .copy-btn span {
        font-size: 0.875rem;
    }
    
    .info-text {
        font-size: 0.875rem;
    }
}


/* ========================================
   PRIMARY STATS (Top 4 Cards)
   ======================================== */
/* ========================================
   MODERN STAT CARDS - MINIMAL VERSION
   ======================================== */

.stats-row-modern {
    margin-bottom: 2rem;
}

.stat-card-modern {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    transition: height 0.4s ease;
}

.stat-card-modern:hover::before {
    height: 100%;
}

.stat-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Glow Effect */
.stat-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card-modern:hover .stat-card-glow {
    opacity: 1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Icon Section */
.stat-icon-modern {
    width: 5rem;
    height: 5rem;
    position: relative;
    flex-shrink: 0;
}

.icon-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-primary);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.stat-card-modern:hover .icon-inner {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

/* Pulse Effect */
.stat-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(239, 68, 68, 0.1));
    opacity: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* Info Section */
.stat-info {
    flex: 1;
}

.stat-title-modern {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 0.75rem 0;
    opacity: 0.8;
}

.stat-amount {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.03em;
    transition: all 0.3s ease;
}

.stat-card-modern:hover .stat-amount {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Decorative Pattern */
.stat-pattern {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0.3;
    z-index: 1;
}

.pattern-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.pattern-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.pattern-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

/* Card Color Variations */
.stat-card-red .icon-inner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
    color: var(--accent-primary);
}

.stat-card-red .stat-pulse {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(239, 68, 68, 0.1));
}

.stat-card-red::before {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
}

.stat-card-red .pattern-dot {
    background: var(--accent-primary);
}

.stat-card-purple .icon-inner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.08));
    color: var(--purple);
}

.stat-card-purple .stat-pulse {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.1));
}

.stat-card-purple::before {
    background: linear-gradient(180deg, var(--purple), #7c3aed);
}

.stat-card-purple:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.stat-card-purple:hover .stat-amount {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.stat-card-purple .pattern-dot {
    background: var(--purple);
}

.stat-card-green .icon-inner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.08));
    color: var(--success);
}

.stat-card-green .stat-pulse {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(16, 185, 129, 0.1));
}

.stat-card-green::before {
    background: linear-gradient(180deg, var(--success), #059669);
}

.stat-card-green:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.stat-card-green:hover .stat-amount {
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.stat-card-green .pattern-dot {
    background: var(--success);
}

.stat-card-cyan .icon-inner {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.08));
    color: var(--cyan);
}

.stat-card-cyan .stat-pulse {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(6, 182, 212, 0.1));
}

.stat-card-cyan::before {
    background: linear-gradient(180deg, var(--cyan), #0891b2);
}

.stat-card-cyan:hover {
    border-color: rgba(6, 182, 212, 0.4);
}

.stat-card-cyan:hover .stat-amount {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.stat-card-cyan .pattern-dot {
    background: var(--cyan);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .stat-amount {
        font-size: 2.25rem;
    }
    
    .stat-icon-modern {
        width: 4.5rem;
        height: 4.5rem;
    }
    
    .icon-inner {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .stat-card-modern {
        padding: 1.75rem;
    }
    
    .stat-card-content {
        gap: 1.25rem;
    }
    
    .stat-icon-modern {
        width: 4rem;
        height: 4rem;
    }
    
    .icon-inner {
        font-size: 1.5rem;
    }
    
    .stat-amount {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .stat-card-modern {
        padding: 1.5rem;
    }
    
    .stat-amount {
        font-size: 1.875rem;
    }
    
    .stat-title-modern {
        font-size: 0.75rem;
    }
    
    .stat-pattern {
        bottom: 0.75rem;
        right: 0.75rem;
    }
}


/* Different accent colors for variety */
.stat-2 .stat-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    color: var(--purple);
}

.stat-3 .stat-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--success);
}

.stat-4 .stat-icon {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    color: var(--cyan);
}

/* ========================================
   INCOME WIDGET
   ======================================== */
/* ========================================
   VERTICAL INCOME CARDS - REDESIGNED
   ======================================== */

.income-cards-row {
    margin-bottom: 2rem;
}

.income-card-vertical {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.income-card-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
    background-size: 200% 100%;
}

.income-card-vertical:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(239, 68, 68, 0.5);
}

.income-card-vertical:hover::before {
    animation: gradient-shift 2s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

/* Background Effect */
.income-card-bg {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.5s ease;
}

.income-card-vertical:hover .income-card-bg {
    transform: scale(1.3) translate(-20px, 20px);
    opacity: 0.8;
}

/* Card Header */
.income-card-header {
    padding: 1.75rem 1.75rem 1rem 1.75rem;
    position: relative;
    z-index: 2;
}

.income-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    margin-bottom: 1rem;
}

.income-badge span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.income-card-title {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Card Body */
.income-card-body {
    padding: 0 1.75rem 1.75rem 1.75rem;
    position: relative;
    z-index: 2;
}

.income-icon-circle {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2.5rem;
    color: var(--accent-primary);
    position: relative;
    transition: all 0.4s ease;
}

.income-icon-circle::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.income-card-vertical:hover .income-icon-circle {
    transform: scale(1.1) rotate(10deg);
}

.income-card-vertical:hover .income-icon-circle::before {
    opacity: 1;
    animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Amount Section */
.income-amount-wrapper {
    text-align: center;
    margin-bottom: 1.25rem;
}

.income-main-value {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.income-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Bar */
.income-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer-progress 2s infinite;
}

@keyframes shimmer-progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Card Color Variations */
.income-card-orange::before {
    background: linear-gradient(90deg, #f59e0b, #f97316, #f59e0b);
    background-size: 200% 100%;
}

.income-card-orange .income-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
}

.income-card-orange .income-badge span {
    color: var(--warning);
}

.income-card-orange .income-icon-circle {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: var(--warning);
}

.income-card-orange .income-icon-circle::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), transparent);
}

.income-card-orange .income-card-bg {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
}

.income-card-orange .progress-fill {
    background: linear-gradient(90deg, var(--warning), #f97316);
}

.income-card-orange:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

.income-card-blue::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb, #3b82f6);
    background-size: 200% 100%;
}

.income-card-blue .income-badge {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.3);
}

.income-card-blue .income-badge span {
    color: var(--info);
}

.income-card-blue .income-icon-circle {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    color: var(--info);
}

.income-card-blue .income-icon-circle::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), transparent);
}

.income-card-blue .income-card-bg {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.income-card-blue .progress-fill {
    background: linear-gradient(90deg, var(--info), #2563eb);
}

.income-card-blue:hover {
    border-color: rgba(59, 130, 246, 0.5);
}

.income-card-green::before {
    background: linear-gradient(90deg, #10b981, #059669, #10b981);
    background-size: 200% 100%;
}

.income-card-green .income-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
}

.income-card-green .income-badge span {
    color: var(--success);
}

.income-card-green .income-icon-circle {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--success);
}

.income-card-green .income-icon-circle::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), transparent);
}

.income-card-green .income-card-bg {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

.income-card-green .progress-fill {
    background: linear-gradient(90deg, var(--success), #059669);
}

.income-card-green:hover {
    border-color: rgba(16, 185, 129, 0.5);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .income-main-value {
        font-size: 2.25rem;
    }
}

@media (max-width: 991px) {
    .col-xl-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .income-card-header {
        padding: 1.5rem 1.5rem 0.75rem 1.5rem;
    }
    
    .income-card-body {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .income-icon-circle {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .income-main-value {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .income-main-value {
        font-size: 1.875rem;
    }
    
    .income-card-title {
        font-size: 1rem;
    }
    
    .income-subtitle {
        font-size: 0.813rem;
    }
}

/* ========================================
   SECONDARY STATS (Team & Business)
   ======================================== */
/* ========================================
   TEAM STATS CARDS - SPLIT DESIGN
   ======================================== */

.team-stats-row {
    margin-bottom: 2rem;
}

.team-card-modern {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.team-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Split Layout */
.team-card-split {
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

/* Icon Section */
.team-icon-section {
    width: 35%;
    min-height: 140px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.team-icon-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card-modern:hover .team-icon-bg {
    opacity: 1;
    animation: pulse-bg 2s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.team-icon-section i {
    font-size: 3rem;
    color: var(--accent-primary);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.team-card-modern:hover .team-icon-section i {
    transform: scale(1.15) rotate(10deg);
}

/* Info Section */
.team-info-section {
    flex: 1;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-label {
    color: var(--text-secondary);
    font-size: 0.813rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.75rem 0;
}

.team-count {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    line-height: 1;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.team-card-modern:hover .team-count {
    transform: scale(1.05);
}

.team-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: fit-content;
}

.meta-icon {
    color: var(--accent-primary);
    font-size: 0.625rem;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.meta-text {
    color: var(--text-secondary);
    font-size: 0.813rem;
    font-weight: 500;
}

/* Wave Effect */
.team-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent,
        var(--accent-primary),
        var(--accent-secondary),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.team-card-modern:hover .team-wave {
    transform: translateX(100%);
}

/* Card Color Variations */
.team-card-pink .team-icon-section {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.08));
}

.team-card-pink .team-icon-section i {
    color: #ec4899;
}

.team-card-pink .meta-icon {
    color: #ec4899;
}

.team-card-pink .team-wave {
    background: linear-gradient(90deg, transparent, #ec4899, #db2777, transparent);
}

.team-card-pink:hover {
    border-color: rgba(236, 72, 153, 0.4);
}

.team-card-indigo .team-icon-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.08));
}

.team-card-indigo .team-icon-section i {
    color: #6366f1;
}

.team-card-indigo .meta-icon {
    color: #6366f1;
}

.team-card-indigo .team-wave {
    background: linear-gradient(90deg, transparent, #6366f1, #4f46e5, transparent);
}

.team-card-indigo:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.team-card-teal .team-icon-section {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(20, 184, 166, 0.08));
}

.team-card-teal .team-icon-section i {
    color: #14b8a6;
}

.team-card-teal .meta-icon {
    color: #14b8a6;
}

.team-card-teal .team-wave {
    background: linear-gradient(90deg, transparent, #14b8a6, #0d9488, transparent);
}

.team-card-teal:hover {
    border-color: rgba(20, 184, 166, 0.4);
}

.team-card-violet .team-icon-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.08));
}

.team-card-violet .team-icon-section i {
    color: var(--purple);
}

.team-card-violet .meta-icon {
    color: var(--purple);
}

.team-card-violet .team-wave {
    background: linear-gradient(90deg, transparent, var(--purple), #7c3aed, transparent);
}

.team-card-violet:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 1199px) {
    .team-count {
        font-size: 1.875rem;
    }
    
    .team-icon-section i {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {
    .team-card-split {
        flex-direction: column;
    }
    
    .team-icon-section {
        width: 100%;
        min-height: 100px;
    }
    
    .team-info-section {
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .team-count {
        font-size: 1.75rem;
    }
    
    .team-icon-section {
        min-height: 90px;
    }
    
    .team-icon-section i {
        font-size: 2.25rem;
    }
}

@media (max-width: 576px) {
    .team-count {
        font-size: 1.625rem;
    }
    
    .team-label {
        font-size: 0.75rem;
    }
    
    .meta-text {
        font-size: 0.75rem;
    }
    
    .team-meta {
        padding: 0.375rem 0.625rem;
    }
}

/* ========================================
   WALLET CARDS - REDESIGNED
   ======================================== */

.wallet-cards-row {
    margin-bottom: 2rem;
}

.wallet-card-link {
    text-decoration: none;
    display: block;
}

.wallet-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.wallet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(239, 68, 68, 0.5);
}

.wallet-card:hover::before {
    transform: scaleX(1);
}

/* Background Glow */
.wallet-card-bg {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.5s ease;
}

.wallet-card:hover .wallet-card-bg {
    transform: scale(1.3) translate(-20px, 20px);
    opacity: 0.8;
}

.wallet-card-withdrawal .wallet-card-bg {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

/* Card Header */
.wallet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.wallet-icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--warning);
    transition: all 0.4s ease;
}

.wallet-card:hover .wallet-icon-box {
    transform: scale(1.1) rotate(-10deg);
}

.wallet-card-withdrawal .wallet-icon-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: var(--info);
}

.wallet-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    color: var(--warning);
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: uppercase;
}

.wallet-card-withdrawal .wallet-badge {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

/* Card Body */
.wallet-card-body {
    position: relative;
    z-index: 2;
}

.wallet-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.75rem 0;
}

.wallet-amount {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.wallet-card:hover .wallet-amount {
    transform: scale(1.05);
}

.currency-symbol {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.wallet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.balance-label {
    color: var(--text-muted);
    font-size: 0.813rem;
    font-weight: 500;
}

.wallet-footer i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.wallet-card:hover .wallet-footer i {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* Decorative Elements */
.wallet-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    opacity: 0.5;
}

.deco-1 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: -50px;
}

.deco-2 {
    width: 100px;
    height: 100px;
    top: 20px;
    right: 20px;
}

.wallet-card-withdrawal .deco-circle {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

/* Responsive */
@media (max-width: 1199px) {
    .wallet-amount {
        font-size: 2.25rem;
    }
}

@media (max-width: 767px) {
    .wallet-card {
        padding: 1.75rem;
    }
    
    .wallet-icon-box {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .wallet-amount {
        font-size: 2rem;
    }
    
    .currency-symbol {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .wallet-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .wallet-amount {
        font-size: 1.875rem;
    }
}


/* ========================================
   DATATABLES - GLOBAL MODERN STYLING
   Automatically styles all DataTables
   ======================================== */

/* Table Container */
.dataTables_wrapper {
    font-family: 'Space Grotesk', sans-serif;
}

/* Card containing table */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 1.5rem;
}

/* Top Controls (Search, Show entries) */
.dataTables_length,
.dataTables_filter {
    margin-bottom: 1.5rem;
}

.dataTables_length label,
.dataTables_filter label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dataTables_length select,
.dataTables_filter input {
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.dataTables_length select:focus,
.dataTables_filter input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.dataTables_filter input {
    min-width: 250px;
}

/* Table Wrapper */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

/* Main Table Styles */
.dataTable {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table Header */
.dataTable thead {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.04));
}

.dataTable thead th {
    padding: 1rem 1.25rem;
    background: transparent;
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
}

.dataTable thead th:last-child {
    border-right: none;
}

/* Sortable columns */
.dataTable thead th.sorting,
.dataTable thead th.sorting_asc,
.dataTable thead th.sorting_desc {
    cursor: pointer;
    padding-right: 2rem;
}

.dataTable thead th.sorting::after,
.dataTable thead th.sorting_asc::after,
.dataTable thead th.sorting_desc::after {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'bootstrap-icons';
    font-size: 0.875rem;
    color: var(--text-muted);
}

.dataTable thead th.sorting::after {
    content: "\F22B"; /* bi-chevron-expand */
}

.dataTable thead th.sorting_asc::after {
    content: "\F145"; /* bi-chevron-up */
    color: var(--accent-primary);
}

.dataTable thead th.sorting_desc::after {
    content: "\F282"; /* bi-chevron-down */
    color: var(--accent-primary);
}

/* Table Body */
.dataTable tbody tr {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dataTable tbody tr:hover {
    background: rgba(239, 68, 68, 0.05);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dataTable tbody td {
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.dataTable tbody td:last-child {
    border-right: none;
}

.dataTable tbody td:first-child {
    color: var(--text-primary);
    font-weight: 700;
}

/* Striped rows */
.dataTable.table-striped tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

/* Bottom Info & Pagination */
.dataTables_info,
.dataTables_paginate {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.dataTables_info {
    font-weight: 600;
}

/* Pagination */
.dataTables_paginate {
    display: flex;
    justify-content: flex-end;
}

.dataTables_paginate .paginate_button {
    min-width: 36px;
    height: 36px;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dataTables_paginate .paginate_button:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: var(--accent-primary);
    color: #ffffff;
    pointer-events: none;
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.dataTables_paginate .paginate_button.previous,
.dataTables_paginate .paginate_button.next {
    font-weight: 700;
}

/* Empty State */
.dataTables_empty {
    padding: 3rem !important;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Processing Indicator */
.dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Responsive Table */
@media (max-width: 991px) {
    .dataTables_length,
    .dataTables_filter {
        margin-bottom: 1rem;
    }
    
    .dataTables_filter input {
        min-width: 200px;
    }
    
    .dataTable thead th,
    .dataTable tbody td {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 767px) {
    .dataTables_length,
    .dataTables_filter,
    .dataTables_info,
    .dataTables_paginate {
        text-align: center;
        justify-content: center;
    }
    
    .dataTables_filter label {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dataTables_filter input {
        margin-left: 0;
        margin-top: 0.5rem;
        min-width: 100%;
    }
    
    .dataTables_length select {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .dataTables_paginate .paginate_button {
        min-width: 32px;
        height: 32px;
        font-size: 0.813rem;
    }
}

/* Scrollable tables */
.dataTables_scroll {
    border-radius: 12px;
    overflow: hidden;
}

.dataTables_scrollBody {
    border: none !important;
}

/* Hide default DataTables styling */
.dataTables_wrapper .dataTables_length select {
    padding-right: 2rem;
}

/* Custom Scrollbar for table body */
.dataTables_scrollBody::-webkit-scrollbar {
    height: 8px;
}

.dataTables_scrollBody::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.3);
    border-radius: 10px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.5);
}


/* Fix for multiple dropdowns - Update this section */
.dataTables_length {
    margin-bottom: 1.5rem;
    float: left;
}

.dataTables_filter {
    margin-bottom: 1.5rem;
    float: right;
}

/* Hide duplicate elements if any */
.dataTables_wrapper .row:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dataTables_wrapper .row:first-child > div {
    flex: 0 0 auto;
}

/* Ensure only one show entries dropdown */
.dataTables_length select {
    padding: 0.625rem 2rem 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}

/* Remove sorting dropdown icons if causing issues */
.dataTable thead th.sorting::before,
.dataTable thead th.sorting_asc::before,
.dataTable thead th.sorting_desc::before {
    display: none !important;
}


/* Additional custom styles for badges */
.badge-success-custom {
    padding: 0.375rem 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
}

.badge-danger-custom {
    padding: 0.375rem 0.75rem;
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Search wrapper styling */
.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.dataTables_filter input {
    padding-left: 2.5rem !important;
}

/* Row fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect for pagination */
.hover-effect {
    transform: scale(1.05);
}

/* Export buttons styling (if you add export functionality) */
.btn-export {
    padding: 0.625rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.btn-export:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: translateY(-2px);
}