/* Communications Dashboard Styles */
/* Consistent styling with other dashboards (StaffingDashboard, ZoneDashboardDemo) */

/* ============================================
   Dashboard Page Layout - Matches other dashboards
   ============================================ */
.communications-dashboard-page {
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Dashboard Header Bar - Matches demo-header style from other dashboards */
.dashboard-header-bar {
    background: linear-gradient(135deg, #607D8B 0%, #455A64 100%);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dashboard-title {
    display: flex;
    align-items: center;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.dashboard-title i {
    font-size: 1.5rem;
}

.dashboard-subtitle {
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dashboard Content Area */
.dashboard-content {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Dashboard Tabs - Bootstrap nav-tabs style */
.dashboard-tabs .nav-tabs {
    border-bottom: 2px solid #dee2e6;
    background: white;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0 1rem;
}

.dashboard-tabs .nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 1rem 1.25rem;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-tabs .nav-tabs .nav-link:hover {
    color: #495057;
    border-bottom-color: #dee2e6;
    background: #f8f9fa;
}

.dashboard-tabs .nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: transparent;
}

.dashboard-tabs .nav-tabs .nav-link i {
    font-size: 1.1rem;
}

/* Tab Content Area */
.tab-content-area {
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1.5rem;
    min-height: 400px;
}

/* Loading Container - Consistent with other dashboards */
.communications-dashboard-page .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

/* ============================================
   Legacy Dashboard Layout (for backwards compatibility)
   ============================================ */
.communications-dashboard {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
    margin: 0;
}

.dashboard-header .subtitle {
    color: var(--text-secondary, #6b7280);
    margin: 0.5rem 0 0 0;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color, #e5e7eb);
    margin-bottom: 1.5rem;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--text-secondary, #6b7280);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: var(--primary-color, #3b82f6);
    background: var(--hover-bg, #f3f4f6);
}

.tab-button.active {
    color: var(--primary-color, #3b82f6);
    border-bottom-color: var(--primary-color, #3b82f6);
}

.tab-button .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Loading States */
.loading-container,
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary, #6b7280);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color, #e5e7eb);
    border-top-color: var(--primary-color, #3b82f6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color, #e5e7eb);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-secondary, #6b7280);
}

.empty-state.small {
    padding: 2rem;
}

.empty-state .material-symbols-outlined {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin: 0.25rem 0;
}

.empty-state .hint {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Badges */
.channel-badge,
.status-badge,
.direction-badge,
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.channel-badge .material-symbols-outlined,
.status-badge .material-symbols-outlined,
.direction-badge .material-symbols-outlined,
.type-badge .material-symbols-outlined {
    font-size: 0.875rem;
}

.channel-badge.email {
    background: #dbeafe;
    color: #1e40af;
}

.channel-badge.sms {
    background: #dcfce7;
    color: #166534;
}

.status-badge.queued {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.sent {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.delivered {
    background: #dcfce7;
    color: #166534;
}

.status-badge.failed,
.status-badge.bounced {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.direction-badge.outbound {
    background: #e0e7ff;
    color: #3730a3;
}

.direction-badge.inbound {
    background: #fce7f3;
    color: #9d174d;
}

.type-badge.email {
    background: #dbeafe;
    color: #1e40af;
}

.type-badge.phone {
    background: #dcfce7;
    color: #166534;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color, #3b82f6);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover, #2563eb);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--secondary-bg, #f3f4f6);
    color: var(--text-primary, #1a1a2e);
    border: 1px solid var(--border-color, #e5e7eb);
}

.btn-secondary:hover {
    background: var(--hover-bg, #e5e7eb);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--hover-bg, #f3f4f6);
    color: var(--text-primary, #1a1a2e);
}

.btn-icon.danger:hover {
    background: #fee2e2;
    color: #991b1b;
}

.btn-refresh,
.btn-preview,
.btn-page {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh:hover,
.btn-preview:hover,
.btn-page:hover {
    background: var(--hover-bg, #f3f4f6);
    color: var(--text-primary, #1a1a2e);
}

.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0.25rem;
    color: var(--text-secondary, #6b7280);
    cursor: pointer;
}

.btn-close:hover {
    background: var(--hover-bg, #f3f4f6);
}

/* Ledger View */
.ledger-view {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
}

.ledger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ledger-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.ledger-filters {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
}

.filter-group select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    min-width: 140px;
}

/* Ledger Table */
.ledger-table {
    width: 100%;
    border-collapse: collapse;
}

.ledger-table th,
.ledger-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.ledger-table th {
    background: var(--table-header-bg, #f9fafb);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary, #6b7280);
}

.ledger-table tbody tr:hover {
    background: var(--hover-bg, #f9fafb);
}

.ledger-table .row-error {
    background: #fef2f2;
}

.ledger-table .row-success {
    background: #f0fdf4;
}

.date-cell {
    white-space: nowrap;
}

.date-cell .date {
    display: block;
    font-weight: 500;
}

.date-cell .time {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
}

.recipient-cell .name {
    display: block;
    font-weight: 500;
}

.recipient-cell .address {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
}

.preview-cell .subject {
    font-weight: 500;
}

.preview-cell .body-preview {
    color: var(--text-secondary, #6b7280);
    font-size: 0.875rem;
}

.status-reason {
    margin-left: 0.25rem;
    color: var(--text-secondary, #6b7280);
    cursor: help;
}

.actions-cell {
    text-align: right;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.page-info {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
}

/* Compose Message */
.compose-message {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
    position: relative;
}

.compose-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.compose-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.compose-header .subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
}

.compose-form {
    padding: 1.5rem;
}

.sending-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.5rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.form-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary, #1a1a2e);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group .hint {
    margin: 0.375rem 0 0 0;
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Channel Selector */
.channel-selector {
    display: flex;
    gap: 1rem;
}

.channel-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--secondary-bg, #f9fafb);
    border: 2px solid var(--border-color, #e5e7eb);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.channel-option:hover {
    border-color: var(--primary-color, #3b82f6);
    background: white;
}

.channel-option.selected {
    border-color: var(--primary-color, #3b82f6);
    background: #eff6ff;
}

.channel-option .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary-color, #3b82f6);
}

/* Recipient Type Selector */
.recipient-type-selector {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: auto;
}

/* Targeting Options */
.targeting-options {
    background: var(--secondary-bg, #f9fafb);
    padding: 1rem;
    border-radius: 0.5rem;
}

/* Template Variables */
.template-variables {
    background: var(--secondary-bg, #f9fafb);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.template-variables h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.variable-input {
    margin-bottom: 0.75rem;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 0.5rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    width: auto;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
}

/* Template Manager */
.template-manager {
    /* No card wrapper — matches other comms panels */
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.template-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.template-filters {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--secondary-bg, #f9fafb);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
}

.template-card {
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.template-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.template-card.inactive {
    opacity: 0.7;
}

.template-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--secondary-bg, #f9fafb);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.template-card-body {
    padding: 1rem;
}

.template-card-body h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.template-card-body .description {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--secondary-bg, #f3f4f6);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
}

.template-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.version-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
}

.version-info .material-symbols-outlined {
    font-size: 1rem;
}

.template-actions {
    display: flex;
    gap: 0.25rem;
}

/* Template Help */
.template-help {
    background: #eff6ff;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.template-help h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e40af;
}

.variable-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variable-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: white;
    border: 1px solid #93c5fd;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-family: monospace;
    color: #1e40af;
}

/* Version List */
.version-list {
    max-height: 400px;
    overflow-y: auto;
}

.version-item {
    padding: 1rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.version-item.current {
    border-color: var(--primary-color, #3b82f6);
    background: #eff6ff;
}

.version-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.version-number {
    font-weight: 600;
}

.version-date {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
}

.current-badge {
    padding: 0.125rem 0.5rem;
    background: var(--primary-color, #3b82f6);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.version-subject,
.version-body {
    margin-bottom: 0.5rem;
}

.version-subject label,
.version-body label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
}

.version-body pre {
    margin: 0.25rem 0 0 0;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
}

.version-author {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    font-style: italic;
}

/* Communication Settings */
.communication-settings {
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
}

.settings-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.settings-header h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.settings-header .subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
}

/* Settings Sections */
.settings-section {
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.settings-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--secondary-bg, #f9fafb);
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.section-content {
    padding: 1.25rem;
}

.section-description {
    margin: 0 0 1rem 0;
    color: var(--text-secondary, #6b7280);
}

/* Toggle Switch */
.whitelist-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color, #3b82f6);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.info-box.info {
    background: #eff6ff;
    color: #1e40af;
}

.info-box.warning {
    background: #fef3c7;
    color: #92400e;
}

.info-box p {
    margin: 0;
    font-size: 0.875rem;
}

/* Whitelist Management */
.whitelist-management {
    margin-top: 1rem;
}

.add-whitelist-form {
    background: var(--secondary-bg, #f9fafb);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.add-whitelist-form h4 {
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.add-whitelist-form .form-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.add-whitelist-form .form-group {
    margin-bottom: 0;
}

.add-whitelist-form .flex-grow {
    flex: 1;
}

.whitelist-entries h4 {
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Whitelist Table */
.whitelist-table {
    width: 100%;
    border-collapse: collapse;
}

.whitelist-table th,
.whitelist-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.whitelist-table th {
    background: var(--table-header-bg, #f9fafb);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var