/* =========================================================================
   USER LIST MANAGEMENT STYLES
   ========================================================================= */

/* Stat Cards Grid */
.user-stats-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
}

/* Stat Card */
.ustat-card {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}
.ustat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 25px rgba(0,0,0,0.06) !important;
}
.ustat-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; right: 0 !important;
    width: 80px !important; height: 80px !important;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%) !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
}
.ustat-card:hover::before { opacity: 1 !important; transform: scale(1.5) !important; }

/* Stat Icons */
.ustat-icon {
    width: 48px !important; height: 48px !important;
    border-radius: 14px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    margin-bottom: 16px !important;
}
.ustat-icon svg { width: 24px !important; height: 24px !important; }

/* Stat Content */
.ustat-value {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin-bottom: 4px !important;
    line-height: 1 !important;
}
.ustat-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
}

/* Card Variations */
.sc-total .ustat-icon { background: rgba(123,43,255,0.1) !important; }
.sc-total:hover { border-color: #d8b4fe !important; }

.sc-active .ustat-icon { background: rgba(16,185,129,0.1) !important; }
.sc-active:hover { border-color: #a7f3d0 !important; }

.sc-inactive .ustat-icon { background: rgba(245,158,11,0.1) !important; }
.sc-inactive:hover { border-color: #fde68a !important; }

.sc-agent .ustat-icon { background: rgba(59,130,246,0.1) !important; }
.sc-agent:hover { border-color: #bfdbfe !important; }

.sc-verified .ustat-icon { background: rgba(6,182,212,0.1) !important; }
.sc-verified:hover { border-color: #a5f3fc !important; }

.sc-unverified .ustat-icon { background: rgba(239,68,68,0.1) !important; }
.sc-unverified:hover { border-color: #fecaca !important; }

.sc-vagent .ustat-icon { background: rgba(139,92,246,0.1) !important; }
.sc-vagent:hover { border-color: #ddd6fe !important; }

.sc-pagent .ustat-icon { background: rgba(236,72,153,0.1) !important; }
.sc-pagent:hover { border-color: #fbcfe8 !important; }

/* Main Table Card */
.user-main-card {
    background: #fff !important;
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    overflow: hidden !important;
}
.user-card-header {
    padding: 24px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #fff !important;
}
.user-card-header h4 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #111827 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
.hdr-icon {
    width: 36px !important; height: 36px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #7B2BFF, #6366f1) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
}
.hdr-icon svg { width: 18px !important; height: 18px !important; }

.hdr-badge {
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* User Table */
.user-table { margin: 0 !important; border-collapse: separate !important; border-spacing: 0 !important; width: 100% !important; }
.user-table th {
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.user-table td {
    padding: 16px 20px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.user-table tr:hover td { background: #f8fafc !important; }

/* User Cell */
.user-cell {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}
.user-avatar {
    width: 42px !important; height: 42px !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    flex-shrink: 0 !important;
}
.user-name { font-size: 14px !important; font-weight: 700 !important; color: #1e293b !important; margin-bottom: 2px !important; }
.user-email { font-size: 12px !important; font-weight: 500 !important; color: #64748b !important; }

/* Chips */
.contact-chip, .date-chip {
    display: inline-flex !important; align-items: center !important; gap: 6px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important; font-weight: 600 !important;
    background: #f8fafc !important; border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
.contact-chip svg, .date-chip svg { width: 14px !important; height: 14px !important; opacity: 0.7 !important; }

/* Badges */
.bdg {
    display: inline-flex !important; align-items: center !important; gap: 6px !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    font-size: 12px !important; font-weight: 700 !important;
    line-height: 1 !important;
}
.bdg-dot {
    width: 6px !important; height: 6px !important;
    border-radius: 50% !important;
}
.bdg-success { background: rgba(16,185,129,0.1) !important; color: #059669 !important; }
.bdg-success .bdg-dot { background: #10b981 !important; box-shadow: 0 0 4px #10b981 !important; }

.bdg-danger { background: rgba(239,68,68,0.1) !important; color: #dc2626 !important; }
.bdg-danger .bdg-dot { background: #ef4444 !important; box-shadow: 0 0 4px #ef4444 !important; }

.bdg-purple { background: rgba(123,43,255,0.1) !important; color: #7B2BFF !important; }
.bdg-blue { background: rgba(59,130,246,0.1) !important; color: #2563eb !important; }
.bdg-gray { background: #f1f5f9 !important; color: #64748b !important; }

.drop { cursor: pointer !important; transition: all 0.2s !important; }
.drop:hover { opacity: 0.8 !important; transform: translateY(-1px) !important; }

.verify-group { display: flex !important; align-items: center !important; gap: 6px !important; flex-wrap: wrap !important; }
.serial-no { font-size: 12px !important; font-weight: 700 !important; color: #94a3b8 !important; }

/* DataTables Spacing */
.dataTables_wrapper {
    padding: 20px 20px 0 20px !important;
}
.dataTables_length {
    margin-bottom: 15px !important;
}
.dataTables_filter {
    margin-bottom: 15px !important;
}
.dataTables_info {
    padding: 20px !important;
}
.dataTables_paginate {
    padding: 20px !important;
}
