/* Modern Table Styling for Customers Tab */

.table-container {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    padding: 24px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.table-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.table-actions {
    display: flex;
    gap: 12px;
}

.search-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    width: 280px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    text-align: left;
    padding: 16px 24px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f1f5f9;
}

.data-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #f8fafc;
}

/* Badge Styles */
.badge-type {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Specific Badge Colors */
span.badge-type:contains('Loyalty'),
/* Text check might need JS, using class based approach usually better */
.badge-loyalty {
    background: #e0e7ff;
    color: #4f46e5;
}

span.badge-type:contains('Membership'),
.badge-membership {
    background: #fdf2f8;
    color: #db2777;
}

/* Use attribute selectors for cleaner HTML if not changing classes */
.badge-type {
    background: #f1f5f9;
    color: #64748b;
}

/* Override based on content (simulated with :has or JS, but for CSS only let's add classes in HTML) */