/* Data Tables */
.data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.data-table thead {
    background: #f7fafc;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    font-weight: 600;
    color: #2d3748;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    color: #4a5568;
    font-size: 14px;
}

.data-table tr:hover {
    background: #f7fafc;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* DataTables Overrides */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_filter input {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
}

.dataTables_length select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
}

.dataTables_info {
    color: #4a5568;
    font-size: 13px;
}

.dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    color: #4a5568 !important;
    font-size: 13px;
}

.dataTables_paginate .paginate_button:hover {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea;
}

.dataTables_paginate .paginate_button.current {
    background: #667eea !important;
    color: white !important;
    border-color: #667eea;
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dataTables_paginate .paginate_button.disabled:hover {
    background: white !important;
    color: #4a5568 !important;
    border-color: #e2e8f0;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.table-container h3 {
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: none;
    border: none;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    color: #4a5568;
}

.action-btn:hover {
    background: #f7fafc;
}

.action-btn.edit {
    color: #667eea;
}

.action-btn.delete {
    color: #e53e3e;
}

.action-btn.view {
    color: #38a169;
}

/* Custom Table Styles */
.segments-table-container {
    margin-top: 20px;
}

.users-table-container,
.groups-table-container {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #c6f6d5;
    color: #276749;
}

.status-badge.inactive {
    background: #fed7d7;
    color: #c53030;
}

.status-badge.pending {
    background: #feebc8;
    color: #c05621;
}

/* Table Filters */
.table-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
}

/* Empty State */
.table-empty {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
}

.table-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.table-empty h4 {
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 600;
}

.table-empty p {
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }
    
    .table-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .action-btn {
        width: 100%;
        text-align: left;
        padding: 8px 12px;
    }
}