/* FirewallUsers specific styles */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table th {
    position: sticky;
    top: 0;
    background-color: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    z-index: 10;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #1f2937;
}

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

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

/* Table wrapper */
.table-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Add button styles */
.add-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #3b82f6;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.add-button:hover {
    background-color: #2563eb;
}

.add-button-icon {
    width: 20px;
    height: 20px;
}

/* Modal styles */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* Form grid layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

/* Status colors */
.status-active {
    color: #059669;
}

.status-inactive {
    color: #dc2626;
}

.status-suspended {
    color: #d97706;
}

/* Mobile optimizations */
@media (max-width: 1024px) {
    .table-wrapper {
        margin: 0;
        border-radius: 0;
    }

    .data-table {
        min-width: 800px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix for title line blinking */
.module-title {
    position: relative;
    z-index: 5;
    background-color: #f3f4f6;
    padding: 1rem 0;
    margin: 0;
}

/* Actions bar fixes */
.actions-bar {
    position: relative;
    z-index: 5;
    background-color: #f3f4f6;
    padding: 1rem 0;
    margin-bottom: 1rem;
}
