table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

/* Header */
table thead tr th {

    text-transform: uppercase;
    padding: 8px 10px;
    font-size: 13px;
    color: #333;

    letter-spacing: 0.5px;
    font-weight: bold;
}

/* Table body */
table tbody tr td {

    padding: 10px;
    font-size: 14px;
    color: #444;
}

/* Hover effect */
table tbody tr:hover {
    transition: 0.2s;
}



/* Swal */

    /* Popup */
.swal2-popup {
    border-radius: 16px;
    padding: 0px;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

/* Title */
.swal2-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: -20px;
}

/* Text */
.swal2-text {
    font-size: 15px;
    color: #6b7280;
    
}

/* Success icon */
.swal2-success-ring {
    border-color: #22c55e !important;
}
.swal2-success-line-tip,
.swal2-success-line-long {
    background-color: #22c55e !important;
}

/* Button */
.swal2-confirm {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 100px;
    border: none;
    width: 100px;
    
}
.swal2-cancel {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 100px;
    border: none;
    width: 100px;
    
}
.swal2-confirm:hover {
    filter: brightness(1.05);
}

/* Swal */
.stat-card {
    background-image: 
        linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

#leads-container {
    height: 350px;
    overflow-y: auto;
}

#leads-table thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

#leads-table tbody tr td , #leads-table thead tr th{
    border: 1px solid var(--bs-border-color);
}


    .stat-card {
    background: var(--bs-body-bg);
    border-radius: 10px; /* fixed */
    border: 1px solid rgba(175, 190, 205, 0.25);
    box-shadow: 0 10px 25px rgba(0, 30, 50, 0.08);
    width: 100%;
    max-width: 420px; /* fixed width */
    height: 130px; /* fixed height */
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Label */
.metric-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #4a617c;
    border-bottom: 1px dashed #d0deed;
    padding-bottom: 8px;
}

.metric-label span {
    background: #eef3f9;
    padding: 3px 20px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Number */
.main-number {
    font-size: 33px;
    font-weight: 700;
    color: #1b2f41;
    display: flex;
    align-items: baseline;
    margin-top: 5px;
}

.main-number .currency {
    font-size: 22px;
    font-weight: 500;
    color: #5b748d;
    margin-top: -10px
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        max-width: 100%;
        height: 160px;
    }

    .main-number {
        font-size: 34px;
    }

    .main-number .currency {
        font-size: 18px;
    }
}

.stats-grid {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
}

.stat-item {
    flex: 1 1 0;
    padding: 1rem 0;
    position: relative;
}

.stat-label {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: bold;
}

.num-label {
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: bold;
}

.stat-value {
    margin: 0;
    font-weight: 600;
    font-size: 1.125rem;
}

.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1), transparent);
}

@media (max-width: 950px) {
    .stats-grid {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .stat-item {
        padding: 0.75rem 0;
    }
    
    .stat-item:not(:last-child)::after {
        right: auto;
        left: 50%;
        bottom: -0.25rem;
        top: auto;
        transform: translateX(-50%);
        width: 60px;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.1), transparent);
    }
}

.server-time {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: bold;
}

